docs.go 156 KB

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