docs.go 148 KB

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