swagger.json 147 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244924502451245224532454245524562457245824592460246124622463246424652466246724682469247024712472247324742475247624772478247924802481248224832484248524862487248824892490249124922493249424952496249724982499250025012502250325042505250625072508250925102511251225132514251525162517251825192520252125222523252425252526252725282529253025312532253325342535253625372538253925402541254225432544254525462547254825492550255125522553255425552556255725582559256025612562256325642565256625672568256925702571257225732574257525762577257825792580258125822583258425852586258725882589259025912592259325942595259625972598259926002601260226032604260526062607260826092610261126122613261426152616261726182619262026212622262326242625262626272628262926302631263226332634263526362637263826392640264126422643264426452646264726482649265026512652265326542655265626572658265926602661266226632664266526662667266826692670267126722673267426752676267726782679268026812682268326842685268626872688268926902691269226932694269526962697269826992700270127022703270427052706270727082709271027112712271327142715271627172718271927202721272227232724272527262727272827292730273127322733273427352736273727382739274027412742274327442745274627472748274927502751275227532754275527562757275827592760276127622763276427652766276727682769277027712772277327742775277627772778277927802781278227832784278527862787278827892790279127922793279427952796279727982799280028012802280328042805280628072808280928102811281228132814281528162817281828192820282128222823282428252826282728282829283028312832283328342835283628372838283928402841284228432844284528462847284828492850285128522853285428552856285728582859286028612862286328642865286628672868286928702871287228732874287528762877287828792880288128822883288428852886288728882889289028912892289328942895289628972898289929002901290229032904290529062907290829092910291129122913291429152916291729182919292029212922292329242925292629272928292929302931293229332934293529362937293829392940294129422943294429452946294729482949295029512952295329542955295629572958295929602961296229632964296529662967296829692970297129722973297429752976297729782979298029812982298329842985298629872988298929902991299229932994299529962997299829993000300130023003300430053006300730083009301030113012301330143015301630173018301930203021302230233024302530263027302830293030303130323033303430353036303730383039304030413042304330443045304630473048304930503051305230533054305530563057305830593060306130623063306430653066306730683069307030713072307330743075307630773078307930803081308230833084308530863087308830893090309130923093309430953096309730983099310031013102310331043105310631073108310931103111311231133114311531163117311831193120312131223123312431253126312731283129313031313132313331343135313631373138313931403141314231433144314531463147314831493150315131523153315431553156315731583159316031613162316331643165316631673168316931703171317231733174317531763177317831793180318131823183318431853186318731883189319031913192319331943195319631973198319932003201320232033204320532063207320832093210321132123213321432153216321732183219322032213222322332243225322632273228322932303231323232333234323532363237323832393240324132423243324432453246324732483249325032513252325332543255325632573258325932603261326232633264326532663267326832693270327132723273327432753276327732783279328032813282328332843285328632873288328932903291329232933294329532963297329832993300330133023303330433053306330733083309331033113312331333143315331633173318331933203321332233233324332533263327332833293330333133323333333433353336333733383339334033413342334333443345334633473348334933503351335233533354335533563357335833593360336133623363336433653366336733683369337033713372337333743375337633773378337933803381338233833384338533863387338833893390339133923393339433953396339733983399340034013402340334043405340634073408340934103411341234133414341534163417341834193420342134223423342434253426342734283429343034313432343334343435343634373438343934403441344234433444344534463447344834493450345134523453345434553456345734583459346034613462346334643465346634673468346934703471347234733474347534763477347834793480348134823483348434853486348734883489349034913492349334943495349634973498349935003501350235033504350535063507350835093510351135123513351435153516351735183519352035213522352335243525352635273528352935303531353235333534353535363537353835393540354135423543354435453546354735483549355035513552355335543555355635573558355935603561356235633564356535663567356835693570357135723573357435753576357735783579358035813582358335843585358635873588358935903591359235933594359535963597359835993600360136023603360436053606360736083609361036113612361336143615361636173618361936203621362236233624362536263627362836293630363136323633363436353636363736383639364036413642364336443645364636473648364936503651365236533654365536563657365836593660366136623663366436653666366736683669367036713672367336743675367636773678367936803681368236833684368536863687368836893690369136923693369436953696369736983699370037013702370337043705370637073708370937103711371237133714371537163717371837193720372137223723372437253726372737283729373037313732373337343735373637373738373937403741374237433744374537463747374837493750375137523753375437553756375737583759376037613762376337643765376637673768376937703771377237733774377537763777377837793780378137823783378437853786378737883789379037913792379337943795379637973798379938003801380238033804380538063807380838093810381138123813381438153816381738183819382038213822382338243825382638273828382938303831383238333834383538363837383838393840384138423843384438453846384738483849385038513852385338543855385638573858385938603861386238633864386538663867386838693870387138723873387438753876387738783879388038813882388338843885388638873888388938903891389238933894389538963897389838993900390139023903390439053906390739083909391039113912391339143915391639173918391939203921392239233924392539263927392839293930393139323933393439353936393739383939394039413942394339443945394639473948394939503951395239533954395539563957395839593960396139623963396439653966396739683969397039713972397339743975397639773978397939803981398239833984398539863987398839893990399139923993399439953996399739983999400040014002400340044005400640074008400940104011401240134014401540164017401840194020402140224023402440254026402740284029403040314032403340344035403640374038403940404041404240434044404540464047404840494050405140524053405440554056405740584059406040614062406340644065406640674068406940704071407240734074407540764077407840794080408140824083408440854086408740884089409040914092409340944095409640974098409941004101410241034104410541064107410841094110411141124113411441154116411741184119412041214122412341244125412641274128412941304131413241334134413541364137413841394140414141424143414441454146414741484149415041514152415341544155415641574158415941604161416241634164416541664167416841694170417141724173417441754176417741784179418041814182418341844185418641874188418941904191419241934194419541964197419841994200420142024203420442054206420742084209421042114212421342144215421642174218421942204221422242234224422542264227422842294230423142324233423442354236423742384239424042414242424342444245424642474248424942504251425242534254425542564257425842594260426142624263426442654266426742684269427042714272427342744275427642774278427942804281428242834284428542864287428842894290429142924293429442954296429742984299430043014302430343044305430643074308430943104311431243134314431543164317431843194320432143224323432443254326432743284329433043314332433343344335433643374338433943404341434243434344434543464347434843494350435143524353435443554356435743584359436043614362436343644365436643674368436943704371437243734374437543764377437843794380438143824383438443854386438743884389439043914392439343944395439643974398439944004401440244034404440544064407440844094410441144124413441444154416441744184419442044214422442344244425442644274428442944304431443244334434443544364437443844394440444144424443444444454446444744484449445044514452445344544455445644574458445944604461446244634464446544664467446844694470447144724473447444754476447744784479448044814482448344844485448644874488448944904491449244934494449544964497449844994500450145024503450445054506450745084509451045114512451345144515451645174518451945204521452245234524452545264527452845294530453145324533453445354536453745384539454045414542454345444545454645474548454945504551455245534554455545564557455845594560456145624563456445654566456745684569457045714572457345744575457645774578457945804581458245834584458545864587458845894590459145924593459445954596459745984599460046014602460346044605460646074608460946104611461246134614461546164617461846194620462146224623462446254626462746284629463046314632463346344635463646374638463946404641464246434644464546464647464846494650465146524653465446554656
  1. {
  2. "swagger": "2.0",
  3. "info": {
  4. "description": "This is a sample Server pets",
  5. "title": "Swagger Example API",
  6. "contact": {},
  7. "version": "0.0.1"
  8. },
  9. "basePath": "/",
  10. "paths": {
  11. "/SimpleUploaderApi/checkFileMd5": {
  12. "get": {
  13. "security": [
  14. {
  15. "ApiKeyAuth": []
  16. }
  17. ],
  18. "produces": [
  19. "application/json"
  20. ],
  21. "tags": [
  22. "SimpleUploader"
  23. ],
  24. "summary": "断点续传插件版示例",
  25. "parameters": [
  26. {
  27. "type": "string",
  28. "description": "md5",
  29. "name": "md5",
  30. "in": "query",
  31. "required": true
  32. }
  33. ],
  34. "responses": {
  35. "200": {
  36. "description": "{\"success\":true,\"data\":{},\"msg\":\"查询成功\"}",
  37. "schema": {
  38. "type": "string"
  39. }
  40. }
  41. }
  42. }
  43. },
  44. "/SimpleUploaderApi/mergeFileMd5": {
  45. "get": {
  46. "security": [
  47. {
  48. "ApiKeyAuth": []
  49. }
  50. ],
  51. "produces": [
  52. "application/json"
  53. ],
  54. "tags": [
  55. "SimpleUploader"
  56. ],
  57. "summary": "合并文件",
  58. "parameters": [
  59. {
  60. "type": "string",
  61. "description": "md5",
  62. "name": "md5",
  63. "in": "query",
  64. "required": true
  65. }
  66. ],
  67. "responses": {
  68. "200": {
  69. "description": "{\"success\":true,\"data\":{},\"msg\":\"合并成功\"}",
  70. "schema": {
  71. "type": "string"
  72. }
  73. }
  74. }
  75. }
  76. },
  77. "/SimpleUploaderApi/upload": {
  78. "post": {
  79. "security": [
  80. {
  81. "ApiKeyAuth": []
  82. }
  83. ],
  84. "consumes": [
  85. "multipart/form-data"
  86. ],
  87. "produces": [
  88. "application/json"
  89. ],
  90. "tags": [
  91. "SimpleUploader"
  92. ],
  93. "summary": "断点续传插件版示例",
  94. "parameters": [
  95. {
  96. "type": "file",
  97. "description": "断点续传插件版示例",
  98. "name": "file",
  99. "in": "formData",
  100. "required": true
  101. }
  102. ],
  103. "responses": {
  104. "200": {
  105. "description": "{\"success\":true,\"data\":{},\"msg\":\"切片创建成功\"}",
  106. "schema": {
  107. "type": "string"
  108. }
  109. }
  110. }
  111. }
  112. },
  113. "/api/createApi": {
  114. "post": {
  115. "security": [
  116. {
  117. "ApiKeyAuth": []
  118. }
  119. ],
  120. "consumes": [
  121. "application/json"
  122. ],
  123. "produces": [
  124. "application/json"
  125. ],
  126. "tags": [
  127. "SysApi"
  128. ],
  129. "summary": "创建基础api",
  130. "parameters": [
  131. {
  132. "description": "api路径, api中文描述, api组, 方法",
  133. "name": "data",
  134. "in": "body",
  135. "required": true,
  136. "schema": {
  137. "$ref": "#/definitions/system.SysApi"
  138. }
  139. }
  140. ],
  141. "responses": {
  142. "200": {
  143. "description": "{\"success\":true,\"data\":{},\"msg\":\"创建成功\"}",
  144. "schema": {
  145. "type": "string"
  146. }
  147. }
  148. }
  149. }
  150. },
  151. "/api/deleteApi": {
  152. "post": {
  153. "security": [
  154. {
  155. "ApiKeyAuth": []
  156. }
  157. ],
  158. "consumes": [
  159. "application/json"
  160. ],
  161. "produces": [
  162. "application/json"
  163. ],
  164. "tags": [
  165. "SysApi"
  166. ],
  167. "summary": "删除api",
  168. "parameters": [
  169. {
  170. "description": "ID",
  171. "name": "data",
  172. "in": "body",
  173. "required": true,
  174. "schema": {
  175. "$ref": "#/definitions/system.SysApi"
  176. }
  177. }
  178. ],
  179. "responses": {
  180. "200": {
  181. "description": "{\"success\":true,\"data\":{},\"msg\":\"删除成功\"}",
  182. "schema": {
  183. "type": "string"
  184. }
  185. }
  186. }
  187. }
  188. },
  189. "/api/deleteApisByIds": {
  190. "delete": {
  191. "security": [
  192. {
  193. "ApiKeyAuth": []
  194. }
  195. ],
  196. "consumes": [
  197. "application/json"
  198. ],
  199. "produces": [
  200. "application/json"
  201. ],
  202. "tags": [
  203. "SysApi"
  204. ],
  205. "summary": "删除选中Api",
  206. "parameters": [
  207. {
  208. "description": "ID",
  209. "name": "data",
  210. "in": "body",
  211. "required": true,
  212. "schema": {
  213. "$ref": "#/definitions/request.IdsReq"
  214. }
  215. }
  216. ],
  217. "responses": {
  218. "200": {
  219. "description": "{\"success\":true,\"data\":{},\"msg\":\"删除成功\"}",
  220. "schema": {
  221. "type": "string"
  222. }
  223. }
  224. }
  225. }
  226. },
  227. "/api/getAllApis": {
  228. "post": {
  229. "security": [
  230. {
  231. "ApiKeyAuth": []
  232. }
  233. ],
  234. "consumes": [
  235. "application/json"
  236. ],
  237. "produces": [
  238. "application/json"
  239. ],
  240. "tags": [
  241. "SysApi"
  242. ],
  243. "summary": "获取所有的Api 不分页",
  244. "responses": {
  245. "200": {
  246. "description": "{\"success\":true,\"data\":{},\"msg\":\"获取成功\"}",
  247. "schema": {
  248. "type": "string"
  249. }
  250. }
  251. }
  252. }
  253. },
  254. "/api/getApiById": {
  255. "post": {
  256. "security": [
  257. {
  258. "ApiKeyAuth": []
  259. }
  260. ],
  261. "consumes": [
  262. "application/json"
  263. ],
  264. "produces": [
  265. "application/json"
  266. ],
  267. "tags": [
  268. "SysApi"
  269. ],
  270. "summary": "根据id获取api",
  271. "parameters": [
  272. {
  273. "description": "根据id获取api",
  274. "name": "data",
  275. "in": "body",
  276. "required": true,
  277. "schema": {
  278. "$ref": "#/definitions/request.GetById"
  279. }
  280. }
  281. ],
  282. "responses": {
  283. "200": {
  284. "description": "{\"success\":true,\"data\":{},\"msg\":\"获取成功\"}",
  285. "schema": {
  286. "type": "string"
  287. }
  288. }
  289. }
  290. }
  291. },
  292. "/api/getApiList": {
  293. "post": {
  294. "security": [
  295. {
  296. "ApiKeyAuth": []
  297. }
  298. ],
  299. "consumes": [
  300. "application/json"
  301. ],
  302. "produces": [
  303. "application/json"
  304. ],
  305. "tags": [
  306. "SysApi"
  307. ],
  308. "summary": "分页获取API列表",
  309. "parameters": [
  310. {
  311. "description": "分页获取API列表",
  312. "name": "data",
  313. "in": "body",
  314. "required": true,
  315. "schema": {
  316. "$ref": "#/definitions/request.SearchApiParams"
  317. }
  318. }
  319. ],
  320. "responses": {
  321. "200": {
  322. "description": "{\"success\":true,\"data\":{},\"msg\":\"获取成功\"}",
  323. "schema": {
  324. "type": "string"
  325. }
  326. }
  327. }
  328. }
  329. },
  330. "/api/updateApi": {
  331. "post": {
  332. "security": [
  333. {
  334. "ApiKeyAuth": []
  335. }
  336. ],
  337. "consumes": [
  338. "application/json"
  339. ],
  340. "produces": [
  341. "application/json"
  342. ],
  343. "tags": [
  344. "SysApi"
  345. ],
  346. "summary": "创建基础api",
  347. "parameters": [
  348. {
  349. "description": "api路径, api中文描述, api组, 方法",
  350. "name": "data",
  351. "in": "body",
  352. "required": true,
  353. "schema": {
  354. "$ref": "#/definitions/system.SysApi"
  355. }
  356. }
  357. ],
  358. "responses": {
  359. "200": {
  360. "description": "{\"success\":true,\"data\":{},\"msg\":\"修改成功\"}",
  361. "schema": {
  362. "type": "string"
  363. }
  364. }
  365. }
  366. }
  367. },
  368. "/authority/copyAuthority": {
  369. "post": {
  370. "security": [
  371. {
  372. "ApiKeyAuth": []
  373. }
  374. ],
  375. "consumes": [
  376. "application/json"
  377. ],
  378. "produces": [
  379. "application/json"
  380. ],
  381. "tags": [
  382. "Authority"
  383. ],
  384. "summary": "拷贝角色",
  385. "parameters": [
  386. {
  387. "description": "旧角色id, 新权限id, 新权限名, 新父角色id",
  388. "name": "data",
  389. "in": "body",
  390. "required": true,
  391. "schema": {
  392. "$ref": "#/definitions/response.SysAuthorityCopyResponse"
  393. }
  394. }
  395. ],
  396. "responses": {
  397. "200": {
  398. "description": "{\"success\":true,\"data\":{},\"msg\":\"拷贝成功\"}",
  399. "schema": {
  400. "type": "string"
  401. }
  402. }
  403. }
  404. }
  405. },
  406. "/authority/createAuthority": {
  407. "post": {
  408. "security": [
  409. {
  410. "ApiKeyAuth": []
  411. }
  412. ],
  413. "consumes": [
  414. "application/json"
  415. ],
  416. "produces": [
  417. "application/json"
  418. ],
  419. "tags": [
  420. "Authority"
  421. ],
  422. "summary": "创建角色",
  423. "parameters": [
  424. {
  425. "description": "权限id, 权限名, 父角色id",
  426. "name": "data",
  427. "in": "body",
  428. "required": true,
  429. "schema": {
  430. "$ref": "#/definitions/system.SysAuthority"
  431. }
  432. }
  433. ],
  434. "responses": {
  435. "200": {
  436. "description": "{\"success\":true,\"data\":{},\"msg\":\"创建成功\"}",
  437. "schema": {
  438. "type": "string"
  439. }
  440. }
  441. }
  442. }
  443. },
  444. "/authority/deleteAuthority": {
  445. "post": {
  446. "security": [
  447. {
  448. "ApiKeyAuth": []
  449. }
  450. ],
  451. "consumes": [
  452. "application/json"
  453. ],
  454. "produces": [
  455. "application/json"
  456. ],
  457. "tags": [
  458. "Authority"
  459. ],
  460. "summary": "删除角色",
  461. "parameters": [
  462. {
  463. "description": "删除角色",
  464. "name": "data",
  465. "in": "body",
  466. "required": true,
  467. "schema": {
  468. "$ref": "#/definitions/system.SysAuthority"
  469. }
  470. }
  471. ],
  472. "responses": {
  473. "200": {
  474. "description": "{\"success\":true,\"data\":{},\"msg\":\"删除成功\"}",
  475. "schema": {
  476. "type": "string"
  477. }
  478. }
  479. }
  480. }
  481. },
  482. "/authority/getAuthorityList": {
  483. "post": {
  484. "security": [
  485. {
  486. "ApiKeyAuth": []
  487. }
  488. ],
  489. "consumes": [
  490. "application/json"
  491. ],
  492. "produces": [
  493. "application/json"
  494. ],
  495. "tags": [
  496. "Authority"
  497. ],
  498. "summary": "分页获取角色列表",
  499. "parameters": [
  500. {
  501. "description": "页码, 每页大小",
  502. "name": "data",
  503. "in": "body",
  504. "required": true,
  505. "schema": {
  506. "$ref": "#/definitions/request.PageInfo"
  507. }
  508. }
  509. ],
  510. "responses": {
  511. "200": {
  512. "description": "{\"success\":true,\"data\":{},\"msg\":\"获取成功\"}",
  513. "schema": {
  514. "type": "string"
  515. }
  516. }
  517. }
  518. }
  519. },
  520. "/authority/setDataAuthority": {
  521. "post": {
  522. "security": [
  523. {
  524. "ApiKeyAuth": []
  525. }
  526. ],
  527. "consumes": [
  528. "application/json"
  529. ],
  530. "produces": [
  531. "application/json"
  532. ],
  533. "tags": [
  534. "Authority"
  535. ],
  536. "summary": "设置角色资源权限",
  537. "parameters": [
  538. {
  539. "description": "设置角色资源权限",
  540. "name": "data",
  541. "in": "body",
  542. "required": true,
  543. "schema": {
  544. "$ref": "#/definitions/system.SysAuthority"
  545. }
  546. }
  547. ],
  548. "responses": {
  549. "200": {
  550. "description": "{\"success\":true,\"data\":{},\"msg\":\"设置成功\"}",
  551. "schema": {
  552. "type": "string"
  553. }
  554. }
  555. }
  556. }
  557. },
  558. "/authority/updateAuthority": {
  559. "post": {
  560. "security": [
  561. {
  562. "ApiKeyAuth": []
  563. }
  564. ],
  565. "consumes": [
  566. "application/json"
  567. ],
  568. "produces": [
  569. "application/json"
  570. ],
  571. "tags": [
  572. "Authority"
  573. ],
  574. "summary": "更新角色信息",
  575. "parameters": [
  576. {
  577. "description": "权限id, 权限名, 父角色id",
  578. "name": "data",
  579. "in": "body",
  580. "required": true,
  581. "schema": {
  582. "$ref": "#/definitions/system.SysAuthority"
  583. }
  584. }
  585. ],
  586. "responses": {
  587. "200": {
  588. "description": "{\"success\":true,\"data\":{},\"msg\":\"更新成功\"}",
  589. "schema": {
  590. "type": "string"
  591. }
  592. }
  593. }
  594. }
  595. },
  596. "/autoCode/createTemp": {
  597. "post": {
  598. "security": [
  599. {
  600. "ApiKeyAuth": []
  601. }
  602. ],
  603. "consumes": [
  604. "application/json"
  605. ],
  606. "produces": [
  607. "application/json"
  608. ],
  609. "tags": [
  610. "AutoCode"
  611. ],
  612. "summary": "自动代码模板",
  613. "parameters": [
  614. {
  615. "description": "创建自动代码",
  616. "name": "data",
  617. "in": "body",
  618. "required": true,
  619. "schema": {
  620. "$ref": "#/definitions/system.AutoCodeStruct"
  621. }
  622. }
  623. ],
  624. "responses": {
  625. "200": {
  626. "description": "{\"success\":true,\"data\":{},\"msg\":\"创建成功\"}",
  627. "schema": {
  628. "type": "string"
  629. }
  630. }
  631. }
  632. }
  633. },
  634. "/autoCode/delSysHistory": {
  635. "post": {
  636. "security": [
  637. {
  638. "ApiKeyAuth": []
  639. }
  640. ],
  641. "consumes": [
  642. "application/json"
  643. ],
  644. "produces": [
  645. "application/json"
  646. ],
  647. "tags": [
  648. "AutoCode"
  649. ],
  650. "summary": "删除回滚记录",
  651. "parameters": [
  652. {
  653. "description": "删除回滚记录",
  654. "name": "data",
  655. "in": "body",
  656. "required": true,
  657. "schema": {
  658. "$ref": "#/definitions/request.AutoHistoryByID"
  659. }
  660. }
  661. ],
  662. "responses": {
  663. "200": {
  664. "description": "{\"success\":true,\"data\":{},\"msg\":\"删除成功\"}",
  665. "schema": {
  666. "type": "string"
  667. }
  668. }
  669. }
  670. }
  671. },
  672. "/autoCode/getColumn": {
  673. "get": {
  674. "security": [
  675. {
  676. "ApiKeyAuth": []
  677. }
  678. ],
  679. "consumes": [
  680. "application/json"
  681. ],
  682. "produces": [
  683. "application/json"
  684. ],
  685. "tags": [
  686. "AutoCode"
  687. ],
  688. "summary": "获取当前表所有字段",
  689. "responses": {
  690. "200": {
  691. "description": "{\"success\":true,\"data\":{},\"msg\":\"获取成功\"}",
  692. "schema": {
  693. "type": "string"
  694. }
  695. }
  696. }
  697. }
  698. },
  699. "/autoCode/getDatabase": {
  700. "get": {
  701. "security": [
  702. {
  703. "ApiKeyAuth": []
  704. }
  705. ],
  706. "consumes": [
  707. "application/json"
  708. ],
  709. "produces": [
  710. "application/json"
  711. ],
  712. "tags": [
  713. "AutoCode"
  714. ],
  715. "summary": "获取当前所有数据库",
  716. "responses": {
  717. "200": {
  718. "description": "{\"success\":true,\"data\":{},\"msg\":\"获取成功\"}",
  719. "schema": {
  720. "type": "string"
  721. }
  722. }
  723. }
  724. }
  725. },
  726. "/autoCode/getMeta": {
  727. "post": {
  728. "security": [
  729. {
  730. "ApiKeyAuth": []
  731. }
  732. ],
  733. "consumes": [
  734. "application/json"
  735. ],
  736. "produces": [
  737. "application/json"
  738. ],
  739. "tags": [
  740. "AutoCode"
  741. ],
  742. "summary": "回滚",
  743. "parameters": [
  744. {
  745. "description": "获取meta信息",
  746. "name": "data",
  747. "in": "body",
  748. "required": true,
  749. "schema": {
  750. "$ref": "#/definitions/request.AutoHistoryByID"
  751. }
  752. }
  753. ],
  754. "responses": {
  755. "200": {
  756. "description": "{\"success\":true,\"data\":{},\"msg\":\"获取成功\"}",
  757. "schema": {
  758. "type": "string"
  759. }
  760. }
  761. }
  762. }
  763. },
  764. "/autoCode/getSysHistory": {
  765. "post": {
  766. "security": [
  767. {
  768. "ApiKeyAuth": []
  769. }
  770. ],
  771. "consumes": [
  772. "application/json"
  773. ],
  774. "produces": [
  775. "application/json"
  776. ],
  777. "tags": [
  778. "AutoCode"
  779. ],
  780. "summary": "查询回滚记录",
  781. "parameters": [
  782. {
  783. "description": "查询回滚记录",
  784. "name": "data",
  785. "in": "body",
  786. "required": true,
  787. "schema": {
  788. "$ref": "#/definitions/request.SysAutoHistory"
  789. }
  790. }
  791. ],
  792. "responses": {
  793. "200": {
  794. "description": "{\"success\":true,\"data\":{},\"msg\":\"获取成功\"}",
  795. "schema": {
  796. "type": "string"
  797. }
  798. }
  799. }
  800. }
  801. },
  802. "/autoCode/getTables": {
  803. "get": {
  804. "security": [
  805. {
  806. "ApiKeyAuth": []
  807. }
  808. ],
  809. "consumes": [
  810. "application/json"
  811. ],
  812. "produces": [
  813. "application/json"
  814. ],
  815. "tags": [
  816. "AutoCode"
  817. ],
  818. "summary": "获取当前数据库所有表",
  819. "responses": {
  820. "200": {
  821. "description": "{\"success\":true,\"data\":{},\"msg\":\"获取成功\"}",
  822. "schema": {
  823. "type": "string"
  824. }
  825. }
  826. }
  827. }
  828. },
  829. "/autoCode/preview": {
  830. "post": {
  831. "security": [
  832. {
  833. "ApiKeyAuth": []
  834. }
  835. ],
  836. "consumes": [
  837. "application/json"
  838. ],
  839. "produces": [
  840. "application/json"
  841. ],
  842. "tags": [
  843. "AutoCode"
  844. ],
  845. "summary": "预览创建后的代码",
  846. "parameters": [
  847. {
  848. "description": "预览创建代码",
  849. "name": "data",
  850. "in": "body",
  851. "required": true,
  852. "schema": {
  853. "$ref": "#/definitions/system.AutoCodeStruct"
  854. }
  855. }
  856. ],
  857. "responses": {
  858. "200": {
  859. "description": "{\"success\":true,\"data\":{},\"msg\":\"创建成功\"}",
  860. "schema": {
  861. "type": "string"
  862. }
  863. }
  864. }
  865. }
  866. },
  867. "/autoCode/rollback": {
  868. "post": {
  869. "security": [
  870. {
  871. "ApiKeyAuth": []
  872. }
  873. ],
  874. "consumes": [
  875. "application/json"
  876. ],
  877. "produces": [
  878. "application/json"
  879. ],
  880. "tags": [
  881. "AutoCode"
  882. ],
  883. "summary": "回滚",
  884. "parameters": [
  885. {
  886. "description": "回滚自动生成代码",
  887. "name": "data",
  888. "in": "body",
  889. "required": true,
  890. "schema": {
  891. "$ref": "#/definitions/request.AutoHistoryByID"
  892. }
  893. }
  894. ],
  895. "responses": {
  896. "200": {
  897. "description": "{\"success\":true,\"data\":{},\"msg\":\"回滚成功\"}",
  898. "schema": {
  899. "type": "string"
  900. }
  901. }
  902. }
  903. }
  904. },
  905. "/autoCodeExample/createAutoCodeExample": {
  906. "post": {
  907. "security": [
  908. {
  909. "ApiKeyAuth": []
  910. }
  911. ],
  912. "consumes": [
  913. "application/json"
  914. ],
  915. "produces": [
  916. "application/json"
  917. ],
  918. "tags": [
  919. "AutoCodeExample"
  920. ],
  921. "summary": "创建AutoCodeExample",
  922. "parameters": [
  923. {
  924. "description": "AutoCodeExample模型",
  925. "name": "data",
  926. "in": "body",
  927. "required": true,
  928. "schema": {
  929. "$ref": "#/definitions/autocode.AutoCodeExample"
  930. }
  931. }
  932. ],
  933. "responses": {
  934. "200": {
  935. "description": "{\"success\":true,\"data\":{},\"msg\":\"创建成功\"}",
  936. "schema": {
  937. "type": "string"
  938. }
  939. }
  940. }
  941. }
  942. },
  943. "/autoCodeExample/deleteAutoCodeExample": {
  944. "delete": {
  945. "security": [
  946. {
  947. "ApiKeyAuth": []
  948. }
  949. ],
  950. "consumes": [
  951. "application/json"
  952. ],
  953. "produces": [
  954. "application/json"
  955. ],
  956. "tags": [
  957. "AutoCodeExample"
  958. ],
  959. "summary": "删除AutoCodeExample",
  960. "parameters": [
  961. {
  962. "description": "AutoCodeExample模型",
  963. "name": "data",
  964. "in": "body",
  965. "required": true,
  966. "schema": {
  967. "$ref": "#/definitions/autocode.AutoCodeExample"
  968. }
  969. }
  970. ],
  971. "responses": {
  972. "200": {
  973. "description": "{\"success\":true,\"data\":{},\"msg\":\"删除成功\"}",
  974. "schema": {
  975. "type": "string"
  976. }
  977. }
  978. }
  979. }
  980. },
  981. "/autoCodeExample/findAutoCodeExample": {
  982. "get": {
  983. "security": [
  984. {
  985. "ApiKeyAuth": []
  986. }
  987. ],
  988. "consumes": [
  989. "application/json"
  990. ],
  991. "produces": [
  992. "application/json"
  993. ],
  994. "tags": [
  995. "AutoCodeExample"
  996. ],
  997. "summary": "用id查询AutoCodeExample",
  998. "parameters": [
  999. {
  1000. "description": "用id查询AutoCodeExample",
  1001. "name": "data",
  1002. "in": "body",
  1003. "required": true,
  1004. "schema": {
  1005. "$ref": "#/definitions/autocode.AutoCodeExample"
  1006. }
  1007. }
  1008. ],
  1009. "responses": {
  1010. "200": {
  1011. "description": "{\"success\":true,\"data\":{},\"msg\":\"查询成功\"}",
  1012. "schema": {
  1013. "type": "string"
  1014. }
  1015. }
  1016. }
  1017. }
  1018. },
  1019. "/autoCodeExample/getAutoCodeExampleList": {
  1020. "get": {
  1021. "security": [
  1022. {
  1023. "ApiKeyAuth": []
  1024. }
  1025. ],
  1026. "consumes": [
  1027. "application/json"
  1028. ],
  1029. "produces": [
  1030. "application/json"
  1031. ],
  1032. "tags": [
  1033. "AutoCodeExample"
  1034. ],
  1035. "summary": "分页获取AutoCodeExample列表",
  1036. "parameters": [
  1037. {
  1038. "description": "页码, 每页大小, 搜索条件",
  1039. "name": "data",
  1040. "in": "body",
  1041. "required": true,
  1042. "schema": {
  1043. "$ref": "#/definitions/request.AutoCodeExampleSearch"
  1044. }
  1045. }
  1046. ],
  1047. "responses": {
  1048. "200": {
  1049. "description": "{\"success\":true,\"data\":{},\"msg\":\"获取成功\"}",
  1050. "schema": {
  1051. "type": "string"
  1052. }
  1053. }
  1054. }
  1055. }
  1056. },
  1057. "/autoCodeExample/updateAutoCodeExample": {
  1058. "put": {
  1059. "security": [
  1060. {
  1061. "ApiKeyAuth": []
  1062. }
  1063. ],
  1064. "consumes": [
  1065. "application/json"
  1066. ],
  1067. "produces": [
  1068. "application/json"
  1069. ],
  1070. "tags": [
  1071. "AutoCodeExample"
  1072. ],
  1073. "summary": "更新AutoCodeExample",
  1074. "parameters": [
  1075. {
  1076. "description": "更新AutoCodeExample",
  1077. "name": "data",
  1078. "in": "body",
  1079. "required": true,
  1080. "schema": {
  1081. "$ref": "#/definitions/autocode.AutoCodeExample"
  1082. }
  1083. }
  1084. ],
  1085. "responses": {
  1086. "200": {
  1087. "description": "{\"success\":true,\"data\":{},\"msg\":\"更新成功\"}",
  1088. "schema": {
  1089. "type": "string"
  1090. }
  1091. }
  1092. }
  1093. }
  1094. },
  1095. "/base/captcha": {
  1096. "post": {
  1097. "security": [
  1098. {
  1099. "ApiKeyAuth": []
  1100. }
  1101. ],
  1102. "consumes": [
  1103. "application/json"
  1104. ],
  1105. "produces": [
  1106. "application/json"
  1107. ],
  1108. "tags": [
  1109. "Base"
  1110. ],
  1111. "summary": "生成验证码",
  1112. "responses": {
  1113. "200": {
  1114. "description": "{\"success\":true,\"data\":{},\"msg\":\"验证码获取成功\"}",
  1115. "schema": {
  1116. "type": "string"
  1117. }
  1118. }
  1119. }
  1120. }
  1121. },
  1122. "/base/login": {
  1123. "post": {
  1124. "produces": [
  1125. "application/json"
  1126. ],
  1127. "tags": [
  1128. "Base"
  1129. ],
  1130. "summary": "用户登录",
  1131. "parameters": [
  1132. {
  1133. "description": "用户名, 密码, 验证码",
  1134. "name": "data",
  1135. "in": "body",
  1136. "required": true,
  1137. "schema": {
  1138. "$ref": "#/definitions/request.Login"
  1139. }
  1140. }
  1141. ],
  1142. "responses": {
  1143. "200": {
  1144. "description": "{\"success\":true,\"data\":{},\"msg\":\"登陆成功\"}",
  1145. "schema": {
  1146. "type": "string"
  1147. }
  1148. }
  1149. }
  1150. }
  1151. },
  1152. "/casbin/UpdateCasbin": {
  1153. "post": {
  1154. "security": [
  1155. {
  1156. "ApiKeyAuth": []
  1157. }
  1158. ],
  1159. "consumes": [
  1160. "application/json"
  1161. ],
  1162. "produces": [
  1163. "application/json"
  1164. ],
  1165. "tags": [
  1166. "Casbin"
  1167. ],
  1168. "summary": "更新角色api权限",
  1169. "parameters": [
  1170. {
  1171. "description": "权限id, 权限模型列表",
  1172. "name": "data",
  1173. "in": "body",
  1174. "required": true,
  1175. "schema": {
  1176. "$ref": "#/definitions/request.CasbinInReceive"
  1177. }
  1178. }
  1179. ],
  1180. "responses": {
  1181. "200": {
  1182. "description": "{\"success\":true,\"data\":{},\"msg\":\"更新成功\"}",
  1183. "schema": {
  1184. "type": "string"
  1185. }
  1186. }
  1187. }
  1188. }
  1189. },
  1190. "/casbin/getPolicyPathByAuthorityId": {
  1191. "post": {
  1192. "security": [
  1193. {
  1194. "ApiKeyAuth": []
  1195. }
  1196. ],
  1197. "consumes": [
  1198. "application/json"
  1199. ],
  1200. "produces": [
  1201. "application/json"
  1202. ],
  1203. "tags": [
  1204. "Casbin"
  1205. ],
  1206. "summary": "获取权限列表",
  1207. "parameters": [
  1208. {
  1209. "description": "权限id, 权限模型列表",
  1210. "name": "data",
  1211. "in": "body",
  1212. "required": true,
  1213. "schema": {
  1214. "$ref": "#/definitions/request.CasbinInReceive"
  1215. }
  1216. }
  1217. ],
  1218. "responses": {
  1219. "200": {
  1220. "description": "{\"success\":true,\"data\":{},\"msg\":\"获取成功\"}",
  1221. "schema": {
  1222. "type": "string"
  1223. }
  1224. }
  1225. }
  1226. }
  1227. },
  1228. "/customer/customer": {
  1229. "get": {
  1230. "security": [
  1231. {
  1232. "ApiKeyAuth": []
  1233. }
  1234. ],
  1235. "consumes": [
  1236. "application/json"
  1237. ],
  1238. "produces": [
  1239. "application/json"
  1240. ],
  1241. "tags": [
  1242. "ExaCustomer"
  1243. ],
  1244. "summary": "获取单一客户信息",
  1245. "parameters": [
  1246. {
  1247. "description": "客户ID",
  1248. "name": "data",
  1249. "in": "body",
  1250. "required": true,
  1251. "schema": {
  1252. "$ref": "#/definitions/example.ExaCustomer"
  1253. }
  1254. }
  1255. ],
  1256. "responses": {
  1257. "200": {
  1258. "description": "{\"success\":true,\"data\":{},\"msg\":\"获取成功\"}",
  1259. "schema": {
  1260. "type": "string"
  1261. }
  1262. }
  1263. }
  1264. },
  1265. "put": {
  1266. "security": [
  1267. {
  1268. "ApiKeyAuth": []
  1269. }
  1270. ],
  1271. "consumes": [
  1272. "application/json"
  1273. ],
  1274. "produces": [
  1275. "application/json"
  1276. ],
  1277. "tags": [
  1278. "ExaCustomer"
  1279. ],
  1280. "summary": "更新客户信息",
  1281. "parameters": [
  1282. {
  1283. "description": "客户ID, 客户信息",
  1284. "name": "data",
  1285. "in": "body",
  1286. "required": true,
  1287. "schema": {
  1288. "$ref": "#/definitions/example.ExaCustomer"
  1289. }
  1290. }
  1291. ],
  1292. "responses": {
  1293. "200": {
  1294. "description": "{\"success\":true,\"data\":{},\"msg\":\"更新成功\"}",
  1295. "schema": {
  1296. "type": "string"
  1297. }
  1298. }
  1299. }
  1300. },
  1301. "post": {
  1302. "security": [
  1303. {
  1304. "ApiKeyAuth": []
  1305. }
  1306. ],
  1307. "consumes": [
  1308. "application/json"
  1309. ],
  1310. "produces": [
  1311. "application/json"
  1312. ],
  1313. "tags": [
  1314. "ExaCustomer"
  1315. ],
  1316. "summary": "创建客户",
  1317. "parameters": [
  1318. {
  1319. "description": "客户用户名, 客户手机号码",
  1320. "name": "data",
  1321. "in": "body",
  1322. "required": true,
  1323. "schema": {
  1324. "$ref": "#/definitions/example.ExaCustomer"
  1325. }
  1326. }
  1327. ],
  1328. "responses": {
  1329. "200": {
  1330. "description": "{\"success\":true,\"data\":{},\"msg\":\"创建成功\"}",
  1331. "schema": {
  1332. "type": "string"
  1333. }
  1334. }
  1335. }
  1336. },
  1337. "delete": {
  1338. "security": [
  1339. {
  1340. "ApiKeyAuth": []
  1341. }
  1342. ],
  1343. "consumes": [
  1344. "application/json"
  1345. ],
  1346. "produces": [
  1347. "application/json"
  1348. ],
  1349. "tags": [
  1350. "ExaCustomer"
  1351. ],
  1352. "summary": "删除客户",
  1353. "parameters": [
  1354. {
  1355. "description": "客户ID",
  1356. "name": "data",
  1357. "in": "body",
  1358. "required": true,
  1359. "schema": {
  1360. "$ref": "#/definitions/example.ExaCustomer"
  1361. }
  1362. }
  1363. ],
  1364. "responses": {
  1365. "200": {
  1366. "description": "{\"success\":true,\"data\":{},\"msg\":\"删除成功\"}",
  1367. "schema": {
  1368. "type": "string"
  1369. }
  1370. }
  1371. }
  1372. }
  1373. },
  1374. "/customer/customerList": {
  1375. "get": {
  1376. "security": [
  1377. {
  1378. "ApiKeyAuth": []
  1379. }
  1380. ],
  1381. "consumes": [
  1382. "application/json"
  1383. ],
  1384. "produces": [
  1385. "application/json"
  1386. ],
  1387. "tags": [
  1388. "ExaCustomer"
  1389. ],
  1390. "summary": "分页获取权限客户列表",
  1391. "parameters": [
  1392. {
  1393. "description": "页码, 每页大小",
  1394. "name": "data",
  1395. "in": "body",
  1396. "required": true,
  1397. "schema": {
  1398. "$ref": "#/definitions/request.PageInfo"
  1399. }
  1400. }
  1401. ],
  1402. "responses": {
  1403. "200": {
  1404. "description": "{\"success\":true,\"data\":{},\"msg\":\"获取成功\"}",
  1405. "schema": {
  1406. "type": "string"
  1407. }
  1408. }
  1409. }
  1410. }
  1411. },
  1412. "/email/emailTest": {
  1413. "post": {
  1414. "security": [
  1415. {
  1416. "ApiKeyAuth": []
  1417. }
  1418. ],
  1419. "produces": [
  1420. "application/json"
  1421. ],
  1422. "tags": [
  1423. "System"
  1424. ],
  1425. "summary": "发送测试邮件",
  1426. "responses": {
  1427. "200": {
  1428. "description": "{\"success\":true,\"data\":{},\"msg\":\"发送成功\"}",
  1429. "schema": {
  1430. "type": "string"
  1431. }
  1432. }
  1433. }
  1434. }
  1435. },
  1436. "/excel/downloadTemplate": {
  1437. "get": {
  1438. "security": [
  1439. {
  1440. "ApiKeyAuth": []
  1441. }
  1442. ],
  1443. "consumes": [
  1444. "multipart/form-data"
  1445. ],
  1446. "produces": [
  1447. "application/json"
  1448. ],
  1449. "tags": [
  1450. "excel"
  1451. ],
  1452. "summary": "下载模板",
  1453. "parameters": [
  1454. {
  1455. "type": "string",
  1456. "description": "模板名称",
  1457. "name": "fileName",
  1458. "in": "query",
  1459. "required": true
  1460. }
  1461. ],
  1462. "responses": {
  1463. "200": {}
  1464. }
  1465. }
  1466. },
  1467. "/excel/exportExcel": {
  1468. "post": {
  1469. "security": [
  1470. {
  1471. "ApiKeyAuth": []
  1472. }
  1473. ],
  1474. "consumes": [
  1475. "application/json"
  1476. ],
  1477. "produces": [
  1478. "application/octet-stream"
  1479. ],
  1480. "tags": [
  1481. "excel"
  1482. ],
  1483. "summary": "导出Excel",
  1484. "parameters": [
  1485. {
  1486. "description": "导出Excel文件信息",
  1487. "name": "data",
  1488. "in": "body",
  1489. "required": true,
  1490. "schema": {
  1491. "$ref": "#/definitions/example.ExcelInfo"
  1492. }
  1493. }
  1494. ],
  1495. "responses": {
  1496. "200": {}
  1497. }
  1498. }
  1499. },
  1500. "/excel/importExcel": {
  1501. "post": {
  1502. "security": [
  1503. {
  1504. "ApiKeyAuth": []
  1505. }
  1506. ],
  1507. "consumes": [
  1508. "multipart/form-data"
  1509. ],
  1510. "produces": [
  1511. "application/json"
  1512. ],
  1513. "tags": [
  1514. "excel"
  1515. ],
  1516. "summary": "导入Excel文件",
  1517. "parameters": [
  1518. {
  1519. "type": "file",
  1520. "description": "导入Excel文件",
  1521. "name": "file",
  1522. "in": "formData",
  1523. "required": true
  1524. }
  1525. ],
  1526. "responses": {
  1527. "200": {
  1528. "description": "{\"success\":true,\"data\":{},\"msg\":\"导入成功\"}",
  1529. "schema": {
  1530. "type": "string"
  1531. }
  1532. }
  1533. }
  1534. }
  1535. },
  1536. "/excel/loadExcel": {
  1537. "get": {
  1538. "security": [
  1539. {
  1540. "ApiKeyAuth": []
  1541. }
  1542. ],
  1543. "produces": [
  1544. "application/json"
  1545. ],
  1546. "tags": [
  1547. "excel"
  1548. ],
  1549. "summary": "加载Excel数据",
  1550. "responses": {
  1551. "200": {
  1552. "description": "{\"success\":true,\"data\":{},\"msg\":\"加载数据成功\"}",
  1553. "schema": {
  1554. "type": "string"
  1555. }
  1556. }
  1557. }
  1558. }
  1559. },
  1560. "/fileUploadAndDownload/breakpointContinue": {
  1561. "post": {
  1562. "security": [
  1563. {
  1564. "ApiKeyAuth": []
  1565. }
  1566. ],
  1567. "consumes": [
  1568. "multipart/form-data"
  1569. ],
  1570. "produces": [
  1571. "application/json"
  1572. ],
  1573. "tags": [
  1574. "ExaFileUploadAndDownload"
  1575. ],
  1576. "summary": "断点续传到服务器",
  1577. "parameters": [
  1578. {
  1579. "type": "file",
  1580. "description": "an example for breakpoint resume, 断点续传示例",
  1581. "name": "file",
  1582. "in": "formData",
  1583. "required": true
  1584. }
  1585. ],
  1586. "responses": {
  1587. "200": {
  1588. "description": "{\"success\":true,\"data\":{},\"msg\":\"切片创建成功\"}",
  1589. "schema": {
  1590. "type": "string"
  1591. }
  1592. }
  1593. }
  1594. }
  1595. },
  1596. "/fileUploadAndDownload/deleteFile": {
  1597. "post": {
  1598. "security": [
  1599. {
  1600. "ApiKeyAuth": []
  1601. }
  1602. ],
  1603. "produces": [
  1604. "application/json"
  1605. ],
  1606. "tags": [
  1607. "ExaFileUploadAndDownload"
  1608. ],
  1609. "summary": "删除文件",
  1610. "parameters": [
  1611. {
  1612. "description": "传入文件里面id即可",
  1613. "name": "data",
  1614. "in": "body",
  1615. "required": true,
  1616. "schema": {
  1617. "$ref": "#/definitions/example.ExaFileUploadAndDownload"
  1618. }
  1619. }
  1620. ],
  1621. "responses": {
  1622. "200": {
  1623. "description": "{\"success\":true,\"data\":{},\"msg\":\"删除成功\"}",
  1624. "schema": {
  1625. "type": "string"
  1626. }
  1627. }
  1628. }
  1629. }
  1630. },
  1631. "/fileUploadAndDownload/findFile": {
  1632. "post": {
  1633. "security": [
  1634. {
  1635. "ApiKeyAuth": []
  1636. }
  1637. ],
  1638. "consumes": [
  1639. "multipart/form-data"
  1640. ],
  1641. "produces": [
  1642. "application/json"
  1643. ],
  1644. "tags": [
  1645. "ExaFileUploadAndDownload"
  1646. ],
  1647. "summary": "创建文件",
  1648. "parameters": [
  1649. {
  1650. "type": "file",
  1651. "description": "上传文件完成",
  1652. "name": "file",
  1653. "in": "formData",
  1654. "required": true
  1655. }
  1656. ],
  1657. "responses": {
  1658. "200": {
  1659. "description": "{\"success\":true,\"data\":{},\"msg\":\"file uploaded, 文件创建成功\"}",
  1660. "schema": {
  1661. "type": "string"
  1662. }
  1663. }
  1664. }
  1665. }
  1666. },
  1667. "/fileUploadAndDownload/getFileList": {
  1668. "post": {
  1669. "security": [
  1670. {
  1671. "ApiKeyAuth": []
  1672. }
  1673. ],
  1674. "consumes": [
  1675. "application/json"
  1676. ],
  1677. "produces": [
  1678. "application/json"
  1679. ],
  1680. "tags": [
  1681. "ExaFileUploadAndDownload"
  1682. ],
  1683. "summary": "分页文件列表",
  1684. "parameters": [
  1685. {
  1686. "description": "页码, 每页大小",
  1687. "name": "data",
  1688. "in": "body",
  1689. "required": true,
  1690. "schema": {
  1691. "$ref": "#/definitions/request.PageInfo"
  1692. }
  1693. }
  1694. ],
  1695. "responses": {
  1696. "200": {
  1697. "description": "{\"success\":true,\"data\":{},\"msg\":\"获取成功\"}",
  1698. "schema": {
  1699. "type": "string"
  1700. }
  1701. }
  1702. }
  1703. }
  1704. },
  1705. "/fileUploadAndDownload/removeChunk": {
  1706. "post": {
  1707. "security": [
  1708. {
  1709. "ApiKeyAuth": []
  1710. }
  1711. ],
  1712. "consumes": [
  1713. "multipart/form-data"
  1714. ],
  1715. "produces": [
  1716. "application/json"
  1717. ],
  1718. "tags": [
  1719. "ExaFileUploadAndDownload"
  1720. ],
  1721. "summary": "删除切片",
  1722. "parameters": [
  1723. {
  1724. "type": "file",
  1725. "description": "删除缓存切片",
  1726. "name": "file",
  1727. "in": "formData",
  1728. "required": true
  1729. }
  1730. ],
  1731. "responses": {
  1732. "200": {
  1733. "description": "{\"success\":true,\"data\":{},\"msg\":\"缓存切片删除成功\"}",
  1734. "schema": {
  1735. "type": "string"
  1736. }
  1737. }
  1738. }
  1739. }
  1740. },
  1741. "/fileUploadAndDownload/upload": {
  1742. "post": {
  1743. "security": [
  1744. {
  1745. "ApiKeyAuth": []
  1746. }
  1747. ],
  1748. "consumes": [
  1749. "multipart/form-data"
  1750. ],
  1751. "produces": [
  1752. "application/json"
  1753. ],
  1754. "tags": [
  1755. "ExaFileUploadAndDownload"
  1756. ],
  1757. "summary": "上传文件示例",
  1758. "parameters": [
  1759. {
  1760. "type": "file",
  1761. "description": "上传文件示例",
  1762. "name": "file",
  1763. "in": "formData",
  1764. "required": true
  1765. }
  1766. ],
  1767. "responses": {
  1768. "200": {
  1769. "description": "{\"success\":true,\"data\":{},\"msg\":\"上传成功\"}",
  1770. "schema": {
  1771. "type": "string"
  1772. }
  1773. }
  1774. }
  1775. }
  1776. },
  1777. "/init/checkdb": {
  1778. "post": {
  1779. "produces": [
  1780. "application/json"
  1781. ],
  1782. "tags": [
  1783. "CheckDB"
  1784. ],
  1785. "summary": "初始化用户数据库",
  1786. "responses": {
  1787. "200": {
  1788. "description": "{\"code\":0,\"data\":{},\"msg\":\"探测完成\"}",
  1789. "schema": {
  1790. "type": "string"
  1791. }
  1792. }
  1793. }
  1794. }
  1795. },
  1796. "/init/initdb": {
  1797. "post": {
  1798. "produces": [
  1799. "application/json"
  1800. ],
  1801. "tags": [
  1802. "InitDB"
  1803. ],
  1804. "summary": "初始化用户数据库",
  1805. "parameters": [
  1806. {
  1807. "description": "初始化数据库参数",
  1808. "name": "data",
  1809. "in": "body",
  1810. "required": true,
  1811. "schema": {
  1812. "$ref": "#/definitions/request.InitDB"
  1813. }
  1814. }
  1815. ],
  1816. "responses": {
  1817. "200": {
  1818. "description": "{\"code\":0,\"data\":{},\"msg\":\"自动创建数据库成功\"}",
  1819. "schema": {
  1820. "type": "string"
  1821. }
  1822. }
  1823. }
  1824. }
  1825. },
  1826. "/jwt/jsonInBlacklist": {
  1827. "post": {
  1828. "security": [
  1829. {
  1830. "ApiKeyAuth": []
  1831. }
  1832. ],
  1833. "consumes": [
  1834. "application/json"
  1835. ],
  1836. "produces": [
  1837. "application/json"
  1838. ],
  1839. "tags": [
  1840. "Jwt"
  1841. ],
  1842. "summary": "jwt加入黑名单",
  1843. "responses": {
  1844. "200": {
  1845. "description": "{\"success\":true,\"data\":{},\"msg\":\"拉黑成功\"}",
  1846. "schema": {
  1847. "type": "string"
  1848. }
  1849. }
  1850. }
  1851. }
  1852. },
  1853. "/menu/GetMenuAuthority": {
  1854. "post": {
  1855. "security": [
  1856. {
  1857. "ApiKeyAuth": []
  1858. }
  1859. ],
  1860. "consumes": [
  1861. "application/json"
  1862. ],
  1863. "produces": [
  1864. "application/json"
  1865. ],
  1866. "tags": [
  1867. "AuthorityMenu"
  1868. ],
  1869. "summary": "获取指定角色menu",
  1870. "parameters": [
  1871. {
  1872. "description": "角色ID",
  1873. "name": "data",
  1874. "in": "body",
  1875. "required": true,
  1876. "schema": {
  1877. "$ref": "#/definitions/request.GetAuthorityId"
  1878. }
  1879. }
  1880. ],
  1881. "responses": {
  1882. "200": {
  1883. "description": "{\"success\":true,\"data\":{},\"msg\":\"获取成功\"}",
  1884. "schema": {
  1885. "type": "string"
  1886. }
  1887. }
  1888. }
  1889. }
  1890. },
  1891. "/menu/addBaseMenu": {
  1892. "post": {
  1893. "security": [
  1894. {
  1895. "ApiKeyAuth": []
  1896. }
  1897. ],
  1898. "consumes": [
  1899. "application/json"
  1900. ],
  1901. "produces": [
  1902. "application/json"
  1903. ],
  1904. "tags": [
  1905. "Menu"
  1906. ],
  1907. "summary": "新增菜单",
  1908. "parameters": [
  1909. {
  1910. "description": "路由path, 父菜单ID, 路由name, 对应前端文件路径, 排序标记",
  1911. "name": "data",
  1912. "in": "body",
  1913. "required": true,
  1914. "schema": {
  1915. "$ref": "#/definitions/system.SysBaseMenu"
  1916. }
  1917. }
  1918. ],
  1919. "responses": {
  1920. "200": {
  1921. "description": "{\"success\":true,\"data\":{},\"msg\":\"添加成功\"}",
  1922. "schema": {
  1923. "type": "string"
  1924. }
  1925. }
  1926. }
  1927. }
  1928. },
  1929. "/menu/addMenuAuthority": {
  1930. "post": {
  1931. "security": [
  1932. {
  1933. "ApiKeyAuth": []
  1934. }
  1935. ],
  1936. "consumes": [
  1937. "application/json"
  1938. ],
  1939. "produces": [
  1940. "application/json"
  1941. ],
  1942. "tags": [
  1943. "AuthorityMenu"
  1944. ],
  1945. "summary": "增加menu和角色关联关系",
  1946. "parameters": [
  1947. {
  1948. "description": "角色ID",
  1949. "name": "data",
  1950. "in": "body",
  1951. "required": true,
  1952. "schema": {
  1953. "$ref": "#/definitions/request.AddMenuAuthorityInfo"
  1954. }
  1955. }
  1956. ],
  1957. "responses": {
  1958. "200": {
  1959. "description": "{\"success\":true,\"data\":{},\"msg\":\"添加成功\"}",
  1960. "schema": {
  1961. "type": "string"
  1962. }
  1963. }
  1964. }
  1965. }
  1966. },
  1967. "/menu/deleteBaseMenu": {
  1968. "post": {
  1969. "security": [
  1970. {
  1971. "ApiKeyAuth": []
  1972. }
  1973. ],
  1974. "consumes": [
  1975. "application/json"
  1976. ],
  1977. "produces": [
  1978. "application/json"
  1979. ],
  1980. "tags": [
  1981. "Menu"
  1982. ],
  1983. "summary": "删除菜单",
  1984. "parameters": [
  1985. {
  1986. "description": "菜单id",
  1987. "name": "data",
  1988. "in": "body",
  1989. "required": true,
  1990. "schema": {
  1991. "$ref": "#/definitions/request.GetById"
  1992. }
  1993. }
  1994. ],
  1995. "responses": {
  1996. "200": {
  1997. "description": "{\"success\":true,\"data\":{},\"msg\":\"删除成功\"}",
  1998. "schema": {
  1999. "type": "string"
  2000. }
  2001. }
  2002. }
  2003. }
  2004. },
  2005. "/menu/getBaseMenuById": {
  2006. "post": {
  2007. "security": [
  2008. {
  2009. "ApiKeyAuth": []
  2010. }
  2011. ],
  2012. "consumes": [
  2013. "application/json"
  2014. ],
  2015. "produces": [
  2016. "application/json"
  2017. ],
  2018. "tags": [
  2019. "Menu"
  2020. ],
  2021. "summary": "根据id获取菜单",
  2022. "parameters": [
  2023. {
  2024. "description": "菜单id",
  2025. "name": "data",
  2026. "in": "body",
  2027. "required": true,
  2028. "schema": {
  2029. "$ref": "#/definitions/request.GetById"
  2030. }
  2031. }
  2032. ],
  2033. "responses": {
  2034. "200": {
  2035. "description": "{\"success\":true,\"data\":{},\"msg\":\"获取成功\"}",
  2036. "schema": {
  2037. "type": "string"
  2038. }
  2039. }
  2040. }
  2041. }
  2042. },
  2043. "/menu/getBaseMenuTree": {
  2044. "post": {
  2045. "security": [
  2046. {
  2047. "ApiKeyAuth": []
  2048. }
  2049. ],
  2050. "produces": [
  2051. "application/json"
  2052. ],
  2053. "tags": [
  2054. "AuthorityMenu"
  2055. ],
  2056. "summary": "获取用户动态路由",
  2057. "parameters": [
  2058. {
  2059. "description": "空",
  2060. "name": "data",
  2061. "in": "body",
  2062. "required": true,
  2063. "schema": {
  2064. "$ref": "#/definitions/request.Empty"
  2065. }
  2066. }
  2067. ],
  2068. "responses": {
  2069. "200": {
  2070. "description": "{\"success\":true,\"data\":{},\"msg\":\"获取成功\"}",
  2071. "schema": {
  2072. "type": "string"
  2073. }
  2074. }
  2075. }
  2076. }
  2077. },
  2078. "/menu/getMenu": {
  2079. "post": {
  2080. "security": [
  2081. {
  2082. "ApiKeyAuth": []
  2083. }
  2084. ],
  2085. "produces": [
  2086. "application/json"
  2087. ],
  2088. "tags": [
  2089. "AuthorityMenu"
  2090. ],
  2091. "summary": "获取用户动态路由",
  2092. "parameters": [
  2093. {
  2094. "description": "空",
  2095. "name": "data",
  2096. "in": "body",
  2097. "required": true,
  2098. "schema": {
  2099. "$ref": "#/definitions/request.Empty"
  2100. }
  2101. }
  2102. ],
  2103. "responses": {
  2104. "200": {
  2105. "description": "{\"success\":true,\"data\":{},\"msg\":\"获取成功\"}",
  2106. "schema": {
  2107. "type": "string"
  2108. }
  2109. }
  2110. }
  2111. }
  2112. },
  2113. "/menu/getMenuList": {
  2114. "post": {
  2115. "security": [
  2116. {
  2117. "ApiKeyAuth": []
  2118. }
  2119. ],
  2120. "consumes": [
  2121. "application/json"
  2122. ],
  2123. "produces": [
  2124. "application/json"
  2125. ],
  2126. "tags": [
  2127. "Menu"
  2128. ],
  2129. "summary": "分页获取基础menu列表",
  2130. "parameters": [
  2131. {
  2132. "description": "页码, 每页大小",
  2133. "name": "data",
  2134. "in": "body",
  2135. "required": true,
  2136. "schema": {
  2137. "$ref": "#/definitions/request.PageInfo"
  2138. }
  2139. }
  2140. ],
  2141. "responses": {
  2142. "200": {
  2143. "description": "{\"success\":true,\"data\":{},\"msg\":\"获取成功\"}",
  2144. "schema": {
  2145. "type": "string"
  2146. }
  2147. }
  2148. }
  2149. }
  2150. },
  2151. "/menu/updateBaseMenu": {
  2152. "post": {
  2153. "security": [
  2154. {
  2155. "ApiKeyAuth": []
  2156. }
  2157. ],
  2158. "consumes": [
  2159. "application/json"
  2160. ],
  2161. "produces": [
  2162. "application/json"
  2163. ],
  2164. "tags": [
  2165. "Menu"
  2166. ],
  2167. "summary": "更新菜单",
  2168. "parameters": [
  2169. {
  2170. "description": "路由path, 父菜单ID, 路由name, 对应前端文件路径, 排序标记",
  2171. "name": "data",
  2172. "in": "body",
  2173. "required": true,
  2174. "schema": {
  2175. "$ref": "#/definitions/system.SysBaseMenu"
  2176. }
  2177. }
  2178. ],
  2179. "responses": {
  2180. "200": {
  2181. "description": "{\"success\":true,\"data\":{},\"msg\":\"更新成功\"}",
  2182. "schema": {
  2183. "type": "string"
  2184. }
  2185. }
  2186. }
  2187. }
  2188. },
  2189. "/sysDictionary/createSysDictionary": {
  2190. "post": {
  2191. "security": [
  2192. {
  2193. "ApiKeyAuth": []
  2194. }
  2195. ],
  2196. "consumes": [
  2197. "application/json"
  2198. ],
  2199. "produces": [
  2200. "application/json"
  2201. ],
  2202. "tags": [
  2203. "SysDictionary"
  2204. ],
  2205. "summary": "创建SysDictionary",
  2206. "parameters": [
  2207. {
  2208. "description": "SysDictionary模型",
  2209. "name": "data",
  2210. "in": "body",
  2211. "required": true,
  2212. "schema": {
  2213. "$ref": "#/definitions/system.SysDictionary"
  2214. }
  2215. }
  2216. ],
  2217. "responses": {
  2218. "200": {
  2219. "description": "{\"success\":true,\"data\":{},\"msg\":\"创建成功\"}",
  2220. "schema": {
  2221. "type": "string"
  2222. }
  2223. }
  2224. }
  2225. }
  2226. },
  2227. "/sysDictionary/deleteSysDictionary": {
  2228. "delete": {
  2229. "security": [
  2230. {
  2231. "ApiKeyAuth": []
  2232. }
  2233. ],
  2234. "consumes": [
  2235. "application/json"
  2236. ],
  2237. "produces": [
  2238. "application/json"
  2239. ],
  2240. "tags": [
  2241. "SysDictionary"
  2242. ],
  2243. "summary": "删除SysDictionary",
  2244. "parameters": [
  2245. {
  2246. "description": "SysDictionary模型",
  2247. "name": "data",
  2248. "in": "body",
  2249. "required": true,
  2250. "schema": {
  2251. "$ref": "#/definitions/system.SysDictionary"
  2252. }
  2253. }
  2254. ],
  2255. "responses": {
  2256. "200": {
  2257. "description": "{\"success\":true,\"data\":{},\"msg\":\"删除成功\"}",
  2258. "schema": {
  2259. "type": "string"
  2260. }
  2261. }
  2262. }
  2263. }
  2264. },
  2265. "/sysDictionary/findSysDictionary": {
  2266. "get": {
  2267. "security": [
  2268. {
  2269. "ApiKeyAuth": []
  2270. }
  2271. ],
  2272. "consumes": [
  2273. "application/json"
  2274. ],
  2275. "produces": [
  2276. "application/json"
  2277. ],
  2278. "tags": [
  2279. "SysDictionary"
  2280. ],
  2281. "summary": "用id查询SysDictionary",
  2282. "parameters": [
  2283. {
  2284. "description": "ID或字典英名",
  2285. "name": "data",
  2286. "in": "body",
  2287. "required": true,
  2288. "schema": {
  2289. "$ref": "#/definitions/system.SysDictionary"
  2290. }
  2291. }
  2292. ],
  2293. "responses": {
  2294. "200": {
  2295. "description": "{\"success\":true,\"data\":{},\"msg\":\"查询成功\"}",
  2296. "schema": {
  2297. "type": "string"
  2298. }
  2299. }
  2300. }
  2301. }
  2302. },
  2303. "/sysDictionary/getSysDictionaryList": {
  2304. "get": {
  2305. "security": [
  2306. {
  2307. "ApiKeyAuth": []
  2308. }
  2309. ],
  2310. "consumes": [
  2311. "application/json"
  2312. ],
  2313. "produces": [
  2314. "application/json"
  2315. ],
  2316. "tags": [
  2317. "SysDictionary"
  2318. ],
  2319. "summary": "分页获取SysDictionary列表",
  2320. "parameters": [
  2321. {
  2322. "description": "页码, 每页大小, 搜索条件",
  2323. "name": "data",
  2324. "in": "body",
  2325. "required": true,
  2326. "schema": {
  2327. "$ref": "#/definitions/request.SysDictionarySearch"
  2328. }
  2329. }
  2330. ],
  2331. "responses": {
  2332. "200": {
  2333. "description": "{\"success\":true,\"data\":{},\"msg\":\"获取成功\"}",
  2334. "schema": {
  2335. "type": "string"
  2336. }
  2337. }
  2338. }
  2339. }
  2340. },
  2341. "/sysDictionary/updateSysDictionary": {
  2342. "put": {
  2343. "security": [
  2344. {
  2345. "ApiKeyAuth": []
  2346. }
  2347. ],
  2348. "consumes": [
  2349. "application/json"
  2350. ],
  2351. "produces": [
  2352. "application/json"
  2353. ],
  2354. "tags": [
  2355. "SysDictionary"
  2356. ],
  2357. "summary": "更新SysDictionary",
  2358. "parameters": [
  2359. {
  2360. "description": "SysDictionary模型",
  2361. "name": "data",
  2362. "in": "body",
  2363. "required": true,
  2364. "schema": {
  2365. "$ref": "#/definitions/system.SysDictionary"
  2366. }
  2367. }
  2368. ],
  2369. "responses": {
  2370. "200": {
  2371. "description": "{\"success\":true,\"data\":{},\"msg\":\"更新成功\"}",
  2372. "schema": {
  2373. "type": "string"
  2374. }
  2375. }
  2376. }
  2377. }
  2378. },
  2379. "/sysDictionaryDetail/createSysDictionaryDetail": {
  2380. "post": {
  2381. "security": [
  2382. {
  2383. "ApiKeyAuth": []
  2384. }
  2385. ],
  2386. "consumes": [
  2387. "application/json"
  2388. ],
  2389. "produces": [
  2390. "application/json"
  2391. ],
  2392. "tags": [
  2393. "SysDictionaryDetail"
  2394. ],
  2395. "summary": "创建SysDictionaryDetail",
  2396. "parameters": [
  2397. {
  2398. "description": "SysDictionaryDetail模型",
  2399. "name": "data",
  2400. "in": "body",
  2401. "required": true,
  2402. "schema": {
  2403. "$ref": "#/definitions/system.SysDictionaryDetail"
  2404. }
  2405. }
  2406. ],
  2407. "responses": {
  2408. "200": {
  2409. "description": "{\"success\":true,\"data\":{},\"msg\":\"创建成功\"}",
  2410. "schema": {
  2411. "type": "string"
  2412. }
  2413. }
  2414. }
  2415. }
  2416. },
  2417. "/sysDictionaryDetail/deleteSysDictionaryDetail": {
  2418. "delete": {
  2419. "security": [
  2420. {
  2421. "ApiKeyAuth": []
  2422. }
  2423. ],
  2424. "consumes": [
  2425. "application/json"
  2426. ],
  2427. "produces": [
  2428. "application/json"
  2429. ],
  2430. "tags": [
  2431. "SysDictionaryDetail"
  2432. ],
  2433. "summary": "删除SysDictionaryDetail",
  2434. "parameters": [
  2435. {
  2436. "description": "SysDictionaryDetail模型",
  2437. "name": "data",
  2438. "in": "body",
  2439. "required": true,
  2440. "schema": {
  2441. "$ref": "#/definitions/system.SysDictionaryDetail"
  2442. }
  2443. }
  2444. ],
  2445. "responses": {
  2446. "200": {
  2447. "description": "{\"success\":true,\"data\":{},\"msg\":\"删除成功\"}",
  2448. "schema": {
  2449. "type": "string"
  2450. }
  2451. }
  2452. }
  2453. }
  2454. },
  2455. "/sysDictionaryDetail/findSysDictionaryDetail": {
  2456. "get": {
  2457. "security": [
  2458. {
  2459. "ApiKeyAuth": []
  2460. }
  2461. ],
  2462. "consumes": [
  2463. "application/json"
  2464. ],
  2465. "produces": [
  2466. "application/json"
  2467. ],
  2468. "tags": [
  2469. "SysDictionaryDetail"
  2470. ],
  2471. "summary": "用id查询SysDictionaryDetail",
  2472. "parameters": [
  2473. {
  2474. "description": "用id查询SysDictionaryDetail",
  2475. "name": "data",
  2476. "in": "body",
  2477. "required": true,
  2478. "schema": {
  2479. "$ref": "#/definitions/system.SysDictionaryDetail"
  2480. }
  2481. }
  2482. ],
  2483. "responses": {
  2484. "200": {
  2485. "description": "{\"success\":true,\"data\":{},\"msg\":\"查询成功\"}",
  2486. "schema": {
  2487. "type": "string"
  2488. }
  2489. }
  2490. }
  2491. }
  2492. },
  2493. "/sysDictionaryDetail/getSysDictionaryDetailList": {
  2494. "get": {
  2495. "security": [
  2496. {
  2497. "ApiKeyAuth": []
  2498. }
  2499. ],
  2500. "consumes": [
  2501. "application/json"
  2502. ],
  2503. "produces": [
  2504. "application/json"
  2505. ],
  2506. "tags": [
  2507. "SysDictionaryDetail"
  2508. ],
  2509. "summary": "分页获取SysDictionaryDetail列表",
  2510. "parameters": [
  2511. {
  2512. "description": "页码, 每页大小, 搜索条件",
  2513. "name": "data",
  2514. "in": "body",
  2515. "required": true,
  2516. "schema": {
  2517. "$ref": "#/definitions/request.SysDictionaryDetailSearch"
  2518. }
  2519. }
  2520. ],
  2521. "responses": {
  2522. "200": {
  2523. "description": "{\"success\":true,\"data\":{},\"msg\":\"获取成功\"}",
  2524. "schema": {
  2525. "type": "string"
  2526. }
  2527. }
  2528. }
  2529. }
  2530. },
  2531. "/sysDictionaryDetail/updateSysDictionaryDetail": {
  2532. "put": {
  2533. "security": [
  2534. {
  2535. "ApiKeyAuth": []
  2536. }
  2537. ],
  2538. "consumes": [
  2539. "application/json"
  2540. ],
  2541. "produces": [
  2542. "application/json"
  2543. ],
  2544. "tags": [
  2545. "SysDictionaryDetail"
  2546. ],
  2547. "summary": "更新SysDictionaryDetail",
  2548. "parameters": [
  2549. {
  2550. "description": "更新SysDictionaryDetail",
  2551. "name": "data",
  2552. "in": "body",
  2553. "required": true,
  2554. "schema": {
  2555. "$ref": "#/definitions/system.SysDictionaryDetail"
  2556. }
  2557. }
  2558. ],
  2559. "responses": {
  2560. "200": {
  2561. "description": "{\"success\":true,\"data\":{},\"msg\":\"更新成功\"}",
  2562. "schema": {
  2563. "type": "string"
  2564. }
  2565. }
  2566. }
  2567. }
  2568. },
  2569. "/sysOperationRecord/createSysOperationRecord": {
  2570. "post": {
  2571. "security": [
  2572. {
  2573. "ApiKeyAuth": []
  2574. }
  2575. ],
  2576. "consumes": [
  2577. "application/json"
  2578. ],
  2579. "produces": [
  2580. "application/json"
  2581. ],
  2582. "tags": [
  2583. "SysOperationRecord"
  2584. ],
  2585. "summary": "创建SysOperationRecord",
  2586. "parameters": [
  2587. {
  2588. "description": "创建SysOperationRecord",
  2589. "name": "data",
  2590. "in": "body",
  2591. "required": true,
  2592. "schema": {
  2593. "$ref": "#/definitions/system.SysOperationRecord"
  2594. }
  2595. }
  2596. ],
  2597. "responses": {
  2598. "200": {
  2599. "description": "{\"success\":true,\"data\":{},\"msg\":\"获取成功\"}",
  2600. "schema": {
  2601. "type": "string"
  2602. }
  2603. }
  2604. }
  2605. }
  2606. },
  2607. "/sysOperationRecord/deleteSysOperationRecord": {
  2608. "delete": {
  2609. "security": [
  2610. {
  2611. "ApiKeyAuth": []
  2612. }
  2613. ],
  2614. "consumes": [
  2615. "application/json"
  2616. ],
  2617. "produces": [
  2618. "application/json"
  2619. ],
  2620. "tags": [
  2621. "SysOperationRecord"
  2622. ],
  2623. "summary": "删除SysOperationRecord",
  2624. "parameters": [
  2625. {
  2626. "description": "SysOperationRecord模型",
  2627. "name": "data",
  2628. "in": "body",
  2629. "required": true,
  2630. "schema": {
  2631. "$ref": "#/definitions/system.SysOperationRecord"
  2632. }
  2633. }
  2634. ],
  2635. "responses": {
  2636. "200": {
  2637. "description": "{\"success\":true,\"data\":{},\"msg\":\"删除成功\"}",
  2638. "schema": {
  2639. "type": "string"
  2640. }
  2641. }
  2642. }
  2643. }
  2644. },
  2645. "/sysOperationRecord/deleteSysOperationRecordByIds": {
  2646. "delete": {
  2647. "security": [
  2648. {
  2649. "ApiKeyAuth": []
  2650. }
  2651. ],
  2652. "consumes": [
  2653. "application/json"
  2654. ],
  2655. "produces": [
  2656. "application/json"
  2657. ],
  2658. "tags": [
  2659. "SysOperationRecord"
  2660. ],
  2661. "summary": "批量删除SysOperationRecord",
  2662. "parameters": [
  2663. {
  2664. "description": "批量删除SysOperationRecord",
  2665. "name": "data",
  2666. "in": "body",
  2667. "required": true,
  2668. "schema": {
  2669. "$ref": "#/definitions/request.IdsReq"
  2670. }
  2671. }
  2672. ],
  2673. "responses": {
  2674. "200": {
  2675. "description": "{\"success\":true,\"data\":{},\"msg\":\"批量删除成功\"}",
  2676. "schema": {
  2677. "type": "string"
  2678. }
  2679. }
  2680. }
  2681. }
  2682. },
  2683. "/sysOperationRecord/findSysOperationRecord": {
  2684. "get": {
  2685. "security": [
  2686. {
  2687. "ApiKeyAuth": []
  2688. }
  2689. ],
  2690. "consumes": [
  2691. "application/json"
  2692. ],
  2693. "produces": [
  2694. "application/json"
  2695. ],
  2696. "tags": [
  2697. "SysOperationRecord"
  2698. ],
  2699. "summary": "用id查询SysOperationRecord",
  2700. "parameters": [
  2701. {
  2702. "description": "Id",
  2703. "name": "data",
  2704. "in": "body",
  2705. "required": true,
  2706. "schema": {
  2707. "$ref": "#/definitions/system.SysOperationRecord"
  2708. }
  2709. }
  2710. ],
  2711. "responses": {
  2712. "200": {
  2713. "description": "{\"success\":true,\"data\":{},\"msg\":\"查询成功\"}",
  2714. "schema": {
  2715. "type": "string"
  2716. }
  2717. }
  2718. }
  2719. }
  2720. },
  2721. "/sysOperationRecord/getSysOperationRecordList": {
  2722. "get": {
  2723. "security": [
  2724. {
  2725. "ApiKeyAuth": []
  2726. }
  2727. ],
  2728. "consumes": [
  2729. "application/json"
  2730. ],
  2731. "produces": [
  2732. "application/json"
  2733. ],
  2734. "tags": [
  2735. "SysOperationRecord"
  2736. ],
  2737. "summary": "分页获取SysOperationRecord列表",
  2738. "parameters": [
  2739. {
  2740. "description": "页码, 每页大小, 搜索条件",
  2741. "name": "data",
  2742. "in": "body",
  2743. "required": true,
  2744. "schema": {
  2745. "$ref": "#/definitions/request.SysOperationRecordSearch"
  2746. }
  2747. }
  2748. ],
  2749. "responses": {
  2750. "200": {
  2751. "description": "{\"success\":true,\"data\":{},\"msg\":\"获取成功\"}",
  2752. "schema": {
  2753. "type": "string"
  2754. }
  2755. }
  2756. }
  2757. }
  2758. },
  2759. "/system/getServerInfo": {
  2760. "post": {
  2761. "security": [
  2762. {
  2763. "ApiKeyAuth": []
  2764. }
  2765. ],
  2766. "produces": [
  2767. "application/json"
  2768. ],
  2769. "tags": [
  2770. "System"
  2771. ],
  2772. "summary": "获取服务器信息",
  2773. "responses": {
  2774. "200": {
  2775. "description": "{\"success\":true,\"data\":{},\"msg\":\"获取成功\"}",
  2776. "schema": {
  2777. "type": "string"
  2778. }
  2779. }
  2780. }
  2781. }
  2782. },
  2783. "/system/getSystemConfig": {
  2784. "post": {
  2785. "security": [
  2786. {
  2787. "ApiKeyAuth": []
  2788. }
  2789. ],
  2790. "produces": [
  2791. "application/json"
  2792. ],
  2793. "tags": [
  2794. "System"
  2795. ],
  2796. "summary": "获取配置文件内容",
  2797. "responses": {
  2798. "200": {
  2799. "description": "{\"success\":true,\"data\":{},\"msg\":\"获取成功\"}",
  2800. "schema": {
  2801. "type": "string"
  2802. }
  2803. }
  2804. }
  2805. }
  2806. },
  2807. "/system/reloadSystem": {
  2808. "post": {
  2809. "security": [
  2810. {
  2811. "ApiKeyAuth": []
  2812. }
  2813. ],
  2814. "produces": [
  2815. "application/json"
  2816. ],
  2817. "tags": [
  2818. "System"
  2819. ],
  2820. "summary": "重启系统",
  2821. "responses": {
  2822. "200": {
  2823. "description": "{\"code\":0,\"data\":{},\"msg\":\"重启系统成功\"}",
  2824. "schema": {
  2825. "type": "string"
  2826. }
  2827. }
  2828. }
  2829. }
  2830. },
  2831. "/system/setSystemConfig": {
  2832. "post": {
  2833. "security": [
  2834. {
  2835. "ApiKeyAuth": []
  2836. }
  2837. ],
  2838. "produces": [
  2839. "application/json"
  2840. ],
  2841. "tags": [
  2842. "System"
  2843. ],
  2844. "summary": "设置配置文件内容",
  2845. "parameters": [
  2846. {
  2847. "description": "设置配置文件内容",
  2848. "name": "data",
  2849. "in": "body",
  2850. "required": true,
  2851. "schema": {
  2852. "$ref": "#/definitions/system.System"
  2853. }
  2854. }
  2855. ],
  2856. "responses": {
  2857. "200": {
  2858. "description": "{\"success\":true,\"data\":{},\"msg\":\"设置成功\"}",
  2859. "schema": {
  2860. "type": "string"
  2861. }
  2862. }
  2863. }
  2864. }
  2865. },
  2866. "/user/changePassword": {
  2867. "post": {
  2868. "security": [
  2869. {
  2870. "ApiKeyAuth": []
  2871. }
  2872. ],
  2873. "produces": [
  2874. "application/json"
  2875. ],
  2876. "tags": [
  2877. "SysUser"
  2878. ],
  2879. "summary": "用户修改密码",
  2880. "parameters": [
  2881. {
  2882. "description": "用户名, 原密码, 新密码",
  2883. "name": "data",
  2884. "in": "body",
  2885. "required": true,
  2886. "schema": {
  2887. "$ref": "#/definitions/request.ChangePasswordStruct"
  2888. }
  2889. }
  2890. ],
  2891. "responses": {
  2892. "200": {
  2893. "description": "{\"success\":true,\"data\":{},\"msg\":\"修改成功\"}",
  2894. "schema": {
  2895. "type": "string"
  2896. }
  2897. }
  2898. }
  2899. }
  2900. },
  2901. "/user/deleteUser": {
  2902. "delete": {
  2903. "security": [
  2904. {
  2905. "ApiKeyAuth": []
  2906. }
  2907. ],
  2908. "consumes": [
  2909. "application/json"
  2910. ],
  2911. "produces": [
  2912. "application/json"
  2913. ],
  2914. "tags": [
  2915. "SysUser"
  2916. ],
  2917. "summary": "删除用户",
  2918. "parameters": [
  2919. {
  2920. "description": "用户ID",
  2921. "name": "data",
  2922. "in": "body",
  2923. "required": true,
  2924. "schema": {
  2925. "$ref": "#/definitions/request.GetById"
  2926. }
  2927. }
  2928. ],
  2929. "responses": {
  2930. "200": {
  2931. "description": "{\"success\":true,\"data\":{},\"msg\":\"删除成功\"}",
  2932. "schema": {
  2933. "type": "string"
  2934. }
  2935. }
  2936. }
  2937. }
  2938. },
  2939. "/user/getUserInfo": {
  2940. "get": {
  2941. "security": [
  2942. {
  2943. "ApiKeyAuth": []
  2944. }
  2945. ],
  2946. "consumes": [
  2947. "application/json"
  2948. ],
  2949. "produces": [
  2950. "application/json"
  2951. ],
  2952. "tags": [
  2953. "SysUser"
  2954. ],
  2955. "summary": "获取用户信息",
  2956. "responses": {
  2957. "200": {
  2958. "description": "{\"success\":true,\"data\":{},\"msg\":\"获取成功\"}",
  2959. "schema": {
  2960. "type": "string"
  2961. }
  2962. }
  2963. }
  2964. }
  2965. },
  2966. "/user/getUserList": {
  2967. "post": {
  2968. "security": [
  2969. {
  2970. "ApiKeyAuth": []
  2971. }
  2972. ],
  2973. "consumes": [
  2974. "application/json"
  2975. ],
  2976. "produces": [
  2977. "application/json"
  2978. ],
  2979. "tags": [
  2980. "SysUser"
  2981. ],
  2982. "summary": "分页获取用户列表",
  2983. "parameters": [
  2984. {
  2985. "description": "页码, 每页大小",
  2986. "name": "data",
  2987. "in": "body",
  2988. "required": true,
  2989. "schema": {
  2990. "$ref": "#/definitions/request.PageInfo"
  2991. }
  2992. }
  2993. ],
  2994. "responses": {
  2995. "200": {
  2996. "description": "{\"success\":true,\"data\":{},\"msg\":\"获取成功\"}",
  2997. "schema": {
  2998. "type": "string"
  2999. }
  3000. }
  3001. }
  3002. }
  3003. },
  3004. "/user/register": {
  3005. "post": {
  3006. "produces": [
  3007. "application/json"
  3008. ],
  3009. "tags": [
  3010. "SysUser"
  3011. ],
  3012. "summary": "用户注册账号",
  3013. "parameters": [
  3014. {
  3015. "description": "用户名, 昵称, 密码, 角色ID",
  3016. "name": "data",
  3017. "in": "body",
  3018. "required": true,
  3019. "schema": {
  3020. "$ref": "#/definitions/request.Register"
  3021. }
  3022. }
  3023. ],
  3024. "responses": {
  3025. "200": {
  3026. "description": "{\"success\":true,\"data\":{},\"msg\":\"注册成功\"}",
  3027. "schema": {
  3028. "type": "string"
  3029. }
  3030. }
  3031. }
  3032. }
  3033. },
  3034. "/user/setUserAuthorities": {
  3035. "post": {
  3036. "security": [
  3037. {
  3038. "ApiKeyAuth": []
  3039. }
  3040. ],
  3041. "consumes": [
  3042. "application/json"
  3043. ],
  3044. "produces": [
  3045. "application/json"
  3046. ],
  3047. "tags": [
  3048. "SysUser"
  3049. ],
  3050. "summary": "设置用户权限",
  3051. "parameters": [
  3052. {
  3053. "description": "用户UUID, 角色ID",
  3054. "name": "data",
  3055. "in": "body",
  3056. "required": true,
  3057. "schema": {
  3058. "$ref": "#/definitions/request.SetUserAuthorities"
  3059. }
  3060. }
  3061. ],
  3062. "responses": {
  3063. "200": {
  3064. "description": "{\"success\":true,\"data\":{},\"msg\":\"修改成功\"}",
  3065. "schema": {
  3066. "type": "string"
  3067. }
  3068. }
  3069. }
  3070. }
  3071. },
  3072. "/user/setUserAuthority": {
  3073. "post": {
  3074. "security": [
  3075. {
  3076. "ApiKeyAuth": []
  3077. }
  3078. ],
  3079. "consumes": [
  3080. "application/json"
  3081. ],
  3082. "produces": [
  3083. "application/json"
  3084. ],
  3085. "tags": [
  3086. "SysUser"
  3087. ],
  3088. "summary": "更改用户权限",
  3089. "parameters": [
  3090. {
  3091. "description": "用户UUID, 角色ID",
  3092. "name": "data",
  3093. "in": "body",
  3094. "required": true,
  3095. "schema": {
  3096. "$ref": "#/definitions/request.SetUserAuth"
  3097. }
  3098. }
  3099. ],
  3100. "responses": {
  3101. "200": {
  3102. "description": "{\"success\":true,\"data\":{},\"msg\":\"修改成功\"}",
  3103. "schema": {
  3104. "type": "string"
  3105. }
  3106. }
  3107. }
  3108. }
  3109. },
  3110. "/user/setUserInfo": {
  3111. "put": {
  3112. "security": [
  3113. {
  3114. "ApiKeyAuth": []
  3115. }
  3116. ],
  3117. "consumes": [
  3118. "application/json"
  3119. ],
  3120. "produces": [
  3121. "application/json"
  3122. ],
  3123. "tags": [
  3124. "SysUser"
  3125. ],
  3126. "summary": "设置用户信息",
  3127. "parameters": [
  3128. {
  3129. "description": "ID, 用户名, 昵称, 头像链接",
  3130. "name": "data",
  3131. "in": "body",
  3132. "required": true,
  3133. "schema": {
  3134. "$ref": "#/definitions/system.SysUser"
  3135. }
  3136. }
  3137. ],
  3138. "responses": {
  3139. "200": {
  3140. "description": "{\"success\":true,\"data\":{},\"msg\":\"设置成功\"}",
  3141. "schema": {
  3142. "type": "string"
  3143. }
  3144. }
  3145. }
  3146. }
  3147. }
  3148. },
  3149. "definitions": {
  3150. "autocode.AutoCodeExample": {
  3151. "type": "object",
  3152. "properties": {
  3153. "autoCodeExampleField": {
  3154. "description": "展示值",
  3155. "type": "string"
  3156. },
  3157. "createdAt": {
  3158. "description": "创建时间",
  3159. "type": "string"
  3160. },
  3161. "id": {
  3162. "description": "主键ID",
  3163. "type": "integer"
  3164. },
  3165. "updatedAt": {
  3166. "description": "更新时间",
  3167. "type": "string"
  3168. }
  3169. }
  3170. },
  3171. "config.AliyunOSS": {
  3172. "type": "object",
  3173. "properties": {
  3174. "accessKeyId": {
  3175. "type": "string"
  3176. },
  3177. "accessKeySecret": {
  3178. "type": "string"
  3179. },
  3180. "basePath": {
  3181. "type": "string"
  3182. },
  3183. "bucketName": {
  3184. "type": "string"
  3185. },
  3186. "bucketUrl": {
  3187. "type": "string"
  3188. },
  3189. "endpoint": {
  3190. "type": "string"
  3191. }
  3192. }
  3193. },
  3194. "config.Autocode": {
  3195. "type": "object",
  3196. "properties": {
  3197. "root": {
  3198. "type": "string"
  3199. },
  3200. "server": {
  3201. "type": "string"
  3202. },
  3203. "serverApi": {
  3204. "type": "string"
  3205. },
  3206. "serverInitialize": {
  3207. "type": "string"
  3208. },
  3209. "serverModel": {
  3210. "type": "string"
  3211. },
  3212. "serverRequest": {
  3213. "type": "string"
  3214. },
  3215. "serverRouter": {
  3216. "type": "string"
  3217. },
  3218. "serverService": {
  3219. "type": "string"
  3220. },
  3221. "transferRestart": {
  3222. "type": "boolean"
  3223. },
  3224. "web": {
  3225. "type": "string"
  3226. },
  3227. "webApi": {
  3228. "type": "string"
  3229. },
  3230. "webFlow": {
  3231. "type": "string"
  3232. },
  3233. "webForm": {
  3234. "type": "string"
  3235. },
  3236. "webTable": {
  3237. "type": "string"
  3238. }
  3239. }
  3240. },
  3241. "config.Captcha": {
  3242. "type": "object",
  3243. "properties": {
  3244. "imgHeight": {
  3245. "description": "验证码高度",
  3246. "type": "integer"
  3247. },
  3248. "imgWidth": {
  3249. "description": "验证码宽度",
  3250. "type": "integer"
  3251. },
  3252. "keyLong": {
  3253. "description": "验证码长度",
  3254. "type": "integer"
  3255. }
  3256. }
  3257. },
  3258. "config.Casbin": {
  3259. "type": "object",
  3260. "properties": {
  3261. "modelPath": {
  3262. "description": "存放casbin模型的相对路径",
  3263. "type": "string"
  3264. }
  3265. }
  3266. },
  3267. "config.Detail": {
  3268. "type": "object",
  3269. "properties": {
  3270. "compareField": {
  3271. "description": "需要比较时间的字段",
  3272. "type": "string"
  3273. },
  3274. "interval": {
  3275. "description": "时间间隔",
  3276. "type": "string"
  3277. },
  3278. "tableName": {
  3279. "description": "需要清理的表名",
  3280. "type": "string"
  3281. }
  3282. }
  3283. },
  3284. "config.Email": {
  3285. "type": "object",
  3286. "properties": {
  3287. "from": {
  3288. "description": "收件人",
  3289. "type": "string"
  3290. },
  3291. "host": {
  3292. "description": "服务器地址",
  3293. "type": "string"
  3294. },
  3295. "isSSL": {
  3296. "description": "是否SSL",
  3297. "type": "boolean"
  3298. },
  3299. "nickname": {
  3300. "description": "昵称",
  3301. "type": "string"
  3302. },
  3303. "port": {
  3304. "description": "端口",
  3305. "type": "integer"
  3306. },
  3307. "secret": {
  3308. "description": "密钥",
  3309. "type": "string"
  3310. },
  3311. "to": {
  3312. "description": "收件人:多个以英文逗号分隔",
  3313. "type": "string"
  3314. }
  3315. }
  3316. },
  3317. "config.Excel": {
  3318. "type": "object",
  3319. "properties": {
  3320. "dir": {
  3321. "type": "string"
  3322. }
  3323. }
  3324. },
  3325. "config.JWT": {
  3326. "type": "object",
  3327. "properties": {
  3328. "bufferTime": {
  3329. "description": "缓冲时间",
  3330. "type": "integer"
  3331. },
  3332. "expiresTime": {
  3333. "description": "过期时间",
  3334. "type": "integer"
  3335. },
  3336. "signingKey": {
  3337. "description": "jwt签名",
  3338. "type": "string"
  3339. }
  3340. }
  3341. },
  3342. "config.Local": {
  3343. "type": "object",
  3344. "properties": {
  3345. "path": {
  3346. "description": "本地文件路径",
  3347. "type": "string"
  3348. }
  3349. }
  3350. },
  3351. "config.Mysql": {
  3352. "type": "object",
  3353. "properties": {
  3354. "config": {
  3355. "description": "高级配置",
  3356. "type": "string"
  3357. },
  3358. "dbname": {
  3359. "description": "数据库名",
  3360. "type": "string"
  3361. },
  3362. "logMode": {
  3363. "description": "是否开启Gorm全局日志",
  3364. "type": "string"
  3365. },
  3366. "logZap": {
  3367. "description": "是否通过zap写入日志文件",
  3368. "type": "boolean"
  3369. },
  3370. "maxIdleConns": {
  3371. "description": "空闲中的最大连接数",
  3372. "type": "integer"
  3373. },
  3374. "maxOpenConns": {
  3375. "description": "打开到数据库的最大连接数",
  3376. "type": "integer"
  3377. },
  3378. "password": {
  3379. "description": "数据库密码",
  3380. "type": "string"
  3381. },
  3382. "path": {
  3383. "description": "服务器地址:端口",
  3384. "type": "string"
  3385. },
  3386. "username": {
  3387. "description": "数据库用户名",
  3388. "type": "string"
  3389. }
  3390. }
  3391. },
  3392. "config.Qiniu": {
  3393. "type": "object",
  3394. "properties": {
  3395. "accessKey": {
  3396. "description": "秘钥AK",
  3397. "type": "string"
  3398. },
  3399. "bucket": {
  3400. "description": "空间名称",
  3401. "type": "string"
  3402. },
  3403. "imgPath": {
  3404. "description": "CDN加速域名",
  3405. "type": "string"
  3406. },
  3407. "secretKey": {
  3408. "description": "秘钥SK",
  3409. "type": "string"
  3410. },
  3411. "useCdnDomains": {
  3412. "description": "上传是否使用CDN上传加速",
  3413. "type": "boolean"
  3414. },
  3415. "useHttps": {
  3416. "description": "是否使用https",
  3417. "type": "boolean"
  3418. },
  3419. "zone": {
  3420. "description": "存储区域",
  3421. "type": "string"
  3422. }
  3423. }
  3424. },
  3425. "config.Redis": {
  3426. "type": "object",
  3427. "properties": {
  3428. "addr": {
  3429. "description": "服务器地址:端口",
  3430. "type": "string"
  3431. },
  3432. "db": {
  3433. "description": "redis的哪个数据库",
  3434. "type": "integer"
  3435. },
  3436. "password": {
  3437. "description": "密码",
  3438. "type": "string"
  3439. }
  3440. }
  3441. },
  3442. "config.Server": {
  3443. "type": "object",
  3444. "properties": {
  3445. "aliyunOSS": {
  3446. "$ref": "#/definitions/config.AliyunOSS"
  3447. },
  3448. "autoCode": {
  3449. "description": "auto",
  3450. "$ref": "#/definitions/config.Autocode"
  3451. },
  3452. "captcha": {
  3453. "$ref": "#/definitions/config.Captcha"
  3454. },
  3455. "casbin": {
  3456. "$ref": "#/definitions/config.Casbin"
  3457. },
  3458. "email": {
  3459. "$ref": "#/definitions/config.Email"
  3460. },
  3461. "excel": {
  3462. "$ref": "#/definitions/config.Excel"
  3463. },
  3464. "jwt": {
  3465. "$ref": "#/definitions/config.JWT"
  3466. },
  3467. "local": {
  3468. "description": "oss",
  3469. "$ref": "#/definitions/config.Local"
  3470. },
  3471. "mysql": {
  3472. "description": "gorm",
  3473. "$ref": "#/definitions/config.Mysql"
  3474. },
  3475. "qiniu": {
  3476. "$ref": "#/definitions/config.Qiniu"
  3477. },
  3478. "redis": {
  3479. "$ref": "#/definitions/config.Redis"
  3480. },
  3481. "system": {
  3482. "$ref": "#/definitions/config.System"
  3483. },
  3484. "tencentCOS": {
  3485. "$ref": "#/definitions/config.TencentCOS"
  3486. },
  3487. "timer": {
  3488. "$ref": "#/definitions/config.Timer"
  3489. },
  3490. "zap": {
  3491. "$ref": "#/definitions/config.Zap"
  3492. }
  3493. }
  3494. },
  3495. "config.System": {
  3496. "type": "object",
  3497. "properties": {
  3498. "addr": {
  3499. "description": "端口值",
  3500. "type": "integer"
  3501. },
  3502. "dbType": {
  3503. "description": "数据库类型:mysql(默认)|sqlite|sqlserver|postgresql",
  3504. "type": "string"
  3505. },
  3506. "env": {
  3507. "description": "环境值",
  3508. "type": "string"
  3509. },
  3510. "ossType": {
  3511. "description": "Oss类型",
  3512. "type": "string"
  3513. },
  3514. "useMultipoint": {
  3515. "description": "多点登录拦截",
  3516. "type": "boolean"
  3517. }
  3518. }
  3519. },
  3520. "config.TencentCOS": {
  3521. "type": "object",
  3522. "properties": {
  3523. "baseURL": {
  3524. "type": "string"
  3525. },
  3526. "bucket": {
  3527. "type": "string"
  3528. },
  3529. "pathPrefix": {
  3530. "type": "string"
  3531. },
  3532. "region": {
  3533. "type": "string"
  3534. },
  3535. "secretID": {
  3536. "type": "string"
  3537. },
  3538. "secretKey": {
  3539. "type": "string"
  3540. }
  3541. }
  3542. },
  3543. "config.Timer": {
  3544. "type": "object",
  3545. "properties": {
  3546. "detail": {
  3547. "type": "array",
  3548. "items": {
  3549. "$ref": "#/definitions/config.Detail"
  3550. }
  3551. },
  3552. "spec": {
  3553. "description": "CRON表达式",
  3554. "type": "string"
  3555. },
  3556. "start": {
  3557. "description": "是否启用",
  3558. "type": "boolean"
  3559. }
  3560. }
  3561. },
  3562. "config.Zap": {
  3563. "type": "object",
  3564. "properties": {
  3565. "director": {
  3566. "description": "日志文件夹",
  3567. "type": "string"
  3568. },
  3569. "encodeLevel": {
  3570. "description": "编码级",
  3571. "type": "string"
  3572. },
  3573. "format": {
  3574. "description": "输出",
  3575. "type": "string"
  3576. },
  3577. "level": {
  3578. "description": "级别",
  3579. "type": "string"
  3580. },
  3581. "linkName": {
  3582. "description": "软链接名称",
  3583. "type": "string"
  3584. },
  3585. "logInConsole": {
  3586. "description": "输出控制台",
  3587. "type": "boolean"
  3588. },
  3589. "prefix": {
  3590. "description": "日志前缀",
  3591. "type": "string"
  3592. },
  3593. "showLine": {
  3594. "description": "显示行",
  3595. "type": "boolean"
  3596. },
  3597. "stacktraceKey": {
  3598. "description": "栈名",
  3599. "type": "string"
  3600. }
  3601. }
  3602. },
  3603. "example.ExaCustomer": {
  3604. "type": "object",
  3605. "properties": {
  3606. "createdAt": {
  3607. "description": "创建时间",
  3608. "type": "string"
  3609. },
  3610. "customerName": {
  3611. "description": "客户名",
  3612. "type": "string"
  3613. },
  3614. "customerPhoneData": {
  3615. "description": "客户手机号",
  3616. "type": "string"
  3617. },
  3618. "id": {
  3619. "description": "主键ID",
  3620. "type": "integer"
  3621. },
  3622. "sysUser": {
  3623. "description": "管理详情",
  3624. "$ref": "#/definitions/system.SysUser"
  3625. },
  3626. "sysUserAuthorityID": {
  3627. "description": "管理角色ID",
  3628. "type": "string"
  3629. },
  3630. "sysUserId": {
  3631. "description": "管理ID",
  3632. "type": "integer"
  3633. },
  3634. "updatedAt": {
  3635. "description": "更新时间",
  3636. "type": "string"
  3637. }
  3638. }
  3639. },
  3640. "example.ExaFileUploadAndDownload": {
  3641. "type": "object",
  3642. "properties": {
  3643. "createdAt": {
  3644. "description": "创建时间",
  3645. "type": "string"
  3646. },
  3647. "id": {
  3648. "description": "主键ID",
  3649. "type": "integer"
  3650. },
  3651. "key": {
  3652. "description": "编号",
  3653. "type": "string"
  3654. },
  3655. "name": {
  3656. "description": "文件名",
  3657. "type": "string"
  3658. },
  3659. "tag": {
  3660. "description": "文件标签",
  3661. "type": "string"
  3662. },
  3663. "updatedAt": {
  3664. "description": "更新时间",
  3665. "type": "string"
  3666. },
  3667. "url": {
  3668. "description": "文件地址",
  3669. "type": "string"
  3670. }
  3671. }
  3672. },
  3673. "example.ExcelInfo": {
  3674. "type": "object",
  3675. "properties": {
  3676. "fileName": {
  3677. "description": "文件名",
  3678. "type": "string"
  3679. },
  3680. "infoList": {
  3681. "type": "array",
  3682. "items": {
  3683. "$ref": "#/definitions/system.SysBaseMenu"
  3684. }
  3685. }
  3686. }
  3687. },
  3688. "request.AddMenuAuthorityInfo": {
  3689. "type": "object",
  3690. "properties": {
  3691. "authorityId": {
  3692. "description": "角色ID",
  3693. "type": "string"
  3694. },
  3695. "menus": {
  3696. "type": "array",
  3697. "items": {
  3698. "$ref": "#/definitions/system.SysBaseMenu"
  3699. }
  3700. }
  3701. }
  3702. },
  3703. "request.AutoCodeExampleSearch": {
  3704. "type": "object",
  3705. "properties": {
  3706. "autoCodeExampleField": {
  3707. "description": "展示值",
  3708. "type": "string"
  3709. },
  3710. "createdAt": {
  3711. "description": "创建时间",
  3712. "type": "string"
  3713. },
  3714. "id": {
  3715. "description": "主键ID",
  3716. "type": "integer"
  3717. },
  3718. "page": {
  3719. "description": "页码",
  3720. "type": "integer"
  3721. },
  3722. "pageSize": {
  3723. "description": "每页大小",
  3724. "type": "integer"
  3725. },
  3726. "updatedAt": {
  3727. "description": "更新时间",
  3728. "type": "string"
  3729. }
  3730. }
  3731. },
  3732. "request.AutoHistoryByID": {
  3733. "type": "object",
  3734. "properties": {
  3735. "id": {
  3736. "type": "integer"
  3737. }
  3738. }
  3739. },
  3740. "request.CasbinInReceive": {
  3741. "type": "object",
  3742. "properties": {
  3743. "authorityId": {
  3744. "description": "权限id",
  3745. "type": "string"
  3746. },
  3747. "casbinInfos": {
  3748. "type": "array",
  3749. "items": {
  3750. "$ref": "#/definitions/request.CasbinInfo"
  3751. }
  3752. }
  3753. }
  3754. },
  3755. "request.CasbinInfo": {
  3756. "type": "object",
  3757. "properties": {
  3758. "method": {
  3759. "description": "方法",
  3760. "type": "string"
  3761. },
  3762. "path": {
  3763. "description": "路径",
  3764. "type": "string"
  3765. }
  3766. }
  3767. },
  3768. "request.ChangePasswordStruct": {
  3769. "type": "object",
  3770. "properties": {
  3771. "newPassword": {
  3772. "description": "新密码",
  3773. "type": "string"
  3774. },
  3775. "password": {
  3776. "description": "密码",
  3777. "type": "string"
  3778. },
  3779. "username": {
  3780. "description": "用户名",
  3781. "type": "string"
  3782. }
  3783. }
  3784. },
  3785. "request.Empty": {
  3786. "type": "object"
  3787. },
  3788. "request.GetAuthorityId": {
  3789. "type": "object",
  3790. "properties": {
  3791. "authorityId": {
  3792. "description": "角色ID",
  3793. "type": "string"
  3794. }
  3795. }
  3796. },
  3797. "request.GetById": {
  3798. "type": "object",
  3799. "properties": {
  3800. "id": {
  3801. "description": "主键ID",
  3802. "type": "number"
  3803. }
  3804. }
  3805. },
  3806. "request.IdsReq": {
  3807. "type": "object",
  3808. "properties": {
  3809. "ids": {
  3810. "type": "array",
  3811. "items": {
  3812. "type": "integer"
  3813. }
  3814. }
  3815. }
  3816. },
  3817. "request.InitDB": {
  3818. "type": "object",
  3819. "required": [
  3820. "dbName",
  3821. "userName"
  3822. ],
  3823. "properties": {
  3824. "dbName": {
  3825. "description": "数据库名",
  3826. "type": "string"
  3827. },
  3828. "host": {
  3829. "description": "服务器地址",
  3830. "type": "string"
  3831. },
  3832. "password": {
  3833. "description": "数据库密码",
  3834. "type": "string"
  3835. },
  3836. "port": {
  3837. "description": "数据库连接端口",
  3838. "type": "string"
  3839. },
  3840. "userName": {
  3841. "description": "数据库用户名",
  3842. "type": "string"
  3843. }
  3844. }
  3845. },
  3846. "request.Login": {
  3847. "type": "object",
  3848. "properties": {
  3849. "captcha": {
  3850. "description": "验证码",
  3851. "type": "string"
  3852. },
  3853. "captchaId": {
  3854. "description": "验证码ID",
  3855. "type": "string"
  3856. },
  3857. "password": {
  3858. "description": "密码",
  3859. "type": "string"
  3860. },
  3861. "username": {
  3862. "description": "用户名",
  3863. "type": "string"
  3864. }
  3865. }
  3866. },
  3867. "request.PageInfo": {
  3868. "type": "object",
  3869. "properties": {
  3870. "page": {
  3871. "description": "页码",
  3872. "type": "integer"
  3873. },
  3874. "pageSize": {
  3875. "description": "每页大小",
  3876. "type": "integer"
  3877. }
  3878. }
  3879. },
  3880. "request.Register": {
  3881. "type": "object",
  3882. "properties": {
  3883. "authorityId": {
  3884. "type": "string"
  3885. },
  3886. "authorityIds": {
  3887. "type": "array",
  3888. "items": {
  3889. "type": "string"
  3890. }
  3891. },
  3892. "headerImg": {
  3893. "type": "string"
  3894. },
  3895. "nickName": {
  3896. "type": "string"
  3897. },
  3898. "passWord": {
  3899. "type": "string"
  3900. },
  3901. "userName": {
  3902. "type": "string"
  3903. }
  3904. }
  3905. },
  3906. "request.SearchApiParams": {
  3907. "type": "object",
  3908. "properties": {
  3909. "apiGroup": {
  3910. "description": "api组",
  3911. "type": "string"
  3912. },
  3913. "createdAt": {
  3914. "description": "创建时间",
  3915. "type": "string"
  3916. },
  3917. "desc": {
  3918. "description": "排序方式:升序false(默认)|降序true",
  3919. "type": "boolean"
  3920. },
  3921. "description": {
  3922. "description": "api中文描述",
  3923. "type": "string"
  3924. },
  3925. "id": {
  3926. "description": "主键ID",
  3927. "type": "integer"
  3928. },
  3929. "method": {
  3930. "description": "方法:创建POST(默认)|查看GET|更新PUT|删除DELETE",
  3931. "type": "string"
  3932. },
  3933. "orderKey": {
  3934. "description": "排序",
  3935. "type": "string"
  3936. },
  3937. "page": {
  3938. "description": "页码",
  3939. "type": "integer"
  3940. },
  3941. "pageSize": {
  3942. "description": "每页大小",
  3943. "type": "integer"
  3944. },
  3945. "path": {
  3946. "description": "api路径",
  3947. "type": "string"
  3948. },
  3949. "updatedAt": {
  3950. "description": "更新时间",
  3951. "type": "string"
  3952. }
  3953. }
  3954. },
  3955. "request.SetUserAuth": {
  3956. "type": "object",
  3957. "properties": {
  3958. "authorityId": {
  3959. "description": "角色ID",
  3960. "type": "string"
  3961. }
  3962. }
  3963. },
  3964. "request.SetUserAuthorities": {
  3965. "type": "object",
  3966. "properties": {
  3967. "authorityIds": {
  3968. "description": "角色ID",
  3969. "type": "array",
  3970. "items": {
  3971. "type": "string"
  3972. }
  3973. },
  3974. "id": {
  3975. "type": "integer"
  3976. }
  3977. }
  3978. },
  3979. "request.SysAutoHistory": {
  3980. "type": "object",
  3981. "properties": {
  3982. "page": {
  3983. "description": "页码",
  3984. "type": "integer"
  3985. },
  3986. "pageSize": {
  3987. "description": "每页大小",
  3988. "type": "integer"
  3989. }
  3990. }
  3991. },
  3992. "request.SysDictionaryDetailSearch": {
  3993. "type": "object",
  3994. "properties": {
  3995. "createdAt": {
  3996. "description": "创建时间",
  3997. "type": "string"
  3998. },
  3999. "id": {
  4000. "description": "主键ID",
  4001. "type": "integer"
  4002. },
  4003. "label": {
  4004. "description": "展示值",
  4005. "type": "string"
  4006. },
  4007. "page": {
  4008. "description": "页码",
  4009. "type": "integer"
  4010. },
  4011. "pageSize": {
  4012. "description": "每页大小",
  4013. "type": "integer"
  4014. },
  4015. "sort": {
  4016. "description": "排序标记",
  4017. "type": "integer"
  4018. },
  4019. "status": {
  4020. "description": "启用状态",
  4021. "type": "boolean"
  4022. },
  4023. "sysDictionaryID": {
  4024. "description": "关联标记",
  4025. "type": "integer"
  4026. },
  4027. "updatedAt": {
  4028. "description": "更新时间",
  4029. "type": "string"
  4030. },
  4031. "value": {
  4032. "description": "字典值",
  4033. "type": "integer"
  4034. }
  4035. }
  4036. },
  4037. "request.SysDictionarySearch": {
  4038. "type": "object",
  4039. "properties": {
  4040. "createdAt": {
  4041. "description": "创建时间",
  4042. "type": "string"
  4043. },
  4044. "desc": {
  4045. "description": "描述",
  4046. "type": "string"
  4047. },
  4048. "id": {
  4049. "description": "主键ID",
  4050. "type": "integer"
  4051. },
  4052. "name": {
  4053. "description": "字典名(中)",
  4054. "type": "string"
  4055. },
  4056. "page": {
  4057. "description": "页码",
  4058. "type": "integer"
  4059. },
  4060. "pageSize": {
  4061. "description": "每页大小",
  4062. "type": "integer"
  4063. },
  4064. "status": {
  4065. "description": "状态",
  4066. "type": "boolean"
  4067. },
  4068. "sysDictionaryDetails": {
  4069. "type": "array",
  4070. "items": {
  4071. "$ref": "#/definitions/system.SysDictionaryDetail"
  4072. }
  4073. },
  4074. "type": {
  4075. "description": "字典名(英)",
  4076. "type": "string"
  4077. },
  4078. "updatedAt": {
  4079. "description": "更新时间",
  4080. "type": "string"
  4081. }
  4082. }
  4083. },
  4084. "request.SysOperationRecordSearch": {
  4085. "type": "object",
  4086. "properties": {
  4087. "agent": {
  4088. "description": "代理",
  4089. "type": "string"
  4090. },
  4091. "body": {
  4092. "description": "请求Body",
  4093. "type": "string"
  4094. },
  4095. "createdAt": {
  4096. "description": "创建时间",
  4097. "type": "string"
  4098. },
  4099. "error_message": {
  4100. "description": "错误信息",
  4101. "type": "string"
  4102. },
  4103. "id": {
  4104. "description": "主键ID",
  4105. "type": "integer"
  4106. },
  4107. "ip": {
  4108. "description": "请求ip",
  4109. "type": "string"
  4110. },
  4111. "latency": {
  4112. "description": "延迟",
  4113. "type": "string"
  4114. },
  4115. "method": {
  4116. "description": "请求方法",
  4117. "type": "string"
  4118. },
  4119. "page": {
  4120. "description": "页码",
  4121. "type": "integer"
  4122. },
  4123. "pageSize": {
  4124. "description": "每页大小",
  4125. "type": "integer"
  4126. },
  4127. "path": {
  4128. "description": "请求路径",
  4129. "type": "string"
  4130. },
  4131. "resp": {
  4132. "description": "响应Body",
  4133. "type": "string"
  4134. },
  4135. "status": {
  4136. "description": "请求状态",
  4137. "type": "integer"
  4138. },
  4139. "updatedAt": {
  4140. "description": "更新时间",
  4141. "type": "string"
  4142. },
  4143. "user": {
  4144. "$ref": "#/definitions/system.SysUser"
  4145. },
  4146. "user_id": {
  4147. "description": "用户id",
  4148. "type": "integer"
  4149. }
  4150. }
  4151. },
  4152. "response.SysAuthorityCopyResponse": {
  4153. "type": "object",
  4154. "properties": {
  4155. "authority": {
  4156. "$ref": "#/definitions/system.SysAuthority"
  4157. },
  4158. "oldAuthorityId": {
  4159. "description": "旧角色ID",
  4160. "type": "string"
  4161. }
  4162. }
  4163. },
  4164. "system.AutoCodeStruct": {
  4165. "type": "object",
  4166. "properties": {
  4167. "abbreviation": {
  4168. "description": "Struct简称",
  4169. "type": "string"
  4170. },
  4171. "autoCreateApiToSql": {
  4172. "description": "是否自动创建api",
  4173. "type": "boolean"
  4174. },
  4175. "autoMoveFile": {
  4176. "description": "是否自动移动文件",
  4177. "type": "boolean"
  4178. },
  4179. "description": {
  4180. "description": "Struct中文名称",
  4181. "type": "string"
  4182. },
  4183. "fields": {
  4184. "type": "array",
  4185. "items": {
  4186. "$ref": "#/definitions/system.Field"
  4187. }
  4188. },
  4189. "humpPackageName": {
  4190. "description": "go文件名称",
  4191. "type": "string"
  4192. },
  4193. "packageName": {
  4194. "description": "文件名称",
  4195. "type": "string"
  4196. },
  4197. "structName": {
  4198. "description": "Struct名称",
  4199. "type": "string"
  4200. },
  4201. "tableName": {
  4202. "description": "表名",
  4203. "type": "string"
  4204. }
  4205. }
  4206. },
  4207. "system.Field": {
  4208. "type": "object",
  4209. "properties": {
  4210. "columnName": {
  4211. "description": "数据库字段",
  4212. "type": "string"
  4213. },
  4214. "comment": {
  4215. "description": "数据库字段描述",
  4216. "type": "string"
  4217. },
  4218. "dataType": {
  4219. "description": "数据库字段类型",
  4220. "type": "string"
  4221. },
  4222. "dataTypeLong": {
  4223. "description": "数据库字段长度",
  4224. "type": "string"
  4225. },
  4226. "dictType": {
  4227. "description": "字典",
  4228. "type": "string"
  4229. },
  4230. "fieldDesc": {
  4231. "description": "中文名",
  4232. "type": "string"
  4233. },
  4234. "fieldJson": {
  4235. "description": "FieldJson",
  4236. "type": "string"
  4237. },
  4238. "fieldName": {
  4239. "description": "Field名",
  4240. "type": "string"
  4241. },
  4242. "fieldSearchType": {
  4243. "description": "搜索条件",
  4244. "type": "string"
  4245. },
  4246. "fieldType": {
  4247. "description": "Field数据类型",
  4248. "type": "string"
  4249. }
  4250. }
  4251. },
  4252. "system.SysApi": {
  4253. "type": "object",
  4254. "properties": {
  4255. "apiGroup": {
  4256. "description": "api组",
  4257. "type": "string"
  4258. },
  4259. "createdAt": {
  4260. "description": "创建时间",
  4261. "type": "string"
  4262. },
  4263. "description": {
  4264. "description": "api中文描述",
  4265. "type": "string"
  4266. },
  4267. "id": {
  4268. "description": "主键ID",
  4269. "type": "integer"
  4270. },
  4271. "method": {
  4272. "description": "方法:创建POST(默认)|查看GET|更新PUT|删除DELETE",
  4273. "type": "string"
  4274. },
  4275. "path": {
  4276. "description": "api路径",
  4277. "type": "string"
  4278. },
  4279. "updatedAt": {
  4280. "description": "更新时间",
  4281. "type": "string"
  4282. }
  4283. }
  4284. },
  4285. "system.SysAuthority": {
  4286. "type": "object",
  4287. "properties": {
  4288. "authorityId": {
  4289. "description": "角色ID",
  4290. "type": "string"
  4291. },
  4292. "authorityName": {
  4293. "description": "角色名",
  4294. "type": "string"
  4295. },
  4296. "children": {
  4297. "type": "array",
  4298. "items": {
  4299. "$ref": "#/definitions/system.SysAuthority"
  4300. }
  4301. },
  4302. "createdAt": {
  4303. "description": "创建时间",
  4304. "type": "string"
  4305. },
  4306. "dataAuthorityId": {
  4307. "type": "array",
  4308. "items": {
  4309. "$ref": "#/definitions/system.SysAuthority"
  4310. }
  4311. },
  4312. "defaultRouter": {
  4313. "description": "默认菜单(默认dashboard)",
  4314. "type": "string"
  4315. },
  4316. "deletedAt": {
  4317. "type": "string"
  4318. },
  4319. "menus": {
  4320. "type": "array",
  4321. "items": {
  4322. "$ref": "#/definitions/system.SysBaseMenu"
  4323. }
  4324. },
  4325. "parentId": {
  4326. "description": "父角色ID",
  4327. "type": "string"
  4328. },
  4329. "updatedAt": {
  4330. "description": "更新时间",
  4331. "type": "string"
  4332. }
  4333. }
  4334. },
  4335. "system.SysBaseMenu": {
  4336. "type": "object",
  4337. "properties": {
  4338. "authoritys": {
  4339. "type": "array",
  4340. "items": {
  4341. "$ref": "#/definitions/system.SysAuthority"
  4342. }
  4343. },
  4344. "children": {
  4345. "type": "array",
  4346. "items": {
  4347. "$ref": "#/definitions/system.SysBaseMenu"
  4348. }
  4349. },
  4350. "closeTab": {
  4351. "description": "自动关闭tab",
  4352. "type": "boolean"
  4353. },
  4354. "component": {
  4355. "description": "对应前端文件路径",
  4356. "type": "string"
  4357. },
  4358. "createdAt": {
  4359. "description": "创建时间",
  4360. "type": "string"
  4361. },
  4362. "defaultMenu": {
  4363. "description": "是否是基础路由(开发中)",
  4364. "type": "boolean"
  4365. },
  4366. "hidden": {
  4367. "description": "是否在列表隐藏",
  4368. "type": "boolean"
  4369. },
  4370. "icon": {
  4371. "description": "菜单图标",
  4372. "type": "string"
  4373. },
  4374. "id": {
  4375. "description": "主键ID",
  4376. "type": "integer"
  4377. },
  4378. "keepAlive": {
  4379. "description": "是否缓存",
  4380. "type": "boolean"
  4381. },
  4382. "name": {
  4383. "description": "路由name",
  4384. "type": "string"
  4385. },
  4386. "parameters": {
  4387. "type": "array",
  4388. "items": {
  4389. "$ref": "#/definitions/system.SysBaseMenuParameter"
  4390. }
  4391. },
  4392. "parentId": {
  4393. "description": "父菜单ID",
  4394. "type": "string"
  4395. },
  4396. "path": {
  4397. "description": "路由path",
  4398. "type": "string"
  4399. },
  4400. "sort": {
  4401. "description": "排序标记",
  4402. "type": "integer"
  4403. },
  4404. "title": {
  4405. "description": "菜单名",
  4406. "type": "string"
  4407. },
  4408. "updatedAt": {
  4409. "description": "更新时间",
  4410. "type": "string"
  4411. }
  4412. }
  4413. },
  4414. "system.SysBaseMenuParameter": {
  4415. "type": "object",
  4416. "properties": {
  4417. "createdAt": {
  4418. "description": "创建时间",
  4419. "type": "string"
  4420. },
  4421. "id": {
  4422. "description": "主键ID",
  4423. "type": "integer"
  4424. },
  4425. "key": {
  4426. "description": "地址栏携带参数的key",
  4427. "type": "string"
  4428. },
  4429. "sysBaseMenuID": {
  4430. "type": "integer"
  4431. },
  4432. "type": {
  4433. "description": "地址栏携带参数为params还是query",
  4434. "type": "string"
  4435. },
  4436. "updatedAt": {
  4437. "description": "更新时间",
  4438. "type": "string"
  4439. },
  4440. "value": {
  4441. "description": "地址栏携带参数的值",
  4442. "type": "string"
  4443. }
  4444. }
  4445. },
  4446. "system.SysDictionary": {
  4447. "type": "object",
  4448. "properties": {
  4449. "createdAt": {
  4450. "description": "创建时间",
  4451. "type": "string"
  4452. },
  4453. "desc": {
  4454. "description": "描述",
  4455. "type": "string"
  4456. },
  4457. "id": {
  4458. "description": "主键ID",
  4459. "type": "integer"
  4460. },
  4461. "name": {
  4462. "description": "字典名(中)",
  4463. "type": "string"
  4464. },
  4465. "status": {
  4466. "description": "状态",
  4467. "type": "boolean"
  4468. },
  4469. "sysDictionaryDetails": {
  4470. "type": "array",
  4471. "items": {
  4472. "$ref": "#/definitions/system.SysDictionaryDetail"
  4473. }
  4474. },
  4475. "type": {
  4476. "description": "字典名(英)",
  4477. "type": "string"
  4478. },
  4479. "updatedAt": {
  4480. "description": "更新时间",
  4481. "type": "string"
  4482. }
  4483. }
  4484. },
  4485. "system.SysDictionaryDetail": {
  4486. "type": "object",
  4487. "properties": {
  4488. "createdAt": {
  4489. "description": "创建时间",
  4490. "type": "string"
  4491. },
  4492. "id": {
  4493. "description": "主键ID",
  4494. "type": "integer"
  4495. },
  4496. "label": {
  4497. "description": "展示值",
  4498. "type": "string"
  4499. },
  4500. "sort": {
  4501. "description": "排序标记",
  4502. "type": "integer"
  4503. },
  4504. "status": {
  4505. "description": "启用状态",
  4506. "type": "boolean"
  4507. },
  4508. "sysDictionaryID": {
  4509. "description": "关联标记",
  4510. "type": "integer"
  4511. },
  4512. "updatedAt": {
  4513. "description": "更新时间",
  4514. "type": "string"
  4515. },
  4516. "value": {
  4517. "description": "字典值",
  4518. "type": "integer"
  4519. }
  4520. }
  4521. },
  4522. "system.SysOperationRecord": {
  4523. "type": "object",
  4524. "properties": {
  4525. "agent": {
  4526. "description": "代理",
  4527. "type": "string"
  4528. },
  4529. "body": {
  4530. "description": "请求Body",
  4531. "type": "string"
  4532. },
  4533. "createdAt": {
  4534. "description": "创建时间",
  4535. "type": "string"
  4536. },
  4537. "error_message": {
  4538. "description": "错误信息",
  4539. "type": "string"
  4540. },
  4541. "id": {
  4542. "description": "主键ID",
  4543. "type": "integer"
  4544. },
  4545. "ip": {
  4546. "description": "请求ip",
  4547. "type": "string"
  4548. },
  4549. "latency": {
  4550. "description": "延迟",
  4551. "type": "string"
  4552. },
  4553. "method": {
  4554. "description": "请求方法",
  4555. "type": "string"
  4556. },
  4557. "path": {
  4558. "description": "请求路径",
  4559. "type": "string"
  4560. },
  4561. "resp": {
  4562. "description": "响应Body",
  4563. "type": "string"
  4564. },
  4565. "status": {
  4566. "description": "请求状态",
  4567. "type": "integer"
  4568. },
  4569. "updatedAt": {
  4570. "description": "更新时间",
  4571. "type": "string"
  4572. },
  4573. "user": {
  4574. "$ref": "#/definitions/system.SysUser"
  4575. },
  4576. "user_id": {
  4577. "description": "用户id",
  4578. "type": "integer"
  4579. }
  4580. }
  4581. },
  4582. "system.SysUser": {
  4583. "type": "object",
  4584. "properties": {
  4585. "activeColor": {
  4586. "description": "活跃颜色",
  4587. "type": "string"
  4588. },
  4589. "authorities": {
  4590. "type": "array",
  4591. "items": {
  4592. "$ref": "#/definitions/system.SysAuthority"
  4593. }
  4594. },
  4595. "authority": {
  4596. "$ref": "#/definitions/system.SysAuthority"
  4597. },
  4598. "authorityId": {
  4599. "description": "用户角色ID",
  4600. "type": "string"
  4601. },
  4602. "baseColor": {
  4603. "description": "基础颜色",
  4604. "type": "string"
  4605. },
  4606. "createdAt": {
  4607. "description": "创建时间",
  4608. "type": "string"
  4609. },
  4610. "headerImg": {
  4611. "description": "用户头像",
  4612. "type": "string"
  4613. },
  4614. "id": {
  4615. "description": "主键ID",
  4616. "type": "integer"
  4617. },
  4618. "nickName": {
  4619. "description": "用户昵称",
  4620. "type": "string"
  4621. },
  4622. "sideMode": {
  4623. "description": "用户侧边主题",
  4624. "type": "string"
  4625. },
  4626. "updatedAt": {
  4627. "description": "更新时间",
  4628. "type": "string"
  4629. },
  4630. "userName": {
  4631. "description": "用户登录名",
  4632. "type": "string"
  4633. },
  4634. "uuid": {
  4635. "description": "用户UUID",
  4636. "type": "string"
  4637. }
  4638. }
  4639. },
  4640. "system.System": {
  4641. "type": "object",
  4642. "properties": {
  4643. "config": {
  4644. "$ref": "#/definitions/config.Server"
  4645. }
  4646. }
  4647. }
  4648. },
  4649. "securityDefinitions": {
  4650. "ApiKeyAuth": {
  4651. "type": "apiKey",
  4652. "name": "x-token",
  4653. "in": "header"
  4654. }
  4655. }
  4656. }