swagger.yaml 114 KB

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