swagger.json 155 KB

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