swagger.yaml 99 KB

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