admin_docs.go 165 KB

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