swagger.json 155 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244924502451245224532454245524562457245824592460246124622463246424652466246724682469247024712472247324742475247624772478247924802481248224832484248524862487248824892490249124922493249424952496249724982499250025012502250325042505250625072508250925102511251225132514251525162517251825192520252125222523252425252526252725282529253025312532253325342535253625372538253925402541254225432544254525462547254825492550255125522553255425552556255725582559256025612562256325642565256625672568256925702571257225732574257525762577257825792580258125822583258425852586258725882589259025912592259325942595259625972598259926002601260226032604260526062607260826092610261126122613261426152616261726182619262026212622262326242625262626272628262926302631263226332634263526362637263826392640264126422643264426452646264726482649265026512652265326542655265626572658265926602661266226632664266526662667266826692670267126722673267426752676267726782679268026812682268326842685268626872688268926902691269226932694269526962697269826992700270127022703270427052706270727082709271027112712271327142715271627172718271927202721272227232724272527262727272827292730273127322733273427352736273727382739274027412742274327442745274627472748274927502751275227532754275527562757275827592760276127622763276427652766276727682769277027712772277327742775277627772778277927802781278227832784278527862787278827892790279127922793279427952796279727982799280028012802280328042805280628072808280928102811281228132814281528162817281828192820282128222823282428252826282728282829283028312832283328342835283628372838283928402841284228432844284528462847284828492850285128522853285428552856285728582859286028612862286328642865286628672868286928702871287228732874287528762877287828792880288128822883288428852886288728882889289028912892289328942895289628972898289929002901290229032904290529062907290829092910291129122913291429152916291729182919292029212922292329242925292629272928292929302931293229332934293529362937293829392940294129422943294429452946294729482949295029512952295329542955295629572958295929602961296229632964296529662967296829692970297129722973297429752976297729782979298029812982298329842985298629872988298929902991299229932994299529962997299829993000300130023003300430053006300730083009301030113012301330143015301630173018301930203021302230233024302530263027302830293030303130323033303430353036303730383039304030413042304330443045304630473048304930503051305230533054305530563057305830593060306130623063306430653066306730683069307030713072307330743075307630773078307930803081308230833084308530863087308830893090309130923093309430953096309730983099310031013102310331043105310631073108310931103111311231133114311531163117311831193120312131223123312431253126312731283129313031313132313331343135313631373138313931403141314231433144314531463147314831493150315131523153315431553156315731583159316031613162316331643165316631673168316931703171317231733174317531763177317831793180318131823183318431853186318731883189319031913192319331943195319631973198319932003201320232033204320532063207320832093210321132123213321432153216321732183219322032213222322332243225322632273228322932303231323232333234323532363237323832393240324132423243324432453246324732483249325032513252325332543255325632573258325932603261326232633264326532663267326832693270327132723273327432753276327732783279328032813282328332843285328632873288328932903291329232933294329532963297329832993300330133023303330433053306330733083309331033113312331333143315331633173318331933203321332233233324332533263327332833293330333133323333333433353336333733383339334033413342334333443345334633473348334933503351335233533354335533563357335833593360336133623363336433653366336733683369337033713372337333743375337633773378337933803381338233833384338533863387338833893390339133923393339433953396339733983399340034013402340334043405340634073408340934103411341234133414341534163417341834193420342134223423342434253426342734283429343034313432343334343435343634373438343934403441344234433444344534463447344834493450345134523453345434553456345734583459346034613462346334643465346634673468346934703471347234733474347534763477347834793480348134823483348434853486348734883489349034913492349334943495349634973498349935003501350235033504350535063507350835093510351135123513351435153516351735183519352035213522352335243525352635273528352935303531353235333534353535363537353835393540354135423543354435453546354735483549355035513552355335543555355635573558355935603561356235633564356535663567356835693570357135723573357435753576357735783579358035813582358335843585358635873588358935903591359235933594359535963597359835993600360136023603360436053606360736083609361036113612361336143615361636173618361936203621362236233624362536263627362836293630363136323633363436353636363736383639364036413642364336443645364636473648364936503651365236533654365536563657365836593660366136623663366436653666366736683669367036713672367336743675367636773678367936803681368236833684368536863687368836893690369136923693369436953696369736983699370037013702370337043705370637073708370937103711371237133714371537163717371837193720372137223723372437253726372737283729373037313732373337343735373637373738373937403741374237433744374537463747374837493750375137523753375437553756375737583759376037613762376337643765376637673768376937703771377237733774377537763777377837793780378137823783378437853786378737883789379037913792379337943795379637973798379938003801380238033804380538063807380838093810381138123813381438153816381738183819382038213822382338243825382638273828382938303831383238333834383538363837383838393840384138423843384438453846384738483849385038513852385338543855385638573858385938603861386238633864386538663867386838693870387138723873387438753876387738783879388038813882388338843885388638873888388938903891389238933894389538963897389838993900390139023903390439053906390739083909391039113912391339143915391639173918391939203921392239233924392539263927392839293930393139323933393439353936393739383939394039413942394339443945394639473948394939503951395239533954395539563957395839593960396139623963396439653966396739683969397039713972397339743975397639773978397939803981398239833984398539863987398839893990399139923993399439953996399739983999400040014002400340044005400640074008400940104011401240134014401540164017401840194020402140224023402440254026402740284029403040314032403340344035403640374038403940404041404240434044404540464047404840494050405140524053405440554056405740584059406040614062406340644065406640674068406940704071407240734074407540764077407840794080408140824083408440854086408740884089409040914092409340944095409640974098409941004101410241034104410541064107410841094110411141124113411441154116411741184119412041214122412341244125412641274128412941304131413241334134413541364137413841394140414141424143414441454146414741484149415041514152415341544155415641574158415941604161416241634164416541664167416841694170417141724173417441754176417741784179418041814182418341844185418641874188418941904191419241934194419541964197419841994200420142024203420442054206420742084209421042114212421342144215421642174218421942204221422242234224422542264227422842294230423142324233423442354236423742384239424042414242424342444245424642474248424942504251425242534254425542564257425842594260426142624263426442654266426742684269427042714272427342744275427642774278427942804281428242834284428542864287428842894290429142924293429442954296429742984299430043014302430343044305430643074308430943104311431243134314431543164317431843194320432143224323432443254326432743284329433043314332433343344335433643374338433943404341434243434344434543464347434843494350435143524353435443554356435743584359436043614362436343644365436643674368436943704371437243734374437543764377437843794380438143824383438443854386438743884389439043914392439343944395439643974398439944004401440244034404440544064407440844094410441144124413441444154416441744184419442044214422442344244425442644274428442944304431443244334434443544364437443844394440444144424443444444454446444744484449445044514452445344544455445644574458445944604461446244634464446544664467446844694470447144724473447444754476447744784479448044814482448344844485448644874488448944904491449244934494449544964497449844994500450145024503450445054506450745084509451045114512451345144515451645174518451945204521452245234524452545264527452845294530453145324533453445354536453745384539454045414542454345444545454645474548454945504551455245534554455545564557455845594560456145624563456445654566456745684569457045714572457345744575457645774578457945804581458245834584458545864587458845894590459145924593459445954596459745984599460046014602460346044605460646074608460946104611461246134614461546164617461846194620462146224623462446254626462746284629463046314632463346344635463646374638463946404641464246434644464546464647464846494650465146524653465446554656465746584659466046614662466346644665466646674668466946704671467246734674467546764677467846794680468146824683468446854686468746884689469046914692469346944695469646974698469947004701470247034704470547064707470847094710471147124713471447154716471747184719472047214722472347244725472647274728472947304731473247334734473547364737473847394740474147424743474447454746474747484749475047514752475347544755475647574758475947604761476247634764476547664767476847694770477147724773477447754776477747784779478047814782478347844785478647874788478947904791479247934794479547964797479847994800480148024803480448054806480748084809481048114812481348144815481648174818481948204821482248234824482548264827482848294830483148324833483448354836483748384839484048414842484348444845484648474848484948504851485248534854485548564857485848594860486148624863
  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. "type": "string",
  1001. "description": "展示值",
  1002. "name": "autoCodeExampleField",
  1003. "in": "query"
  1004. },
  1005. {
  1006. "type": "string",
  1007. "description": "创建时间",
  1008. "name": "createdAt",
  1009. "in": "query"
  1010. },
  1011. {
  1012. "type": "integer",
  1013. "description": "主键ID",
  1014. "name": "id",
  1015. "in": "query"
  1016. },
  1017. {
  1018. "type": "string",
  1019. "description": "更新时间",
  1020. "name": "updatedAt",
  1021. "in": "query"
  1022. }
  1023. ],
  1024. "responses": {
  1025. "200": {
  1026. "description": "{\"success\":true,\"data\":{},\"msg\":\"查询成功\"}",
  1027. "schema": {
  1028. "type": "string"
  1029. }
  1030. }
  1031. }
  1032. }
  1033. },
  1034. "/autoCodeExample/getAutoCodeExampleList": {
  1035. "get": {
  1036. "security": [
  1037. {
  1038. "ApiKeyAuth": []
  1039. }
  1040. ],
  1041. "consumes": [
  1042. "application/json"
  1043. ],
  1044. "produces": [
  1045. "application/json"
  1046. ],
  1047. "tags": [
  1048. "AutoCodeExample"
  1049. ],
  1050. "summary": "分页获取AutoCodeExample列表",
  1051. "parameters": [
  1052. {
  1053. "type": "string",
  1054. "description": "展示值",
  1055. "name": "autoCodeExampleField",
  1056. "in": "query"
  1057. },
  1058. {
  1059. "type": "string",
  1060. "description": "创建时间",
  1061. "name": "createdAt",
  1062. "in": "query"
  1063. },
  1064. {
  1065. "type": "integer",
  1066. "description": "主键ID",
  1067. "name": "id",
  1068. "in": "query"
  1069. },
  1070. {
  1071. "type": "integer",
  1072. "description": "页码",
  1073. "name": "page",
  1074. "in": "query"
  1075. },
  1076. {
  1077. "type": "integer",
  1078. "description": "每页大小",
  1079. "name": "pageSize",
  1080. "in": "query"
  1081. },
  1082. {
  1083. "type": "string",
  1084. "description": "更新时间",
  1085. "name": "updatedAt",
  1086. "in": "query"
  1087. }
  1088. ],
  1089. "responses": {
  1090. "200": {
  1091. "description": "{\"success\":true,\"data\":{},\"msg\":\"获取成功\"}",
  1092. "schema": {
  1093. "type": "string"
  1094. }
  1095. }
  1096. }
  1097. }
  1098. },
  1099. "/autoCodeExample/updateAutoCodeExample": {
  1100. "put": {
  1101. "security": [
  1102. {
  1103. "ApiKeyAuth": []
  1104. }
  1105. ],
  1106. "consumes": [
  1107. "application/json"
  1108. ],
  1109. "produces": [
  1110. "application/json"
  1111. ],
  1112. "tags": [
  1113. "AutoCodeExample"
  1114. ],
  1115. "summary": "更新AutoCodeExample",
  1116. "parameters": [
  1117. {
  1118. "description": "更新AutoCodeExample",
  1119. "name": "data",
  1120. "in": "body",
  1121. "required": true,
  1122. "schema": {
  1123. "$ref": "#/definitions/autocode.AutoCodeExample"
  1124. }
  1125. }
  1126. ],
  1127. "responses": {
  1128. "200": {
  1129. "description": "{\"success\":true,\"data\":{},\"msg\":\"更新成功\"}",
  1130. "schema": {
  1131. "type": "string"
  1132. }
  1133. }
  1134. }
  1135. }
  1136. },
  1137. "/base/captcha": {
  1138. "post": {
  1139. "security": [
  1140. {
  1141. "ApiKeyAuth": []
  1142. }
  1143. ],
  1144. "consumes": [
  1145. "application/json"
  1146. ],
  1147. "produces": [
  1148. "application/json"
  1149. ],
  1150. "tags": [
  1151. "Base"
  1152. ],
  1153. "summary": "生成验证码",
  1154. "responses": {
  1155. "200": {
  1156. "description": "{\"success\":true,\"data\":{},\"msg\":\"验证码获取成功\"}",
  1157. "schema": {
  1158. "type": "string"
  1159. }
  1160. }
  1161. }
  1162. }
  1163. },
  1164. "/base/login": {
  1165. "post": {
  1166. "produces": [
  1167. "application/json"
  1168. ],
  1169. "tags": [
  1170. "Base"
  1171. ],
  1172. "summary": "用户登录",
  1173. "parameters": [
  1174. {
  1175. "description": "用户名, 密码, 验证码",
  1176. "name": "data",
  1177. "in": "body",
  1178. "required": true,
  1179. "schema": {
  1180. "$ref": "#/definitions/request.Login"
  1181. }
  1182. }
  1183. ],
  1184. "responses": {
  1185. "200": {
  1186. "description": "{\"success\":true,\"data\":{},\"msg\":\"登陆成功\"}",
  1187. "schema": {
  1188. "type": "string"
  1189. }
  1190. }
  1191. }
  1192. }
  1193. },
  1194. "/casbin/UpdateCasbin": {
  1195. "post": {
  1196. "security": [
  1197. {
  1198. "ApiKeyAuth": []
  1199. }
  1200. ],
  1201. "consumes": [
  1202. "application/json"
  1203. ],
  1204. "produces": [
  1205. "application/json"
  1206. ],
  1207. "tags": [
  1208. "Casbin"
  1209. ],
  1210. "summary": "更新角色api权限",
  1211. "parameters": [
  1212. {
  1213. "description": "权限id, 权限模型列表",
  1214. "name": "data",
  1215. "in": "body",
  1216. "required": true,
  1217. "schema": {
  1218. "$ref": "#/definitions/request.CasbinInReceive"
  1219. }
  1220. }
  1221. ],
  1222. "responses": {
  1223. "200": {
  1224. "description": "{\"success\":true,\"data\":{},\"msg\":\"更新成功\"}",
  1225. "schema": {
  1226. "type": "string"
  1227. }
  1228. }
  1229. }
  1230. }
  1231. },
  1232. "/casbin/getPolicyPathByAuthorityId": {
  1233. "post": {
  1234. "security": [
  1235. {
  1236. "ApiKeyAuth": []
  1237. }
  1238. ],
  1239. "consumes": [
  1240. "application/json"
  1241. ],
  1242. "produces": [
  1243. "application/json"
  1244. ],
  1245. "tags": [
  1246. "Casbin"
  1247. ],
  1248. "summary": "获取权限列表",
  1249. "parameters": [
  1250. {
  1251. "description": "权限id, 权限模型列表",
  1252. "name": "data",
  1253. "in": "body",
  1254. "required": true,
  1255. "schema": {
  1256. "$ref": "#/definitions/request.CasbinInReceive"
  1257. }
  1258. }
  1259. ],
  1260. "responses": {
  1261. "200": {
  1262. "description": "{\"success\":true,\"data\":{},\"msg\":\"获取成功\"}",
  1263. "schema": {
  1264. "type": "string"
  1265. }
  1266. }
  1267. }
  1268. }
  1269. },
  1270. "/customer/customer": {
  1271. "get": {
  1272. "security": [
  1273. {
  1274. "ApiKeyAuth": []
  1275. }
  1276. ],
  1277. "consumes": [
  1278. "application/json"
  1279. ],
  1280. "produces": [
  1281. "application/json"
  1282. ],
  1283. "tags": [
  1284. "ExaCustomer"
  1285. ],
  1286. "summary": "获取单一客户信息",
  1287. "parameters": [
  1288. {
  1289. "type": "string",
  1290. "description": "创建时间",
  1291. "name": "createdAt",
  1292. "in": "query"
  1293. },
  1294. {
  1295. "type": "string",
  1296. "description": "客户名",
  1297. "name": "customerName",
  1298. "in": "query"
  1299. },
  1300. {
  1301. "type": "string",
  1302. "description": "客户手机号",
  1303. "name": "customerPhoneData",
  1304. "in": "query"
  1305. },
  1306. {
  1307. "type": "integer",
  1308. "description": "主键ID",
  1309. "name": "id",
  1310. "in": "query"
  1311. },
  1312. {
  1313. "type": "string",
  1314. "description": "管理角色ID",
  1315. "name": "sysUserAuthorityID",
  1316. "in": "query"
  1317. },
  1318. {
  1319. "type": "integer",
  1320. "description": "管理ID",
  1321. "name": "sysUserId",
  1322. "in": "query"
  1323. },
  1324. {
  1325. "type": "string",
  1326. "description": "更新时间",
  1327. "name": "updatedAt",
  1328. "in": "query"
  1329. }
  1330. ],
  1331. "responses": {
  1332. "200": {
  1333. "description": "{\"success\":true,\"data\":{},\"msg\":\"获取成功\"}",
  1334. "schema": {
  1335. "type": "string"
  1336. }
  1337. }
  1338. }
  1339. },
  1340. "put": {
  1341. "security": [
  1342. {
  1343. "ApiKeyAuth": []
  1344. }
  1345. ],
  1346. "consumes": [
  1347. "application/json"
  1348. ],
  1349. "produces": [
  1350. "application/json"
  1351. ],
  1352. "tags": [
  1353. "ExaCustomer"
  1354. ],
  1355. "summary": "更新客户信息",
  1356. "parameters": [
  1357. {
  1358. "description": "客户ID, 客户信息",
  1359. "name": "data",
  1360. "in": "body",
  1361. "required": true,
  1362. "schema": {
  1363. "$ref": "#/definitions/example.ExaCustomer"
  1364. }
  1365. }
  1366. ],
  1367. "responses": {
  1368. "200": {
  1369. "description": "{\"success\":true,\"data\":{},\"msg\":\"更新成功\"}",
  1370. "schema": {
  1371. "type": "string"
  1372. }
  1373. }
  1374. }
  1375. },
  1376. "post": {
  1377. "security": [
  1378. {
  1379. "ApiKeyAuth": []
  1380. }
  1381. ],
  1382. "consumes": [
  1383. "application/json"
  1384. ],
  1385. "produces": [
  1386. "application/json"
  1387. ],
  1388. "tags": [
  1389. "ExaCustomer"
  1390. ],
  1391. "summary": "创建客户",
  1392. "parameters": [
  1393. {
  1394. "description": "客户用户名, 客户手机号码",
  1395. "name": "data",
  1396. "in": "body",
  1397. "required": true,
  1398. "schema": {
  1399. "$ref": "#/definitions/example.ExaCustomer"
  1400. }
  1401. }
  1402. ],
  1403. "responses": {
  1404. "200": {
  1405. "description": "{\"success\":true,\"data\":{},\"msg\":\"创建成功\"}",
  1406. "schema": {
  1407. "type": "string"
  1408. }
  1409. }
  1410. }
  1411. },
  1412. "delete": {
  1413. "security": [
  1414. {
  1415. "ApiKeyAuth": []
  1416. }
  1417. ],
  1418. "consumes": [
  1419. "application/json"
  1420. ],
  1421. "produces": [
  1422. "application/json"
  1423. ],
  1424. "tags": [
  1425. "ExaCustomer"
  1426. ],
  1427. "summary": "删除客户",
  1428. "parameters": [
  1429. {
  1430. "description": "客户ID",
  1431. "name": "data",
  1432. "in": "body",
  1433. "required": true,
  1434. "schema": {
  1435. "$ref": "#/definitions/example.ExaCustomer"
  1436. }
  1437. }
  1438. ],
  1439. "responses": {
  1440. "200": {
  1441. "description": "{\"success\":true,\"data\":{},\"msg\":\"删除成功\"}",
  1442. "schema": {
  1443. "type": "string"
  1444. }
  1445. }
  1446. }
  1447. }
  1448. },
  1449. "/customer/customerList": {
  1450. "get": {
  1451. "security": [
  1452. {
  1453. "ApiKeyAuth": []
  1454. }
  1455. ],
  1456. "consumes": [
  1457. "application/json"
  1458. ],
  1459. "produces": [
  1460. "application/json"
  1461. ],
  1462. "tags": [
  1463. "ExaCustomer"
  1464. ],
  1465. "summary": "分页获取权限客户列表",
  1466. "parameters": [
  1467. {
  1468. "type": "integer",
  1469. "description": "页码",
  1470. "name": "page",
  1471. "in": "query"
  1472. },
  1473. {
  1474. "type": "integer",
  1475. "description": "每页大小",
  1476. "name": "pageSize",
  1477. "in": "query"
  1478. }
  1479. ],
  1480. "responses": {
  1481. "200": {
  1482. "description": "{\"success\":true,\"data\":{},\"msg\":\"获取成功\"}",
  1483. "schema": {
  1484. "type": "string"
  1485. }
  1486. }
  1487. }
  1488. }
  1489. },
  1490. "/email/emailTest": {
  1491. "post": {
  1492. "security": [
  1493. {
  1494. "ApiKeyAuth": []
  1495. }
  1496. ],
  1497. "produces": [
  1498. "application/json"
  1499. ],
  1500. "tags": [
  1501. "System"
  1502. ],
  1503. "summary": "发送测试邮件",
  1504. "responses": {
  1505. "200": {
  1506. "description": "{\"success\":true,\"data\":{},\"msg\":\"发送成功\"}",
  1507. "schema": {
  1508. "type": "string"
  1509. }
  1510. }
  1511. }
  1512. }
  1513. },
  1514. "/excel/downloadTemplate": {
  1515. "get": {
  1516. "security": [
  1517. {
  1518. "ApiKeyAuth": []
  1519. }
  1520. ],
  1521. "consumes": [
  1522. "multipart/form-data"
  1523. ],
  1524. "produces": [
  1525. "application/json"
  1526. ],
  1527. "tags": [
  1528. "excel"
  1529. ],
  1530. "summary": "下载模板",
  1531. "parameters": [
  1532. {
  1533. "type": "string",
  1534. "description": "模板名称",
  1535. "name": "fileName",
  1536. "in": "query",
  1537. "required": true
  1538. }
  1539. ],
  1540. "responses": {
  1541. "200": {}
  1542. }
  1543. }
  1544. },
  1545. "/excel/exportExcel": {
  1546. "post": {
  1547. "security": [
  1548. {
  1549. "ApiKeyAuth": []
  1550. }
  1551. ],
  1552. "consumes": [
  1553. "application/json"
  1554. ],
  1555. "produces": [
  1556. "application/octet-stream"
  1557. ],
  1558. "tags": [
  1559. "excel"
  1560. ],
  1561. "summary": "导出Excel",
  1562. "parameters": [
  1563. {
  1564. "description": "导出Excel文件信息",
  1565. "name": "data",
  1566. "in": "body",
  1567. "required": true,
  1568. "schema": {
  1569. "$ref": "#/definitions/example.ExcelInfo"
  1570. }
  1571. }
  1572. ],
  1573. "responses": {
  1574. "200": {}
  1575. }
  1576. }
  1577. },
  1578. "/excel/importExcel": {
  1579. "post": {
  1580. "security": [
  1581. {
  1582. "ApiKeyAuth": []
  1583. }
  1584. ],
  1585. "consumes": [
  1586. "multipart/form-data"
  1587. ],
  1588. "produces": [
  1589. "application/json"
  1590. ],
  1591. "tags": [
  1592. "excel"
  1593. ],
  1594. "summary": "导入Excel文件",
  1595. "parameters": [
  1596. {
  1597. "type": "file",
  1598. "description": "导入Excel文件",
  1599. "name": "file",
  1600. "in": "formData",
  1601. "required": true
  1602. }
  1603. ],
  1604. "responses": {
  1605. "200": {
  1606. "description": "{\"success\":true,\"data\":{},\"msg\":\"导入成功\"}",
  1607. "schema": {
  1608. "type": "string"
  1609. }
  1610. }
  1611. }
  1612. }
  1613. },
  1614. "/excel/loadExcel": {
  1615. "get": {
  1616. "security": [
  1617. {
  1618. "ApiKeyAuth": []
  1619. }
  1620. ],
  1621. "produces": [
  1622. "application/json"
  1623. ],
  1624. "tags": [
  1625. "excel"
  1626. ],
  1627. "summary": "加载Excel数据",
  1628. "responses": {
  1629. "200": {
  1630. "description": "{\"success\":true,\"data\":{},\"msg\":\"加载数据成功\"}",
  1631. "schema": {
  1632. "type": "string"
  1633. }
  1634. }
  1635. }
  1636. }
  1637. },
  1638. "/fileUploadAndDownload/breakpointContinue": {
  1639. "post": {
  1640. "security": [
  1641. {
  1642. "ApiKeyAuth": []
  1643. }
  1644. ],
  1645. "consumes": [
  1646. "multipart/form-data"
  1647. ],
  1648. "produces": [
  1649. "application/json"
  1650. ],
  1651. "tags": [
  1652. "ExaFileUploadAndDownload"
  1653. ],
  1654. "summary": "断点续传到服务器",
  1655. "parameters": [
  1656. {
  1657. "type": "file",
  1658. "description": "an example for breakpoint resume, 断点续传示例",
  1659. "name": "file",
  1660. "in": "formData",
  1661. "required": true
  1662. }
  1663. ],
  1664. "responses": {
  1665. "200": {
  1666. "description": "{\"success\":true,\"data\":{},\"msg\":\"切片创建成功\"}",
  1667. "schema": {
  1668. "type": "string"
  1669. }
  1670. }
  1671. }
  1672. }
  1673. },
  1674. "/fileUploadAndDownload/deleteFile": {
  1675. "post": {
  1676. "security": [
  1677. {
  1678. "ApiKeyAuth": []
  1679. }
  1680. ],
  1681. "produces": [
  1682. "application/json"
  1683. ],
  1684. "tags": [
  1685. "ExaFileUploadAndDownload"
  1686. ],
  1687. "summary": "删除文件",
  1688. "parameters": [
  1689. {
  1690. "description": "传入文件里面id即可",
  1691. "name": "data",
  1692. "in": "body",
  1693. "required": true,
  1694. "schema": {
  1695. "$ref": "#/definitions/example.ExaFileUploadAndDownload"
  1696. }
  1697. }
  1698. ],
  1699. "responses": {
  1700. "200": {
  1701. "description": "{\"success\":true,\"data\":{},\"msg\":\"删除成功\"}",
  1702. "schema": {
  1703. "type": "string"
  1704. }
  1705. }
  1706. }
  1707. }
  1708. },
  1709. "/fileUploadAndDownload/findFile": {
  1710. "post": {
  1711. "security": [
  1712. {
  1713. "ApiKeyAuth": []
  1714. }
  1715. ],
  1716. "consumes": [
  1717. "multipart/form-data"
  1718. ],
  1719. "produces": [
  1720. "application/json"
  1721. ],
  1722. "tags": [
  1723. "ExaFileUploadAndDownload"
  1724. ],
  1725. "summary": "创建文件",
  1726. "parameters": [
  1727. {
  1728. "type": "file",
  1729. "description": "上传文件完成",
  1730. "name": "file",
  1731. "in": "formData",
  1732. "required": true
  1733. }
  1734. ],
  1735. "responses": {
  1736. "200": {
  1737. "description": "{\"success\":true,\"data\":{},\"msg\":\"file uploaded, 文件创建成功\"}",
  1738. "schema": {
  1739. "type": "string"
  1740. }
  1741. }
  1742. }
  1743. }
  1744. },
  1745. "/fileUploadAndDownload/getFileList": {
  1746. "post": {
  1747. "security": [
  1748. {
  1749. "ApiKeyAuth": []
  1750. }
  1751. ],
  1752. "consumes": [
  1753. "application/json"
  1754. ],
  1755. "produces": [
  1756. "application/json"
  1757. ],
  1758. "tags": [
  1759. "ExaFileUploadAndDownload"
  1760. ],
  1761. "summary": "分页文件列表",
  1762. "parameters": [
  1763. {
  1764. "description": "页码, 每页大小",
  1765. "name": "data",
  1766. "in": "body",
  1767. "required": true,
  1768. "schema": {
  1769. "$ref": "#/definitions/request.PageInfo"
  1770. }
  1771. }
  1772. ],
  1773. "responses": {
  1774. "200": {
  1775. "description": "{\"success\":true,\"data\":{},\"msg\":\"获取成功\"}",
  1776. "schema": {
  1777. "type": "string"
  1778. }
  1779. }
  1780. }
  1781. }
  1782. },
  1783. "/fileUploadAndDownload/removeChunk": {
  1784. "post": {
  1785. "security": [
  1786. {
  1787. "ApiKeyAuth": []
  1788. }
  1789. ],
  1790. "consumes": [
  1791. "multipart/form-data"
  1792. ],
  1793. "produces": [
  1794. "application/json"
  1795. ],
  1796. "tags": [
  1797. "ExaFileUploadAndDownload"
  1798. ],
  1799. "summary": "删除切片",
  1800. "parameters": [
  1801. {
  1802. "type": "file",
  1803. "description": "删除缓存切片",
  1804. "name": "file",
  1805. "in": "formData",
  1806. "required": true
  1807. }
  1808. ],
  1809. "responses": {
  1810. "200": {
  1811. "description": "{\"success\":true,\"data\":{},\"msg\":\"缓存切片删除成功\"}",
  1812. "schema": {
  1813. "type": "string"
  1814. }
  1815. }
  1816. }
  1817. }
  1818. },
  1819. "/fileUploadAndDownload/upload": {
  1820. "post": {
  1821. "security": [
  1822. {
  1823. "ApiKeyAuth": []
  1824. }
  1825. ],
  1826. "consumes": [
  1827. "multipart/form-data"
  1828. ],
  1829. "produces": [
  1830. "application/json"
  1831. ],
  1832. "tags": [
  1833. "ExaFileUploadAndDownload"
  1834. ],
  1835. "summary": "上传文件示例",
  1836. "parameters": [
  1837. {
  1838. "type": "file",
  1839. "description": "上传文件示例",
  1840. "name": "file",
  1841. "in": "formData",
  1842. "required": true
  1843. }
  1844. ],
  1845. "responses": {
  1846. "200": {
  1847. "description": "{\"success\":true,\"data\":{},\"msg\":\"上传成功\"}",
  1848. "schema": {
  1849. "type": "string"
  1850. }
  1851. }
  1852. }
  1853. }
  1854. },
  1855. "/init/checkdb": {
  1856. "post": {
  1857. "produces": [
  1858. "application/json"
  1859. ],
  1860. "tags": [
  1861. "CheckDB"
  1862. ],
  1863. "summary": "初始化用户数据库",
  1864. "responses": {
  1865. "200": {
  1866. "description": "{\"code\":0,\"data\":{},\"msg\":\"探测完成\"}",
  1867. "schema": {
  1868. "type": "string"
  1869. }
  1870. }
  1871. }
  1872. }
  1873. },
  1874. "/init/initdb": {
  1875. "post": {
  1876. "produces": [
  1877. "application/json"
  1878. ],
  1879. "tags": [
  1880. "InitDB"
  1881. ],
  1882. "summary": "初始化用户数据库",
  1883. "parameters": [
  1884. {
  1885. "description": "初始化数据库参数",
  1886. "name": "data",
  1887. "in": "body",
  1888. "required": true,
  1889. "schema": {
  1890. "$ref": "#/definitions/request.InitDB"
  1891. }
  1892. }
  1893. ],
  1894. "responses": {
  1895. "200": {
  1896. "description": "{\"code\":0,\"data\":{},\"msg\":\"自动创建数据库成功\"}",
  1897. "schema": {
  1898. "type": "string"
  1899. }
  1900. }
  1901. }
  1902. }
  1903. },
  1904. "/jwt/jsonInBlacklist": {
  1905. "post": {
  1906. "security": [
  1907. {
  1908. "ApiKeyAuth": []
  1909. }
  1910. ],
  1911. "consumes": [
  1912. "application/json"
  1913. ],
  1914. "produces": [
  1915. "application/json"
  1916. ],
  1917. "tags": [
  1918. "Jwt"
  1919. ],
  1920. "summary": "jwt加入黑名单",
  1921. "responses": {
  1922. "200": {
  1923. "description": "{\"success\":true,\"data\":{},\"msg\":\"拉黑成功\"}",
  1924. "schema": {
  1925. "type": "string"
  1926. }
  1927. }
  1928. }
  1929. }
  1930. },
  1931. "/menu/GetMenuAuthority": {
  1932. "post": {
  1933. "security": [
  1934. {
  1935. "ApiKeyAuth": []
  1936. }
  1937. ],
  1938. "consumes": [
  1939. "application/json"
  1940. ],
  1941. "produces": [
  1942. "application/json"
  1943. ],
  1944. "tags": [
  1945. "AuthorityMenu"
  1946. ],
  1947. "summary": "获取指定角色menu",
  1948. "parameters": [
  1949. {
  1950. "description": "角色ID",
  1951. "name": "data",
  1952. "in": "body",
  1953. "required": true,
  1954. "schema": {
  1955. "$ref": "#/definitions/request.GetAuthorityId"
  1956. }
  1957. }
  1958. ],
  1959. "responses": {
  1960. "200": {
  1961. "description": "{\"success\":true,\"data\":{},\"msg\":\"获取成功\"}",
  1962. "schema": {
  1963. "type": "string"
  1964. }
  1965. }
  1966. }
  1967. }
  1968. },
  1969. "/menu/addBaseMenu": {
  1970. "post": {
  1971. "security": [
  1972. {
  1973. "ApiKeyAuth": []
  1974. }
  1975. ],
  1976. "consumes": [
  1977. "application/json"
  1978. ],
  1979. "produces": [
  1980. "application/json"
  1981. ],
  1982. "tags": [
  1983. "Menu"
  1984. ],
  1985. "summary": "新增菜单",
  1986. "parameters": [
  1987. {
  1988. "description": "路由path, 父菜单ID, 路由name, 对应前端文件路径, 排序标记",
  1989. "name": "data",
  1990. "in": "body",
  1991. "required": true,
  1992. "schema": {
  1993. "$ref": "#/definitions/system.SysBaseMenu"
  1994. }
  1995. }
  1996. ],
  1997. "responses": {
  1998. "200": {
  1999. "description": "{\"success\":true,\"data\":{},\"msg\":\"添加成功\"}",
  2000. "schema": {
  2001. "type": "string"
  2002. }
  2003. }
  2004. }
  2005. }
  2006. },
  2007. "/menu/addMenuAuthority": {
  2008. "post": {
  2009. "security": [
  2010. {
  2011. "ApiKeyAuth": []
  2012. }
  2013. ],
  2014. "consumes": [
  2015. "application/json"
  2016. ],
  2017. "produces": [
  2018. "application/json"
  2019. ],
  2020. "tags": [
  2021. "AuthorityMenu"
  2022. ],
  2023. "summary": "增加menu和角色关联关系",
  2024. "parameters": [
  2025. {
  2026. "description": "角色ID",
  2027. "name": "data",
  2028. "in": "body",
  2029. "required": true,
  2030. "schema": {
  2031. "$ref": "#/definitions/request.AddMenuAuthorityInfo"
  2032. }
  2033. }
  2034. ],
  2035. "responses": {
  2036. "200": {
  2037. "description": "{\"success\":true,\"data\":{},\"msg\":\"添加成功\"}",
  2038. "schema": {
  2039. "type": "string"
  2040. }
  2041. }
  2042. }
  2043. }
  2044. },
  2045. "/menu/deleteBaseMenu": {
  2046. "post": {
  2047. "security": [
  2048. {
  2049. "ApiKeyAuth": []
  2050. }
  2051. ],
  2052. "consumes": [
  2053. "application/json"
  2054. ],
  2055. "produces": [
  2056. "application/json"
  2057. ],
  2058. "tags": [
  2059. "Menu"
  2060. ],
  2061. "summary": "删除菜单",
  2062. "parameters": [
  2063. {
  2064. "description": "菜单id",
  2065. "name": "data",
  2066. "in": "body",
  2067. "required": true,
  2068. "schema": {
  2069. "$ref": "#/definitions/request.GetById"
  2070. }
  2071. }
  2072. ],
  2073. "responses": {
  2074. "200": {
  2075. "description": "{\"success\":true,\"data\":{},\"msg\":\"删除成功\"}",
  2076. "schema": {
  2077. "type": "string"
  2078. }
  2079. }
  2080. }
  2081. }
  2082. },
  2083. "/menu/getBaseMenuById": {
  2084. "post": {
  2085. "security": [
  2086. {
  2087. "ApiKeyAuth": []
  2088. }
  2089. ],
  2090. "consumes": [
  2091. "application/json"
  2092. ],
  2093. "produces": [
  2094. "application/json"
  2095. ],
  2096. "tags": [
  2097. "Menu"
  2098. ],
  2099. "summary": "根据id获取菜单",
  2100. "parameters": [
  2101. {
  2102. "description": "菜单id",
  2103. "name": "data",
  2104. "in": "body",
  2105. "required": true,
  2106. "schema": {
  2107. "$ref": "#/definitions/request.GetById"
  2108. }
  2109. }
  2110. ],
  2111. "responses": {
  2112. "200": {
  2113. "description": "{\"success\":true,\"data\":{},\"msg\":\"获取成功\"}",
  2114. "schema": {
  2115. "type": "string"
  2116. }
  2117. }
  2118. }
  2119. }
  2120. },
  2121. "/menu/getBaseMenuTree": {
  2122. "post": {
  2123. "security": [
  2124. {
  2125. "ApiKeyAuth": []
  2126. }
  2127. ],
  2128. "produces": [
  2129. "application/json"
  2130. ],
  2131. "tags": [
  2132. "AuthorityMenu"
  2133. ],
  2134. "summary": "获取用户动态路由",
  2135. "parameters": [
  2136. {
  2137. "description": "空",
  2138. "name": "data",
  2139. "in": "body",
  2140. "required": true,
  2141. "schema": {
  2142. "$ref": "#/definitions/request.Empty"
  2143. }
  2144. }
  2145. ],
  2146. "responses": {
  2147. "200": {
  2148. "description": "{\"success\":true,\"data\":{},\"msg\":\"获取成功\"}",
  2149. "schema": {
  2150. "type": "string"
  2151. }
  2152. }
  2153. }
  2154. }
  2155. },
  2156. "/menu/getMenu": {
  2157. "post": {
  2158. "security": [
  2159. {
  2160. "ApiKeyAuth": []
  2161. }
  2162. ],
  2163. "produces": [
  2164. "application/json"
  2165. ],
  2166. "tags": [
  2167. "AuthorityMenu"
  2168. ],
  2169. "summary": "获取用户动态路由",
  2170. "parameters": [
  2171. {
  2172. "description": "空",
  2173. "name": "data",
  2174. "in": "body",
  2175. "required": true,
  2176. "schema": {
  2177. "$ref": "#/definitions/request.Empty"
  2178. }
  2179. }
  2180. ],
  2181. "responses": {
  2182. "200": {
  2183. "description": "{\"success\":true,\"data\":{},\"msg\":\"获取成功\"}",
  2184. "schema": {
  2185. "type": "string"
  2186. }
  2187. }
  2188. }
  2189. }
  2190. },
  2191. "/menu/getMenuList": {
  2192. "post": {
  2193. "security": [
  2194. {
  2195. "ApiKeyAuth": []
  2196. }
  2197. ],
  2198. "consumes": [
  2199. "application/json"
  2200. ],
  2201. "produces": [
  2202. "application/json"
  2203. ],
  2204. "tags": [
  2205. "Menu"
  2206. ],
  2207. "summary": "分页获取基础menu列表",
  2208. "parameters": [
  2209. {
  2210. "description": "页码, 每页大小",
  2211. "name": "data",
  2212. "in": "body",
  2213. "required": true,
  2214. "schema": {
  2215. "$ref": "#/definitions/request.PageInfo"
  2216. }
  2217. }
  2218. ],
  2219. "responses": {
  2220. "200": {
  2221. "description": "{\"success\":true,\"data\":{},\"msg\":\"获取成功\"}",
  2222. "schema": {
  2223. "type": "string"
  2224. }
  2225. }
  2226. }
  2227. }
  2228. },
  2229. "/menu/updateBaseMenu": {
  2230. "post": {
  2231. "security": [
  2232. {
  2233. "ApiKeyAuth": []
  2234. }
  2235. ],
  2236. "consumes": [
  2237. "application/json"
  2238. ],
  2239. "produces": [
  2240. "application/json"
  2241. ],
  2242. "tags": [
  2243. "Menu"
  2244. ],
  2245. "summary": "更新菜单",
  2246. "parameters": [
  2247. {
  2248. "description": "路由path, 父菜单ID, 路由name, 对应前端文件路径, 排序标记",
  2249. "name": "data",
  2250. "in": "body",
  2251. "required": true,
  2252. "schema": {
  2253. "$ref": "#/definitions/system.SysBaseMenu"
  2254. }
  2255. }
  2256. ],
  2257. "responses": {
  2258. "200": {
  2259. "description": "{\"success\":true,\"data\":{},\"msg\":\"更新成功\"}",
  2260. "schema": {
  2261. "type": "string"
  2262. }
  2263. }
  2264. }
  2265. }
  2266. },
  2267. "/sysDictionary/createSysDictionary": {
  2268. "post": {
  2269. "security": [
  2270. {
  2271. "ApiKeyAuth": []
  2272. }
  2273. ],
  2274. "consumes": [
  2275. "application/json"
  2276. ],
  2277. "produces": [
  2278. "application/json"
  2279. ],
  2280. "tags": [
  2281. "SysDictionary"
  2282. ],
  2283. "summary": "创建SysDictionary",
  2284. "parameters": [
  2285. {
  2286. "description": "SysDictionary模型",
  2287. "name": "data",
  2288. "in": "body",
  2289. "required": true,
  2290. "schema": {
  2291. "$ref": "#/definitions/system.SysDictionary"
  2292. }
  2293. }
  2294. ],
  2295. "responses": {
  2296. "200": {
  2297. "description": "{\"success\":true,\"data\":{},\"msg\":\"创建成功\"}",
  2298. "schema": {
  2299. "type": "string"
  2300. }
  2301. }
  2302. }
  2303. }
  2304. },
  2305. "/sysDictionary/deleteSysDictionary": {
  2306. "delete": {
  2307. "security": [
  2308. {
  2309. "ApiKeyAuth": []
  2310. }
  2311. ],
  2312. "consumes": [
  2313. "application/json"
  2314. ],
  2315. "produces": [
  2316. "application/json"
  2317. ],
  2318. "tags": [
  2319. "SysDictionary"
  2320. ],
  2321. "summary": "删除SysDictionary",
  2322. "parameters": [
  2323. {
  2324. "description": "SysDictionary模型",
  2325. "name": "data",
  2326. "in": "body",
  2327. "required": true,
  2328. "schema": {
  2329. "$ref": "#/definitions/system.SysDictionary"
  2330. }
  2331. }
  2332. ],
  2333. "responses": {
  2334. "200": {
  2335. "description": "{\"success\":true,\"data\":{},\"msg\":\"删除成功\"}",
  2336. "schema": {
  2337. "type": "string"
  2338. }
  2339. }
  2340. }
  2341. }
  2342. },
  2343. "/sysDictionary/findSysDictionary": {
  2344. "get": {
  2345. "security": [
  2346. {
  2347. "ApiKeyAuth": []
  2348. }
  2349. ],
  2350. "consumes": [
  2351. "application/json"
  2352. ],
  2353. "produces": [
  2354. "application/json"
  2355. ],
  2356. "tags": [
  2357. "SysDictionary"
  2358. ],
  2359. "summary": "用id查询SysDictionary",
  2360. "parameters": [
  2361. {
  2362. "type": "string",
  2363. "description": "创建时间",
  2364. "name": "createdAt",
  2365. "in": "query"
  2366. },
  2367. {
  2368. "type": "string",
  2369. "description": "描述",
  2370. "name": "desc",
  2371. "in": "query"
  2372. },
  2373. {
  2374. "type": "integer",
  2375. "description": "主键ID",
  2376. "name": "id",
  2377. "in": "query"
  2378. },
  2379. {
  2380. "type": "string",
  2381. "description": "字典名(中)",
  2382. "name": "name",
  2383. "in": "query"
  2384. },
  2385. {
  2386. "type": "boolean",
  2387. "description": "状态",
  2388. "name": "status",
  2389. "in": "query"
  2390. },
  2391. {
  2392. "type": "string",
  2393. "description": "字典名(英)",
  2394. "name": "type",
  2395. "in": "query"
  2396. },
  2397. {
  2398. "type": "string",
  2399. "description": "更新时间",
  2400. "name": "updatedAt",
  2401. "in": "query"
  2402. }
  2403. ],
  2404. "responses": {
  2405. "200": {
  2406. "description": "{\"success\":true,\"data\":{},\"msg\":\"查询成功\"}",
  2407. "schema": {
  2408. "type": "string"
  2409. }
  2410. }
  2411. }
  2412. }
  2413. },
  2414. "/sysDictionary/getSysDictionaryList": {
  2415. "get": {
  2416. "security": [
  2417. {
  2418. "ApiKeyAuth": []
  2419. }
  2420. ],
  2421. "consumes": [
  2422. "application/json"
  2423. ],
  2424. "produces": [
  2425. "application/json"
  2426. ],
  2427. "tags": [
  2428. "SysDictionary"
  2429. ],
  2430. "summary": "分页获取SysDictionary列表",
  2431. "parameters": [
  2432. {
  2433. "type": "string",
  2434. "description": "创建时间",
  2435. "name": "createdAt",
  2436. "in": "query"
  2437. },
  2438. {
  2439. "type": "string",
  2440. "description": "描述",
  2441. "name": "desc",
  2442. "in": "query"
  2443. },
  2444. {
  2445. "type": "integer",
  2446. "description": "主键ID",
  2447. "name": "id",
  2448. "in": "query"
  2449. },
  2450. {
  2451. "type": "string",
  2452. "description": "字典名(中)",
  2453. "name": "name",
  2454. "in": "query"
  2455. },
  2456. {
  2457. "type": "integer",
  2458. "description": "页码",
  2459. "name": "page",
  2460. "in": "query"
  2461. },
  2462. {
  2463. "type": "integer",
  2464. "description": "每页大小",
  2465. "name": "pageSize",
  2466. "in": "query"
  2467. },
  2468. {
  2469. "type": "boolean",
  2470. "description": "状态",
  2471. "name": "status",
  2472. "in": "query"
  2473. },
  2474. {
  2475. "type": "string",
  2476. "description": "字典名(英)",
  2477. "name": "type",
  2478. "in": "query"
  2479. },
  2480. {
  2481. "type": "string",
  2482. "description": "更新时间",
  2483. "name": "updatedAt",
  2484. "in": "query"
  2485. }
  2486. ],
  2487. "responses": {
  2488. "200": {
  2489. "description": "{\"success\":true,\"data\":{},\"msg\":\"获取成功\"}",
  2490. "schema": {
  2491. "type": "string"
  2492. }
  2493. }
  2494. }
  2495. }
  2496. },
  2497. "/sysDictionary/updateSysDictionary": {
  2498. "put": {
  2499. "security": [
  2500. {
  2501. "ApiKeyAuth": []
  2502. }
  2503. ],
  2504. "consumes": [
  2505. "application/json"
  2506. ],
  2507. "produces": [
  2508. "application/json"
  2509. ],
  2510. "tags": [
  2511. "SysDictionary"
  2512. ],
  2513. "summary": "更新SysDictionary",
  2514. "parameters": [
  2515. {
  2516. "description": "SysDictionary模型",
  2517. "name": "data",
  2518. "in": "body",
  2519. "required": true,
  2520. "schema": {
  2521. "$ref": "#/definitions/system.SysDictionary"
  2522. }
  2523. }
  2524. ],
  2525. "responses": {
  2526. "200": {
  2527. "description": "{\"success\":true,\"data\":{},\"msg\":\"更新成功\"}",
  2528. "schema": {
  2529. "type": "string"
  2530. }
  2531. }
  2532. }
  2533. }
  2534. },
  2535. "/sysDictionaryDetail/createSysDictionaryDetail": {
  2536. "post": {
  2537. "security": [
  2538. {
  2539. "ApiKeyAuth": []
  2540. }
  2541. ],
  2542. "consumes": [
  2543. "application/json"
  2544. ],
  2545. "produces": [
  2546. "application/json"
  2547. ],
  2548. "tags": [
  2549. "SysDictionaryDetail"
  2550. ],
  2551. "summary": "创建SysDictionaryDetail",
  2552. "parameters": [
  2553. {
  2554. "description": "SysDictionaryDetail模型",
  2555. "name": "data",
  2556. "in": "body",
  2557. "required": true,
  2558. "schema": {
  2559. "$ref": "#/definitions/system.SysDictionaryDetail"
  2560. }
  2561. }
  2562. ],
  2563. "responses": {
  2564. "200": {
  2565. "description": "{\"success\":true,\"data\":{},\"msg\":\"创建成功\"}",
  2566. "schema": {
  2567. "type": "string"
  2568. }
  2569. }
  2570. }
  2571. }
  2572. },
  2573. "/sysDictionaryDetail/deleteSysDictionaryDetail": {
  2574. "delete": {
  2575. "security": [
  2576. {
  2577. "ApiKeyAuth": []
  2578. }
  2579. ],
  2580. "consumes": [
  2581. "application/json"
  2582. ],
  2583. "produces": [
  2584. "application/json"
  2585. ],
  2586. "tags": [
  2587. "SysDictionaryDetail"
  2588. ],
  2589. "summary": "删除SysDictionaryDetail",
  2590. "parameters": [
  2591. {
  2592. "description": "SysDictionaryDetail模型",
  2593. "name": "data",
  2594. "in": "body",
  2595. "required": true,
  2596. "schema": {
  2597. "$ref": "#/definitions/system.SysDictionaryDetail"
  2598. }
  2599. }
  2600. ],
  2601. "responses": {
  2602. "200": {
  2603. "description": "{\"success\":true,\"data\":{},\"msg\":\"删除成功\"}",
  2604. "schema": {
  2605. "type": "string"
  2606. }
  2607. }
  2608. }
  2609. }
  2610. },
  2611. "/sysDictionaryDetail/findSysDictionaryDetail": {
  2612. "get": {
  2613. "security": [
  2614. {
  2615. "ApiKeyAuth": []
  2616. }
  2617. ],
  2618. "consumes": [
  2619. "application/json"
  2620. ],
  2621. "produces": [
  2622. "application/json"
  2623. ],
  2624. "tags": [
  2625. "SysDictionaryDetail"
  2626. ],
  2627. "summary": "用id查询SysDictionaryDetail",
  2628. "parameters": [
  2629. {
  2630. "type": "string",
  2631. "description": "创建时间",
  2632. "name": "createdAt",
  2633. "in": "query"
  2634. },
  2635. {
  2636. "type": "integer",
  2637. "description": "主键ID",
  2638. "name": "id",
  2639. "in": "query"
  2640. },
  2641. {
  2642. "type": "string",
  2643. "description": "展示值",
  2644. "name": "label",
  2645. "in": "query"
  2646. },
  2647. {
  2648. "type": "integer",
  2649. "description": "排序标记",
  2650. "name": "sort",
  2651. "in": "query"
  2652. },
  2653. {
  2654. "type": "boolean",
  2655. "description": "启用状态",
  2656. "name": "status",
  2657. "in": "query"
  2658. },
  2659. {
  2660. "type": "integer",
  2661. "description": "关联标记",
  2662. "name": "sysDictionaryID",
  2663. "in": "query"
  2664. },
  2665. {
  2666. "type": "string",
  2667. "description": "更新时间",
  2668. "name": "updatedAt",
  2669. "in": "query"
  2670. },
  2671. {
  2672. "type": "integer",
  2673. "description": "字典值",
  2674. "name": "value",
  2675. "in": "query"
  2676. }
  2677. ],
  2678. "responses": {
  2679. "200": {
  2680. "description": "{\"success\":true,\"data\":{},\"msg\":\"查询成功\"}",
  2681. "schema": {
  2682. "type": "string"
  2683. }
  2684. }
  2685. }
  2686. }
  2687. },
  2688. "/sysDictionaryDetail/getSysDictionaryDetailList": {
  2689. "get": {
  2690. "security": [
  2691. {
  2692. "ApiKeyAuth": []
  2693. }
  2694. ],
  2695. "consumes": [
  2696. "application/json"
  2697. ],
  2698. "produces": [
  2699. "application/json"
  2700. ],
  2701. "tags": [
  2702. "SysDictionaryDetail"
  2703. ],
  2704. "summary": "分页获取SysDictionaryDetail列表",
  2705. "parameters": [
  2706. {
  2707. "type": "string",
  2708. "description": "创建时间",
  2709. "name": "createdAt",
  2710. "in": "query"
  2711. },
  2712. {
  2713. "type": "integer",
  2714. "description": "主键ID",
  2715. "name": "id",
  2716. "in": "query"
  2717. },
  2718. {
  2719. "type": "string",
  2720. "description": "展示值",
  2721. "name": "label",
  2722. "in": "query"
  2723. },
  2724. {
  2725. "type": "integer",
  2726. "description": "页码",
  2727. "name": "page",
  2728. "in": "query"
  2729. },
  2730. {
  2731. "type": "integer",
  2732. "description": "每页大小",
  2733. "name": "pageSize",
  2734. "in": "query"
  2735. },
  2736. {
  2737. "type": "integer",
  2738. "description": "排序标记",
  2739. "name": "sort",
  2740. "in": "query"
  2741. },
  2742. {
  2743. "type": "boolean",
  2744. "description": "启用状态",
  2745. "name": "status",
  2746. "in": "query"
  2747. },
  2748. {
  2749. "type": "integer",
  2750. "description": "关联标记",
  2751. "name": "sysDictionaryID",
  2752. "in": "query"
  2753. },
  2754. {
  2755. "type": "string",
  2756. "description": "更新时间",
  2757. "name": "updatedAt",
  2758. "in": "query"
  2759. },
  2760. {
  2761. "type": "integer",
  2762. "description": "字典值",
  2763. "name": "value",
  2764. "in": "query"
  2765. }
  2766. ],
  2767. "responses": {
  2768. "200": {
  2769. "description": "{\"success\":true,\"data\":{},\"msg\":\"获取成功\"}",
  2770. "schema": {
  2771. "type": "string"
  2772. }
  2773. }
  2774. }
  2775. }
  2776. },
  2777. "/sysDictionaryDetail/updateSysDictionaryDetail": {
  2778. "put": {
  2779. "security": [
  2780. {
  2781. "ApiKeyAuth": []
  2782. }
  2783. ],
  2784. "consumes": [
  2785. "application/json"
  2786. ],
  2787. "produces": [
  2788. "application/json"
  2789. ],
  2790. "tags": [
  2791. "SysDictionaryDetail"
  2792. ],
  2793. "summary": "更新SysDictionaryDetail",
  2794. "parameters": [
  2795. {
  2796. "description": "更新SysDictionaryDetail",
  2797. "name": "data",
  2798. "in": "body",
  2799. "required": true,
  2800. "schema": {
  2801. "$ref": "#/definitions/system.SysDictionaryDetail"
  2802. }
  2803. }
  2804. ],
  2805. "responses": {
  2806. "200": {
  2807. "description": "{\"success\":true,\"data\":{},\"msg\":\"更新成功\"}",
  2808. "schema": {
  2809. "type": "string"
  2810. }
  2811. }
  2812. }
  2813. }
  2814. },
  2815. "/sysOperationRecord/createSysOperationRecord": {
  2816. "post": {
  2817. "security": [
  2818. {
  2819. "ApiKeyAuth": []
  2820. }
  2821. ],
  2822. "consumes": [
  2823. "application/json"
  2824. ],
  2825. "produces": [
  2826. "application/json"
  2827. ],
  2828. "tags": [
  2829. "SysOperationRecord"
  2830. ],
  2831. "summary": "创建SysOperationRecord",
  2832. "parameters": [
  2833. {
  2834. "description": "创建SysOperationRecord",
  2835. "name": "data",
  2836. "in": "body",
  2837. "required": true,
  2838. "schema": {
  2839. "$ref": "#/definitions/system.SysOperationRecord"
  2840. }
  2841. }
  2842. ],
  2843. "responses": {
  2844. "200": {
  2845. "description": "{\"success\":true,\"data\":{},\"msg\":\"获取成功\"}",
  2846. "schema": {
  2847. "type": "string"
  2848. }
  2849. }
  2850. }
  2851. }
  2852. },
  2853. "/sysOperationRecord/deleteSysOperationRecord": {
  2854. "delete": {
  2855. "security": [
  2856. {
  2857. "ApiKeyAuth": []
  2858. }
  2859. ],
  2860. "consumes": [
  2861. "application/json"
  2862. ],
  2863. "produces": [
  2864. "application/json"
  2865. ],
  2866. "tags": [
  2867. "SysOperationRecord"
  2868. ],
  2869. "summary": "删除SysOperationRecord",
  2870. "parameters": [
  2871. {
  2872. "description": "SysOperationRecord模型",
  2873. "name": "data",
  2874. "in": "body",
  2875. "required": true,
  2876. "schema": {
  2877. "$ref": "#/definitions/system.SysOperationRecord"
  2878. }
  2879. }
  2880. ],
  2881. "responses": {
  2882. "200": {
  2883. "description": "{\"success\":true,\"data\":{},\"msg\":\"删除成功\"}",
  2884. "schema": {
  2885. "type": "string"
  2886. }
  2887. }
  2888. }
  2889. }
  2890. },
  2891. "/sysOperationRecord/deleteSysOperationRecordByIds": {
  2892. "delete": {
  2893. "security": [
  2894. {
  2895. "ApiKeyAuth": []
  2896. }
  2897. ],
  2898. "consumes": [
  2899. "application/json"
  2900. ],
  2901. "produces": [
  2902. "application/json"
  2903. ],
  2904. "tags": [
  2905. "SysOperationRecord"
  2906. ],
  2907. "summary": "批量删除SysOperationRecord",
  2908. "parameters": [
  2909. {
  2910. "description": "批量删除SysOperationRecord",
  2911. "name": "data",
  2912. "in": "body",
  2913. "required": true,
  2914. "schema": {
  2915. "$ref": "#/definitions/request.IdsReq"
  2916. }
  2917. }
  2918. ],
  2919. "responses": {
  2920. "200": {
  2921. "description": "{\"success\":true,\"data\":{},\"msg\":\"批量删除成功\"}",
  2922. "schema": {
  2923. "type": "string"
  2924. }
  2925. }
  2926. }
  2927. }
  2928. },
  2929. "/sysOperationRecord/findSysOperationRecord": {
  2930. "get": {
  2931. "security": [
  2932. {
  2933. "ApiKeyAuth": []
  2934. }
  2935. ],
  2936. "consumes": [
  2937. "application/json"
  2938. ],
  2939. "produces": [
  2940. "application/json"
  2941. ],
  2942. "tags": [
  2943. "SysOperationRecord"
  2944. ],
  2945. "summary": "用id查询SysOperationRecord",
  2946. "parameters": [
  2947. {
  2948. "type": "string",
  2949. "description": "代理",
  2950. "name": "agent",
  2951. "in": "query"
  2952. },
  2953. {
  2954. "type": "string",
  2955. "description": "请求Body",
  2956. "name": "body",
  2957. "in": "query"
  2958. },
  2959. {
  2960. "type": "string",
  2961. "description": "创建时间",
  2962. "name": "createdAt",
  2963. "in": "query"
  2964. },
  2965. {
  2966. "type": "string",
  2967. "description": "错误信息",
  2968. "name": "error_message",
  2969. "in": "query"
  2970. },
  2971. {
  2972. "type": "integer",
  2973. "description": "主键ID",
  2974. "name": "id",
  2975. "in": "query"
  2976. },
  2977. {
  2978. "type": "string",
  2979. "description": "请求ip",
  2980. "name": "ip",
  2981. "in": "query"
  2982. },
  2983. {
  2984. "type": "string",
  2985. "description": "延迟",
  2986. "name": "latency",
  2987. "in": "query"
  2988. },
  2989. {
  2990. "type": "string",
  2991. "description": "请求方法",
  2992. "name": "method",
  2993. "in": "query"
  2994. },
  2995. {
  2996. "type": "string",
  2997. "description": "请求路径",
  2998. "name": "path",
  2999. "in": "query"
  3000. },
  3001. {
  3002. "type": "string",
  3003. "description": "响应Body",
  3004. "name": "resp",
  3005. "in": "query"
  3006. },
  3007. {
  3008. "type": "integer",
  3009. "description": "请求状态",
  3010. "name": "status",
  3011. "in": "query"
  3012. },
  3013. {
  3014. "type": "string",
  3015. "description": "更新时间",
  3016. "name": "updatedAt",
  3017. "in": "query"
  3018. },
  3019. {
  3020. "type": "integer",
  3021. "description": "用户id",
  3022. "name": "user_id",
  3023. "in": "query"
  3024. }
  3025. ],
  3026. "responses": {
  3027. "200": {
  3028. "description": "{\"success\":true,\"data\":{},\"msg\":\"查询成功\"}",
  3029. "schema": {
  3030. "type": "string"
  3031. }
  3032. }
  3033. }
  3034. }
  3035. },
  3036. "/sysOperationRecord/getSysOperationRecordList": {
  3037. "get": {
  3038. "security": [
  3039. {
  3040. "ApiKeyAuth": []
  3041. }
  3042. ],
  3043. "consumes": [
  3044. "application/json"
  3045. ],
  3046. "produces": [
  3047. "application/json"
  3048. ],
  3049. "tags": [
  3050. "SysOperationRecord"
  3051. ],
  3052. "summary": "分页获取SysOperationRecord列表",
  3053. "parameters": [
  3054. {
  3055. "type": "string",
  3056. "description": "代理",
  3057. "name": "agent",
  3058. "in": "query"
  3059. },
  3060. {
  3061. "type": "string",
  3062. "description": "请求Body",
  3063. "name": "body",
  3064. "in": "query"
  3065. },
  3066. {
  3067. "type": "string",
  3068. "description": "创建时间",
  3069. "name": "createdAt",
  3070. "in": "query"
  3071. },
  3072. {
  3073. "type": "string",
  3074. "description": "错误信息",
  3075. "name": "error_message",
  3076. "in": "query"
  3077. },
  3078. {
  3079. "type": "integer",
  3080. "description": "主键ID",
  3081. "name": "id",
  3082. "in": "query"
  3083. },
  3084. {
  3085. "type": "string",
  3086. "description": "请求ip",
  3087. "name": "ip",
  3088. "in": "query"
  3089. },
  3090. {
  3091. "type": "string",
  3092. "description": "延迟",
  3093. "name": "latency",
  3094. "in": "query"
  3095. },
  3096. {
  3097. "type": "string",
  3098. "description": "请求方法",
  3099. "name": "method",
  3100. "in": "query"
  3101. },
  3102. {
  3103. "type": "integer",
  3104. "description": "页码",
  3105. "name": "page",
  3106. "in": "query"
  3107. },
  3108. {
  3109. "type": "integer",
  3110. "description": "每页大小",
  3111. "name": "pageSize",
  3112. "in": "query"
  3113. },
  3114. {
  3115. "type": "string",
  3116. "description": "请求路径",
  3117. "name": "path",
  3118. "in": "query"
  3119. },
  3120. {
  3121. "type": "string",
  3122. "description": "响应Body",
  3123. "name": "resp",
  3124. "in": "query"
  3125. },
  3126. {
  3127. "type": "integer",
  3128. "description": "请求状态",
  3129. "name": "status",
  3130. "in": "query"
  3131. },
  3132. {
  3133. "type": "string",
  3134. "description": "更新时间",
  3135. "name": "updatedAt",
  3136. "in": "query"
  3137. },
  3138. {
  3139. "type": "integer",
  3140. "description": "用户id",
  3141. "name": "user_id",
  3142. "in": "query"
  3143. }
  3144. ],
  3145. "responses": {
  3146. "200": {
  3147. "description": "{\"success\":true,\"data\":{},\"msg\":\"获取成功\"}",
  3148. "schema": {
  3149. "type": "string"
  3150. }
  3151. }
  3152. }
  3153. }
  3154. },
  3155. "/system/getServerInfo": {
  3156. "post": {
  3157. "security": [
  3158. {
  3159. "ApiKeyAuth": []
  3160. }
  3161. ],
  3162. "produces": [
  3163. "application/json"
  3164. ],
  3165. "tags": [
  3166. "System"
  3167. ],
  3168. "summary": "获取服务器信息",
  3169. "responses": {
  3170. "200": {
  3171. "description": "{\"success\":true,\"data\":{},\"msg\":\"获取成功\"}",
  3172. "schema": {
  3173. "type": "string"
  3174. }
  3175. }
  3176. }
  3177. }
  3178. },
  3179. "/system/getSystemConfig": {
  3180. "post": {
  3181. "security": [
  3182. {
  3183. "ApiKeyAuth": []
  3184. }
  3185. ],
  3186. "produces": [
  3187. "application/json"
  3188. ],
  3189. "tags": [
  3190. "System"
  3191. ],
  3192. "summary": "获取配置文件内容",
  3193. "responses": {
  3194. "200": {
  3195. "description": "{\"success\":true,\"data\":{},\"msg\":\"获取成功\"}",
  3196. "schema": {
  3197. "type": "string"
  3198. }
  3199. }
  3200. }
  3201. }
  3202. },
  3203. "/system/reloadSystem": {
  3204. "post": {
  3205. "security": [
  3206. {
  3207. "ApiKeyAuth": []
  3208. }
  3209. ],
  3210. "produces": [
  3211. "application/json"
  3212. ],
  3213. "tags": [
  3214. "System"
  3215. ],
  3216. "summary": "重启系统",
  3217. "responses": {
  3218. "200": {
  3219. "description": "{\"code\":0,\"data\":{},\"msg\":\"重启系统成功\"}",
  3220. "schema": {
  3221. "type": "string"
  3222. }
  3223. }
  3224. }
  3225. }
  3226. },
  3227. "/system/setSystemConfig": {
  3228. "post": {
  3229. "security": [
  3230. {
  3231. "ApiKeyAuth": []
  3232. }
  3233. ],
  3234. "produces": [
  3235. "application/json"
  3236. ],
  3237. "tags": [
  3238. "System"
  3239. ],
  3240. "summary": "设置配置文件内容",
  3241. "parameters": [
  3242. {
  3243. "description": "设置配置文件内容",
  3244. "name": "data",
  3245. "in": "body",
  3246. "required": true,
  3247. "schema": {
  3248. "$ref": "#/definitions/system.System"
  3249. }
  3250. }
  3251. ],
  3252. "responses": {
  3253. "200": {
  3254. "description": "{\"success\":true,\"data\":{},\"msg\":\"设置成功\"}",
  3255. "schema": {
  3256. "type": "string"
  3257. }
  3258. }
  3259. }
  3260. }
  3261. },
  3262. "/user/changePassword": {
  3263. "post": {
  3264. "security": [
  3265. {
  3266. "ApiKeyAuth": []
  3267. }
  3268. ],
  3269. "produces": [
  3270. "application/json"
  3271. ],
  3272. "tags": [
  3273. "SysUser"
  3274. ],
  3275. "summary": "用户修改密码",
  3276. "parameters": [
  3277. {
  3278. "description": "用户名, 原密码, 新密码",
  3279. "name": "data",
  3280. "in": "body",
  3281. "required": true,
  3282. "schema": {
  3283. "$ref": "#/definitions/request.ChangePasswordStruct"
  3284. }
  3285. }
  3286. ],
  3287. "responses": {
  3288. "200": {
  3289. "description": "{\"success\":true,\"data\":{},\"msg\":\"修改成功\"}",
  3290. "schema": {
  3291. "type": "string"
  3292. }
  3293. }
  3294. }
  3295. }
  3296. },
  3297. "/user/deleteUser": {
  3298. "delete": {
  3299. "security": [
  3300. {
  3301. "ApiKeyAuth": []
  3302. }
  3303. ],
  3304. "consumes": [
  3305. "application/json"
  3306. ],
  3307. "produces": [
  3308. "application/json"
  3309. ],
  3310. "tags": [
  3311. "SysUser"
  3312. ],
  3313. "summary": "删除用户",
  3314. "parameters": [
  3315. {
  3316. "description": "用户ID",
  3317. "name": "data",
  3318. "in": "body",
  3319. "required": true,
  3320. "schema": {
  3321. "$ref": "#/definitions/request.GetById"
  3322. }
  3323. }
  3324. ],
  3325. "responses": {
  3326. "200": {
  3327. "description": "{\"success\":true,\"data\":{},\"msg\":\"删除成功\"}",
  3328. "schema": {
  3329. "type": "string"
  3330. }
  3331. }
  3332. }
  3333. }
  3334. },
  3335. "/user/getUserInfo": {
  3336. "get": {
  3337. "security": [
  3338. {
  3339. "ApiKeyAuth": []
  3340. }
  3341. ],
  3342. "consumes": [
  3343. "application/json"
  3344. ],
  3345. "produces": [
  3346. "application/json"
  3347. ],
  3348. "tags": [
  3349. "SysUser"
  3350. ],
  3351. "summary": "获取用户信息",
  3352. "responses": {
  3353. "200": {
  3354. "description": "{\"success\":true,\"data\":{},\"msg\":\"获取成功\"}",
  3355. "schema": {
  3356. "type": "string"
  3357. }
  3358. }
  3359. }
  3360. }
  3361. },
  3362. "/user/getUserList": {
  3363. "post": {
  3364. "security": [
  3365. {
  3366. "ApiKeyAuth": []
  3367. }
  3368. ],
  3369. "consumes": [
  3370. "application/json"
  3371. ],
  3372. "produces": [
  3373. "application/json"
  3374. ],
  3375. "tags": [
  3376. "SysUser"
  3377. ],
  3378. "summary": "分页获取用户列表",
  3379. "parameters": [
  3380. {
  3381. "description": "页码, 每页大小",
  3382. "name": "data",
  3383. "in": "body",
  3384. "required": true,
  3385. "schema": {
  3386. "$ref": "#/definitions/request.PageInfo"
  3387. }
  3388. }
  3389. ],
  3390. "responses": {
  3391. "200": {
  3392. "description": "{\"success\":true,\"data\":{},\"msg\":\"获取成功\"}",
  3393. "schema": {
  3394. "type": "string"
  3395. }
  3396. }
  3397. }
  3398. }
  3399. },
  3400. "/user/register": {
  3401. "post": {
  3402. "produces": [
  3403. "application/json"
  3404. ],
  3405. "tags": [
  3406. "SysUser"
  3407. ],
  3408. "summary": "用户注册账号",
  3409. "parameters": [
  3410. {
  3411. "description": "用户名, 昵称, 密码, 角色ID",
  3412. "name": "data",
  3413. "in": "body",
  3414. "required": true,
  3415. "schema": {
  3416. "$ref": "#/definitions/request.Register"
  3417. }
  3418. }
  3419. ],
  3420. "responses": {
  3421. "200": {
  3422. "description": "{\"success\":true,\"data\":{},\"msg\":\"注册成功\"}",
  3423. "schema": {
  3424. "type": "string"
  3425. }
  3426. }
  3427. }
  3428. }
  3429. },
  3430. "/user/setUserAuthorities": {
  3431. "post": {
  3432. "security": [
  3433. {
  3434. "ApiKeyAuth": []
  3435. }
  3436. ],
  3437. "consumes": [
  3438. "application/json"
  3439. ],
  3440. "produces": [
  3441. "application/json"
  3442. ],
  3443. "tags": [
  3444. "SysUser"
  3445. ],
  3446. "summary": "设置用户权限",
  3447. "parameters": [
  3448. {
  3449. "description": "用户UUID, 角色ID",
  3450. "name": "data",
  3451. "in": "body",
  3452. "required": true,
  3453. "schema": {
  3454. "$ref": "#/definitions/request.SetUserAuthorities"
  3455. }
  3456. }
  3457. ],
  3458. "responses": {
  3459. "200": {
  3460. "description": "{\"success\":true,\"data\":{},\"msg\":\"修改成功\"}",
  3461. "schema": {
  3462. "type": "string"
  3463. }
  3464. }
  3465. }
  3466. }
  3467. },
  3468. "/user/setUserAuthority": {
  3469. "post": {
  3470. "security": [
  3471. {
  3472. "ApiKeyAuth": []
  3473. }
  3474. ],
  3475. "consumes": [
  3476. "application/json"
  3477. ],
  3478. "produces": [
  3479. "application/json"
  3480. ],
  3481. "tags": [
  3482. "SysUser"
  3483. ],
  3484. "summary": "更改用户权限",
  3485. "parameters": [
  3486. {
  3487. "description": "用户UUID, 角色ID",
  3488. "name": "data",
  3489. "in": "body",
  3490. "required": true,
  3491. "schema": {
  3492. "$ref": "#/definitions/request.SetUserAuth"
  3493. }
  3494. }
  3495. ],
  3496. "responses": {
  3497. "200": {
  3498. "description": "{\"success\":true,\"data\":{},\"msg\":\"修改成功\"}",
  3499. "schema": {
  3500. "type": "string"
  3501. }
  3502. }
  3503. }
  3504. }
  3505. },
  3506. "/user/setUserInfo": {
  3507. "put": {
  3508. "security": [
  3509. {
  3510. "ApiKeyAuth": []
  3511. }
  3512. ],
  3513. "consumes": [
  3514. "application/json"
  3515. ],
  3516. "produces": [
  3517. "application/json"
  3518. ],
  3519. "tags": [
  3520. "SysUser"
  3521. ],
  3522. "summary": "设置用户信息",
  3523. "parameters": [
  3524. {
  3525. "description": "ID, 用户名, 昵称, 头像链接",
  3526. "name": "data",
  3527. "in": "body",
  3528. "required": true,
  3529. "schema": {
  3530. "$ref": "#/definitions/system.SysUser"
  3531. }
  3532. }
  3533. ],
  3534. "responses": {
  3535. "200": {
  3536. "description": "{\"success\":true,\"data\":{},\"msg\":\"设置成功\"}",
  3537. "schema": {
  3538. "type": "string"
  3539. }
  3540. }
  3541. }
  3542. }
  3543. }
  3544. },
  3545. "definitions": {
  3546. "autocode.AutoCodeExample": {
  3547. "type": "object",
  3548. "properties": {
  3549. "autoCodeExampleField": {
  3550. "description": "展示值",
  3551. "type": "string"
  3552. },
  3553. "createdAt": {
  3554. "description": "创建时间",
  3555. "type": "string"
  3556. },
  3557. "id": {
  3558. "description": "主键ID",
  3559. "type": "integer"
  3560. },
  3561. "updatedAt": {
  3562. "description": "更新时间",
  3563. "type": "string"
  3564. }
  3565. }
  3566. },
  3567. "config.AliyunOSS": {
  3568. "type": "object",
  3569. "properties": {
  3570. "accessKeyId": {
  3571. "type": "string"
  3572. },
  3573. "accessKeySecret": {
  3574. "type": "string"
  3575. },
  3576. "basePath": {
  3577. "type": "string"
  3578. },
  3579. "bucketName": {
  3580. "type": "string"
  3581. },
  3582. "bucketUrl": {
  3583. "type": "string"
  3584. },
  3585. "endpoint": {
  3586. "type": "string"
  3587. }
  3588. }
  3589. },
  3590. "config.Autocode": {
  3591. "type": "object",
  3592. "properties": {
  3593. "root": {
  3594. "type": "string"
  3595. },
  3596. "server": {
  3597. "type": "string"
  3598. },
  3599. "serverApi": {
  3600. "type": "string"
  3601. },
  3602. "serverInitialize": {
  3603. "type": "string"
  3604. },
  3605. "serverModel": {
  3606. "type": "string"
  3607. },
  3608. "serverRequest": {
  3609. "type": "string"
  3610. },
  3611. "serverRouter": {
  3612. "type": "string"
  3613. },
  3614. "serverService": {
  3615. "type": "string"
  3616. },
  3617. "transferRestart": {
  3618. "type": "boolean"
  3619. },
  3620. "web": {
  3621. "type": "string"
  3622. },
  3623. "webApi": {
  3624. "type": "string"
  3625. },
  3626. "webFlow": {
  3627. "type": "string"
  3628. },
  3629. "webForm": {
  3630. "type": "string"
  3631. },
  3632. "webTable": {
  3633. "type": "string"
  3634. }
  3635. }
  3636. },
  3637. "config.Captcha": {
  3638. "type": "object",
  3639. "properties": {
  3640. "imgHeight": {
  3641. "description": "验证码高度",
  3642. "type": "integer"
  3643. },
  3644. "imgWidth": {
  3645. "description": "验证码宽度",
  3646. "type": "integer"
  3647. },
  3648. "keyLong": {
  3649. "description": "验证码长度",
  3650. "type": "integer"
  3651. }
  3652. }
  3653. },
  3654. "config.Casbin": {
  3655. "type": "object",
  3656. "properties": {
  3657. "modelPath": {
  3658. "description": "存放casbin模型的相对路径",
  3659. "type": "string"
  3660. }
  3661. }
  3662. },
  3663. "config.Detail": {
  3664. "type": "object",
  3665. "properties": {
  3666. "compareField": {
  3667. "description": "需要比较时间的字段",
  3668. "type": "string"
  3669. },
  3670. "interval": {
  3671. "description": "时间间隔",
  3672. "type": "string"
  3673. },
  3674. "tableName": {
  3675. "description": "需要清理的表名",
  3676. "type": "string"
  3677. }
  3678. }
  3679. },
  3680. "config.Email": {
  3681. "type": "object",
  3682. "properties": {
  3683. "from": {
  3684. "description": "收件人",
  3685. "type": "string"
  3686. },
  3687. "host": {
  3688. "description": "服务器地址",
  3689. "type": "string"
  3690. },
  3691. "isSSL": {
  3692. "description": "是否SSL",
  3693. "type": "boolean"
  3694. },
  3695. "nickname": {
  3696. "description": "昵称",
  3697. "type": "string"
  3698. },
  3699. "port": {
  3700. "description": "端口",
  3701. "type": "integer"
  3702. },
  3703. "secret": {
  3704. "description": "密钥",
  3705. "type": "string"
  3706. },
  3707. "to": {
  3708. "description": "收件人:多个以英文逗号分隔",
  3709. "type": "string"
  3710. }
  3711. }
  3712. },
  3713. "config.Excel": {
  3714. "type": "object",
  3715. "properties": {
  3716. "dir": {
  3717. "type": "string"
  3718. }
  3719. }
  3720. },
  3721. "config.JWT": {
  3722. "type": "object",
  3723. "properties": {
  3724. "bufferTime": {
  3725. "description": "缓冲时间",
  3726. "type": "integer"
  3727. },
  3728. "expiresTime": {
  3729. "description": "过期时间",
  3730. "type": "integer"
  3731. },
  3732. "signingKey": {
  3733. "description": "jwt签名",
  3734. "type": "string"
  3735. }
  3736. }
  3737. },
  3738. "config.Local": {
  3739. "type": "object",
  3740. "properties": {
  3741. "path": {
  3742. "description": "本地文件路径",
  3743. "type": "string"
  3744. }
  3745. }
  3746. },
  3747. "config.Mysql": {
  3748. "type": "object",
  3749. "properties": {
  3750. "config": {
  3751. "description": "高级配置",
  3752. "type": "string"
  3753. },
  3754. "dbname": {
  3755. "description": "数据库名",
  3756. "type": "string"
  3757. },
  3758. "logMode": {
  3759. "description": "是否开启Gorm全局日志",
  3760. "type": "string"
  3761. },
  3762. "logZap": {
  3763. "description": "是否通过zap写入日志文件",
  3764. "type": "boolean"
  3765. },
  3766. "maxIdleConns": {
  3767. "description": "空闲中的最大连接数",
  3768. "type": "integer"
  3769. },
  3770. "maxOpenConns": {
  3771. "description": "打开到数据库的最大连接数",
  3772. "type": "integer"
  3773. },
  3774. "password": {
  3775. "description": "数据库密码",
  3776. "type": "string"
  3777. },
  3778. "path": {
  3779. "description": "服务器地址:端口",
  3780. "type": "string"
  3781. },
  3782. "username": {
  3783. "description": "数据库用户名",
  3784. "type": "string"
  3785. }
  3786. }
  3787. },
  3788. "config.Qiniu": {
  3789. "type": "object",
  3790. "properties": {
  3791. "accessKey": {
  3792. "description": "秘钥AK",
  3793. "type": "string"
  3794. },
  3795. "bucket": {
  3796. "description": "空间名称",
  3797. "type": "string"
  3798. },
  3799. "imgPath": {
  3800. "description": "CDN加速域名",
  3801. "type": "string"
  3802. },
  3803. "secretKey": {
  3804. "description": "秘钥SK",
  3805. "type": "string"
  3806. },
  3807. "useCdnDomains": {
  3808. "description": "上传是否使用CDN上传加速",
  3809. "type": "boolean"
  3810. },
  3811. "useHttps": {
  3812. "description": "是否使用https",
  3813. "type": "boolean"
  3814. },
  3815. "zone": {
  3816. "description": "存储区域",
  3817. "type": "string"
  3818. }
  3819. }
  3820. },
  3821. "config.Redis": {
  3822. "type": "object",
  3823. "properties": {
  3824. "addr": {
  3825. "description": "服务器地址:端口",
  3826. "type": "string"
  3827. },
  3828. "db": {
  3829. "description": "redis的哪个数据库",
  3830. "type": "integer"
  3831. },
  3832. "password": {
  3833. "description": "密码",
  3834. "type": "string"
  3835. }
  3836. }
  3837. },
  3838. "config.Server": {
  3839. "type": "object",
  3840. "properties": {
  3841. "aliyunOSS": {
  3842. "$ref": "#/definitions/config.AliyunOSS"
  3843. },
  3844. "autoCode": {
  3845. "description": "auto",
  3846. "$ref": "#/definitions/config.Autocode"
  3847. },
  3848. "captcha": {
  3849. "$ref": "#/definitions/config.Captcha"
  3850. },
  3851. "casbin": {
  3852. "$ref": "#/definitions/config.Casbin"
  3853. },
  3854. "email": {
  3855. "$ref": "#/definitions/config.Email"
  3856. },
  3857. "excel": {
  3858. "$ref": "#/definitions/config.Excel"
  3859. },
  3860. "jwt": {
  3861. "$ref": "#/definitions/config.JWT"
  3862. },
  3863. "local": {
  3864. "description": "oss",
  3865. "$ref": "#/definitions/config.Local"
  3866. },
  3867. "mysql": {
  3868. "description": "gorm",
  3869. "$ref": "#/definitions/config.Mysql"
  3870. },
  3871. "qiniu": {
  3872. "$ref": "#/definitions/config.Qiniu"
  3873. },
  3874. "redis": {
  3875. "$ref": "#/definitions/config.Redis"
  3876. },
  3877. "system": {
  3878. "$ref": "#/definitions/config.System"
  3879. },
  3880. "tencentCOS": {
  3881. "$ref": "#/definitions/config.TencentCOS"
  3882. },
  3883. "timer": {
  3884. "$ref": "#/definitions/config.Timer"
  3885. },
  3886. "zap": {
  3887. "$ref": "#/definitions/config.Zap"
  3888. }
  3889. }
  3890. },
  3891. "config.System": {
  3892. "type": "object",
  3893. "properties": {
  3894. "addr": {
  3895. "description": "端口值",
  3896. "type": "integer"
  3897. },
  3898. "dbType": {
  3899. "description": "数据库类型:mysql(默认)|sqlite|sqlserver|postgresql",
  3900. "type": "string"
  3901. },
  3902. "env": {
  3903. "description": "环境值",
  3904. "type": "string"
  3905. },
  3906. "ossType": {
  3907. "description": "Oss类型",
  3908. "type": "string"
  3909. },
  3910. "useMultipoint": {
  3911. "description": "多点登录拦截",
  3912. "type": "boolean"
  3913. }
  3914. }
  3915. },
  3916. "config.TencentCOS": {
  3917. "type": "object",
  3918. "properties": {
  3919. "baseURL": {
  3920. "type": "string"
  3921. },
  3922. "bucket": {
  3923. "type": "string"
  3924. },
  3925. "pathPrefix": {
  3926. "type": "string"
  3927. },
  3928. "region": {
  3929. "type": "string"
  3930. },
  3931. "secretID": {
  3932. "type": "string"
  3933. },
  3934. "secretKey": {
  3935. "type": "string"
  3936. }
  3937. }
  3938. },
  3939. "config.Timer": {
  3940. "type": "object",
  3941. "properties": {
  3942. "detail": {
  3943. "type": "array",
  3944. "items": {
  3945. "$ref": "#/definitions/config.Detail"
  3946. }
  3947. },
  3948. "spec": {
  3949. "description": "CRON表达式",
  3950. "type": "string"
  3951. },
  3952. "start": {
  3953. "description": "是否启用",
  3954. "type": "boolean"
  3955. }
  3956. }
  3957. },
  3958. "config.Zap": {
  3959. "type": "object",
  3960. "properties": {
  3961. "director": {
  3962. "description": "日志文件夹",
  3963. "type": "string"
  3964. },
  3965. "encodeLevel": {
  3966. "description": "编码级",
  3967. "type": "string"
  3968. },
  3969. "format": {
  3970. "description": "输出",
  3971. "type": "string"
  3972. },
  3973. "level": {
  3974. "description": "级别",
  3975. "type": "string"
  3976. },
  3977. "linkName": {
  3978. "description": "软链接名称",
  3979. "type": "string"
  3980. },
  3981. "logInConsole": {
  3982. "description": "输出控制台",
  3983. "type": "boolean"
  3984. },
  3985. "prefix": {
  3986. "description": "日志前缀",
  3987. "type": "string"
  3988. },
  3989. "showLine": {
  3990. "description": "显示行",
  3991. "type": "boolean"
  3992. },
  3993. "stacktraceKey": {
  3994. "description": "栈名",
  3995. "type": "string"
  3996. }
  3997. }
  3998. },
  3999. "example.ExaCustomer": {
  4000. "type": "object",
  4001. "properties": {
  4002. "createdAt": {
  4003. "description": "创建时间",
  4004. "type": "string"
  4005. },
  4006. "customerName": {
  4007. "description": "客户名",
  4008. "type": "string"
  4009. },
  4010. "customerPhoneData": {
  4011. "description": "客户手机号",
  4012. "type": "string"
  4013. },
  4014. "id": {
  4015. "description": "主键ID",
  4016. "type": "integer"
  4017. },
  4018. "sysUser": {
  4019. "description": "管理详情",
  4020. "$ref": "#/definitions/system.SysUser"
  4021. },
  4022. "sysUserAuthorityID": {
  4023. "description": "管理角色ID",
  4024. "type": "string"
  4025. },
  4026. "sysUserId": {
  4027. "description": "管理ID",
  4028. "type": "integer"
  4029. },
  4030. "updatedAt": {
  4031. "description": "更新时间",
  4032. "type": "string"
  4033. }
  4034. }
  4035. },
  4036. "example.ExaFileUploadAndDownload": {
  4037. "type": "object",
  4038. "properties": {
  4039. "createdAt": {
  4040. "description": "创建时间",
  4041. "type": "string"
  4042. },
  4043. "id": {
  4044. "description": "主键ID",
  4045. "type": "integer"
  4046. },
  4047. "key": {
  4048. "description": "编号",
  4049. "type": "string"
  4050. },
  4051. "name": {
  4052. "description": "文件名",
  4053. "type": "string"
  4054. },
  4055. "tag": {
  4056. "description": "文件标签",
  4057. "type": "string"
  4058. },
  4059. "updatedAt": {
  4060. "description": "更新时间",
  4061. "type": "string"
  4062. },
  4063. "url": {
  4064. "description": "文件地址",
  4065. "type": "string"
  4066. }
  4067. }
  4068. },
  4069. "example.ExcelInfo": {
  4070. "type": "object",
  4071. "properties": {
  4072. "fileName": {
  4073. "description": "文件名",
  4074. "type": "string"
  4075. },
  4076. "infoList": {
  4077. "type": "array",
  4078. "items": {
  4079. "$ref": "#/definitions/system.SysBaseMenu"
  4080. }
  4081. }
  4082. }
  4083. },
  4084. "request.AddMenuAuthorityInfo": {
  4085. "type": "object",
  4086. "properties": {
  4087. "authorityId": {
  4088. "description": "角色ID",
  4089. "type": "string"
  4090. },
  4091. "menus": {
  4092. "type": "array",
  4093. "items": {
  4094. "$ref": "#/definitions/system.SysBaseMenu"
  4095. }
  4096. }
  4097. }
  4098. },
  4099. "request.AutoHistoryByID": {
  4100. "type": "object",
  4101. "properties": {
  4102. "id": {
  4103. "type": "integer"
  4104. }
  4105. }
  4106. },
  4107. "request.CasbinInReceive": {
  4108. "type": "object",
  4109. "properties": {
  4110. "authorityId": {
  4111. "description": "权限id",
  4112. "type": "string"
  4113. },
  4114. "casbinInfos": {
  4115. "type": "array",
  4116. "items": {
  4117. "$ref": "#/definitions/request.CasbinInfo"
  4118. }
  4119. }
  4120. }
  4121. },
  4122. "request.CasbinInfo": {
  4123. "type": "object",
  4124. "properties": {
  4125. "method": {
  4126. "description": "方法",
  4127. "type": "string"
  4128. },
  4129. "path": {
  4130. "description": "路径",
  4131. "type": "string"
  4132. }
  4133. }
  4134. },
  4135. "request.ChangePasswordStruct": {
  4136. "type": "object",
  4137. "properties": {
  4138. "newPassword": {
  4139. "description": "新密码",
  4140. "type": "string"
  4141. },
  4142. "password": {
  4143. "description": "密码",
  4144. "type": "string"
  4145. },
  4146. "username": {
  4147. "description": "用户名",
  4148. "type": "string"
  4149. }
  4150. }
  4151. },
  4152. "request.Empty": {
  4153. "type": "object"
  4154. },
  4155. "request.GetAuthorityId": {
  4156. "type": "object",
  4157. "properties": {
  4158. "authorityId": {
  4159. "description": "角色ID",
  4160. "type": "string"
  4161. }
  4162. }
  4163. },
  4164. "request.GetById": {
  4165. "type": "object",
  4166. "properties": {
  4167. "id": {
  4168. "description": "主键ID",
  4169. "type": "number"
  4170. }
  4171. }
  4172. },
  4173. "request.IdsReq": {
  4174. "type": "object",
  4175. "properties": {
  4176. "ids": {
  4177. "type": "array",
  4178. "items": {
  4179. "type": "integer"
  4180. }
  4181. }
  4182. }
  4183. },
  4184. "request.InitDB": {
  4185. "type": "object",
  4186. "required": [
  4187. "dbName",
  4188. "userName"
  4189. ],
  4190. "properties": {
  4191. "dbName": {
  4192. "description": "数据库名",
  4193. "type": "string"
  4194. },
  4195. "host": {
  4196. "description": "服务器地址",
  4197. "type": "string"
  4198. },
  4199. "password": {
  4200. "description": "数据库密码",
  4201. "type": "string"
  4202. },
  4203. "port": {
  4204. "description": "数据库连接端口",
  4205. "type": "string"
  4206. },
  4207. "userName": {
  4208. "description": "数据库用户名",
  4209. "type": "string"
  4210. }
  4211. }
  4212. },
  4213. "request.Login": {
  4214. "type": "object",
  4215. "properties": {
  4216. "captcha": {
  4217. "description": "验证码",
  4218. "type": "string"
  4219. },
  4220. "captchaId": {
  4221. "description": "验证码ID",
  4222. "type": "string"
  4223. },
  4224. "password": {
  4225. "description": "密码",
  4226. "type": "string"
  4227. },
  4228. "username": {
  4229. "description": "用户名",
  4230. "type": "string"
  4231. }
  4232. }
  4233. },
  4234. "request.PageInfo": {
  4235. "type": "object",
  4236. "properties": {
  4237. "page": {
  4238. "description": "页码",
  4239. "type": "integer"
  4240. },
  4241. "pageSize": {
  4242. "description": "每页大小",
  4243. "type": "integer"
  4244. }
  4245. }
  4246. },
  4247. "request.Register": {
  4248. "type": "object",
  4249. "properties": {
  4250. "authorityId": {
  4251. "type": "string"
  4252. },
  4253. "authorityIds": {
  4254. "type": "array",
  4255. "items": {
  4256. "type": "string"
  4257. }
  4258. },
  4259. "headerImg": {
  4260. "type": "string"
  4261. },
  4262. "nickName": {
  4263. "type": "string"
  4264. },
  4265. "passWord": {
  4266. "type": "string"
  4267. },
  4268. "userName": {
  4269. "type": "string"
  4270. }
  4271. }
  4272. },
  4273. "request.SearchApiParams": {
  4274. "type": "object",
  4275. "properties": {
  4276. "apiGroup": {
  4277. "description": "api组",
  4278. "type": "string"
  4279. },
  4280. "createdAt": {
  4281. "description": "创建时间",
  4282. "type": "string"
  4283. },
  4284. "desc": {
  4285. "description": "排序方式:升序false(默认)|降序true",
  4286. "type": "boolean"
  4287. },
  4288. "description": {
  4289. "description": "api中文描述",
  4290. "type": "string"
  4291. },
  4292. "id": {
  4293. "description": "主键ID",
  4294. "type": "integer"
  4295. },
  4296. "method": {
  4297. "description": "方法:创建POST(默认)|查看GET|更新PUT|删除DELETE",
  4298. "type": "string"
  4299. },
  4300. "orderKey": {
  4301. "description": "排序",
  4302. "type": "string"
  4303. },
  4304. "page": {
  4305. "description": "页码",
  4306. "type": "integer"
  4307. },
  4308. "pageSize": {
  4309. "description": "每页大小",
  4310. "type": "integer"
  4311. },
  4312. "path": {
  4313. "description": "api路径",
  4314. "type": "string"
  4315. },
  4316. "updatedAt": {
  4317. "description": "更新时间",
  4318. "type": "string"
  4319. }
  4320. }
  4321. },
  4322. "request.SetUserAuth": {
  4323. "type": "object",
  4324. "properties": {
  4325. "authorityId": {
  4326. "description": "角色ID",
  4327. "type": "string"
  4328. }
  4329. }
  4330. },
  4331. "request.SetUserAuthorities": {
  4332. "type": "object",
  4333. "properties": {
  4334. "authorityIds": {
  4335. "description": "角色ID",
  4336. "type": "array",
  4337. "items": {
  4338. "type": "string"
  4339. }
  4340. },
  4341. "id": {
  4342. "type": "integer"
  4343. }
  4344. }
  4345. },
  4346. "request.SysAutoHistory": {
  4347. "type": "object",
  4348. "properties": {
  4349. "page": {
  4350. "description": "页码",
  4351. "type": "integer"
  4352. },
  4353. "pageSize": {
  4354. "description": "每页大小",
  4355. "type": "integer"
  4356. }
  4357. }
  4358. },
  4359. "response.SysAuthorityCopyResponse": {
  4360. "type": "object",
  4361. "properties": {
  4362. "authority": {
  4363. "$ref": "#/definitions/system.SysAuthority"
  4364. },
  4365. "oldAuthorityId": {
  4366. "description": "旧角色ID",
  4367. "type": "string"
  4368. }
  4369. }
  4370. },
  4371. "system.AutoCodeStruct": {
  4372. "type": "object",
  4373. "properties": {
  4374. "abbreviation": {
  4375. "description": "Struct简称",
  4376. "type": "string"
  4377. },
  4378. "autoCreateApiToSql": {
  4379. "description": "是否自动创建api",
  4380. "type": "boolean"
  4381. },
  4382. "autoMoveFile": {
  4383. "description": "是否自动移动文件",
  4384. "type": "boolean"
  4385. },
  4386. "description": {
  4387. "description": "Struct中文名称",
  4388. "type": "string"
  4389. },
  4390. "fields": {
  4391. "type": "array",
  4392. "items": {
  4393. "$ref": "#/definitions/system.Field"
  4394. }
  4395. },
  4396. "humpPackageName": {
  4397. "description": "go文件名称",
  4398. "type": "string"
  4399. },
  4400. "packageName": {
  4401. "description": "文件名称",
  4402. "type": "string"
  4403. },
  4404. "structName": {
  4405. "description": "Struct名称",
  4406. "type": "string"
  4407. },
  4408. "tableName": {
  4409. "description": "表名",
  4410. "type": "string"
  4411. }
  4412. }
  4413. },
  4414. "system.Field": {
  4415. "type": "object",
  4416. "properties": {
  4417. "columnName": {
  4418. "description": "数据库字段",
  4419. "type": "string"
  4420. },
  4421. "comment": {
  4422. "description": "数据库字段描述",
  4423. "type": "string"
  4424. },
  4425. "dataType": {
  4426. "description": "数据库字段类型",
  4427. "type": "string"
  4428. },
  4429. "dataTypeLong": {
  4430. "description": "数据库字段长度",
  4431. "type": "string"
  4432. },
  4433. "dictType": {
  4434. "description": "字典",
  4435. "type": "string"
  4436. },
  4437. "fieldDesc": {
  4438. "description": "中文名",
  4439. "type": "string"
  4440. },
  4441. "fieldJson": {
  4442. "description": "FieldJson",
  4443. "type": "string"
  4444. },
  4445. "fieldName": {
  4446. "description": "Field名",
  4447. "type": "string"
  4448. },
  4449. "fieldSearchType": {
  4450. "description": "搜索条件",
  4451. "type": "string"
  4452. },
  4453. "fieldType": {
  4454. "description": "Field数据类型",
  4455. "type": "string"
  4456. }
  4457. }
  4458. },
  4459. "system.SysApi": {
  4460. "type": "object",
  4461. "properties": {
  4462. "apiGroup": {
  4463. "description": "api组",
  4464. "type": "string"
  4465. },
  4466. "createdAt": {
  4467. "description": "创建时间",
  4468. "type": "string"
  4469. },
  4470. "description": {
  4471. "description": "api中文描述",
  4472. "type": "string"
  4473. },
  4474. "id": {
  4475. "description": "主键ID",
  4476. "type": "integer"
  4477. },
  4478. "method": {
  4479. "description": "方法:创建POST(默认)|查看GET|更新PUT|删除DELETE",
  4480. "type": "string"
  4481. },
  4482. "path": {
  4483. "description": "api路径",
  4484. "type": "string"
  4485. },
  4486. "updatedAt": {
  4487. "description": "更新时间",
  4488. "type": "string"
  4489. }
  4490. }
  4491. },
  4492. "system.SysAuthority": {
  4493. "type": "object",
  4494. "properties": {
  4495. "authorityId": {
  4496. "description": "角色ID",
  4497. "type": "string"
  4498. },
  4499. "authorityName": {
  4500. "description": "角色名",
  4501. "type": "string"
  4502. },
  4503. "children": {
  4504. "type": "array",
  4505. "items": {
  4506. "$ref": "#/definitions/system.SysAuthority"
  4507. }
  4508. },
  4509. "createdAt": {
  4510. "description": "创建时间",
  4511. "type": "string"
  4512. },
  4513. "dataAuthorityId": {
  4514. "type": "array",
  4515. "items": {
  4516. "$ref": "#/definitions/system.SysAuthority"
  4517. }
  4518. },
  4519. "defaultRouter": {
  4520. "description": "默认菜单(默认dashboard)",
  4521. "type": "string"
  4522. },
  4523. "deletedAt": {
  4524. "type": "string"
  4525. },
  4526. "menus": {
  4527. "type": "array",
  4528. "items": {
  4529. "$ref": "#/definitions/system.SysBaseMenu"
  4530. }
  4531. },
  4532. "parentId": {
  4533. "description": "父角色ID",
  4534. "type": "string"
  4535. },
  4536. "updatedAt": {
  4537. "description": "更新时间",
  4538. "type": "string"
  4539. }
  4540. }
  4541. },
  4542. "system.SysBaseMenu": {
  4543. "type": "object",
  4544. "properties": {
  4545. "authoritys": {
  4546. "type": "array",
  4547. "items": {
  4548. "$ref": "#/definitions/system.SysAuthority"
  4549. }
  4550. },
  4551. "children": {
  4552. "type": "array",
  4553. "items": {
  4554. "$ref": "#/definitions/system.SysBaseMenu"
  4555. }
  4556. },
  4557. "closeTab": {
  4558. "description": "自动关闭tab",
  4559. "type": "boolean"
  4560. },
  4561. "component": {
  4562. "description": "对应前端文件路径",
  4563. "type": "string"
  4564. },
  4565. "createdAt": {
  4566. "description": "创建时间",
  4567. "type": "string"
  4568. },
  4569. "defaultMenu": {
  4570. "description": "是否是基础路由(开发中)",
  4571. "type": "boolean"
  4572. },
  4573. "hidden": {
  4574. "description": "是否在列表隐藏",
  4575. "type": "boolean"
  4576. },
  4577. "icon": {
  4578. "description": "菜单图标",
  4579. "type": "string"
  4580. },
  4581. "id": {
  4582. "description": "主键ID",
  4583. "type": "integer"
  4584. },
  4585. "keepAlive": {
  4586. "description": "是否缓存",
  4587. "type": "boolean"
  4588. },
  4589. "name": {
  4590. "description": "路由name",
  4591. "type": "string"
  4592. },
  4593. "parameters": {
  4594. "type": "array",
  4595. "items": {
  4596. "$ref": "#/definitions/system.SysBaseMenuParameter"
  4597. }
  4598. },
  4599. "parentId": {
  4600. "description": "父菜单ID",
  4601. "type": "string"
  4602. },
  4603. "path": {
  4604. "description": "路由path",
  4605. "type": "string"
  4606. },
  4607. "sort": {
  4608. "description": "排序标记",
  4609. "type": "integer"
  4610. },
  4611. "title": {
  4612. "description": "菜单名",
  4613. "type": "string"
  4614. },
  4615. "updatedAt": {
  4616. "description": "更新时间",
  4617. "type": "string"
  4618. }
  4619. }
  4620. },
  4621. "system.SysBaseMenuParameter": {
  4622. "type": "object",
  4623. "properties": {
  4624. "createdAt": {
  4625. "description": "创建时间",
  4626. "type": "string"
  4627. },
  4628. "id": {
  4629. "description": "主键ID",
  4630. "type": "integer"
  4631. },
  4632. "key": {
  4633. "description": "地址栏携带参数的key",
  4634. "type": "string"
  4635. },
  4636. "sysBaseMenuID": {
  4637. "type": "integer"
  4638. },
  4639. "type": {
  4640. "description": "地址栏携带参数为params还是query",
  4641. "type": "string"
  4642. },
  4643. "updatedAt": {
  4644. "description": "更新时间",
  4645. "type": "string"
  4646. },
  4647. "value": {
  4648. "description": "地址栏携带参数的值",
  4649. "type": "string"
  4650. }
  4651. }
  4652. },
  4653. "system.SysDictionary": {
  4654. "type": "object",
  4655. "properties": {
  4656. "createdAt": {
  4657. "description": "创建时间",
  4658. "type": "string"
  4659. },
  4660. "desc": {
  4661. "description": "描述",
  4662. "type": "string"
  4663. },
  4664. "id": {
  4665. "description": "主键ID",
  4666. "type": "integer"
  4667. },
  4668. "name": {
  4669. "description": "字典名(中)",
  4670. "type": "string"
  4671. },
  4672. "status": {
  4673. "description": "状态",
  4674. "type": "boolean"
  4675. },
  4676. "sysDictionaryDetails": {
  4677. "type": "array",
  4678. "items": {
  4679. "$ref": "#/definitions/system.SysDictionaryDetail"
  4680. }
  4681. },
  4682. "type": {
  4683. "description": "字典名(英)",
  4684. "type": "string"
  4685. },
  4686. "updatedAt": {
  4687. "description": "更新时间",
  4688. "type": "string"
  4689. }
  4690. }
  4691. },
  4692. "system.SysDictionaryDetail": {
  4693. "type": "object",
  4694. "properties": {
  4695. "createdAt": {
  4696. "description": "创建时间",
  4697. "type": "string"
  4698. },
  4699. "id": {
  4700. "description": "主键ID",
  4701. "type": "integer"
  4702. },
  4703. "label": {
  4704. "description": "展示值",
  4705. "type": "string"
  4706. },
  4707. "sort": {
  4708. "description": "排序标记",
  4709. "type": "integer"
  4710. },
  4711. "status": {
  4712. "description": "启用状态",
  4713. "type": "boolean"
  4714. },
  4715. "sysDictionaryID": {
  4716. "description": "关联标记",
  4717. "type": "integer"
  4718. },
  4719. "updatedAt": {
  4720. "description": "更新时间",
  4721. "type": "string"
  4722. },
  4723. "value": {
  4724. "description": "字典值",
  4725. "type": "integer"
  4726. }
  4727. }
  4728. },
  4729. "system.SysOperationRecord": {
  4730. "type": "object",
  4731. "properties": {
  4732. "agent": {
  4733. "description": "代理",
  4734. "type": "string"
  4735. },
  4736. "body": {
  4737. "description": "请求Body",
  4738. "type": "string"
  4739. },
  4740. "createdAt": {
  4741. "description": "创建时间",
  4742. "type": "string"
  4743. },
  4744. "error_message": {
  4745. "description": "错误信息",
  4746. "type": "string"
  4747. },
  4748. "id": {
  4749. "description": "主键ID",
  4750. "type": "integer"
  4751. },
  4752. "ip": {
  4753. "description": "请求ip",
  4754. "type": "string"
  4755. },
  4756. "latency": {
  4757. "description": "延迟",
  4758. "type": "string"
  4759. },
  4760. "method": {
  4761. "description": "请求方法",
  4762. "type": "string"
  4763. },
  4764. "path": {
  4765. "description": "请求路径",
  4766. "type": "string"
  4767. },
  4768. "resp": {
  4769. "description": "响应Body",
  4770. "type": "string"
  4771. },
  4772. "status": {
  4773. "description": "请求状态",
  4774. "type": "integer"
  4775. },
  4776. "updatedAt": {
  4777. "description": "更新时间",
  4778. "type": "string"
  4779. },
  4780. "user": {
  4781. "$ref": "#/definitions/system.SysUser"
  4782. },
  4783. "user_id": {
  4784. "description": "用户id",
  4785. "type": "integer"
  4786. }
  4787. }
  4788. },
  4789. "system.SysUser": {
  4790. "type": "object",
  4791. "properties": {
  4792. "activeColor": {
  4793. "description": "活跃颜色",
  4794. "type": "string"
  4795. },
  4796. "authorities": {
  4797. "type": "array",
  4798. "items": {
  4799. "$ref": "#/definitions/system.SysAuthority"
  4800. }
  4801. },
  4802. "authority": {
  4803. "$ref": "#/definitions/system.SysAuthority"
  4804. },
  4805. "authorityId": {
  4806. "description": "用户角色ID",
  4807. "type": "string"
  4808. },
  4809. "baseColor": {
  4810. "description": "基础颜色",
  4811. "type": "string"
  4812. },
  4813. "createdAt": {
  4814. "description": "创建时间",
  4815. "type": "string"
  4816. },
  4817. "headerImg": {
  4818. "description": "用户头像",
  4819. "type": "string"
  4820. },
  4821. "id": {
  4822. "description": "主键ID",
  4823. "type": "integer"
  4824. },
  4825. "nickName": {
  4826. "description": "用户昵称",
  4827. "type": "string"
  4828. },
  4829. "sideMode": {
  4830. "description": "用户侧边主题",
  4831. "type": "string"
  4832. },
  4833. "updatedAt": {
  4834. "description": "更新时间",
  4835. "type": "string"
  4836. },
  4837. "userName": {
  4838. "description": "用户登录名",
  4839. "type": "string"
  4840. },
  4841. "uuid": {
  4842. "description": "用户UUID",
  4843. "type": "string"
  4844. }
  4845. }
  4846. },
  4847. "system.System": {
  4848. "type": "object",
  4849. "properties": {
  4850. "config": {
  4851. "$ref": "#/definitions/config.Server"
  4852. }
  4853. }
  4854. }
  4855. },
  4856. "securityDefinitions": {
  4857. "ApiKeyAuth": {
  4858. "type": "apiKey",
  4859. "name": "x-token",
  4860. "in": "header"
  4861. }
  4862. }
  4863. }