docs.go 156 KB

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