admin_swagger.json 94 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245224622472248224922502251225222532254225522562257225822592260226122622263226422652266226722682269227022712272227322742275227622772278227922802281228222832284228522862287228822892290229122922293229422952296229722982299230023012302230323042305230623072308230923102311231223132314231523162317231823192320232123222323232423252326232723282329233023312332233323342335233623372338233923402341234223432344234523462347234823492350235123522353235423552356235723582359236023612362236323642365236623672368236923702371237223732374237523762377237823792380238123822383238423852386238723882389239023912392239323942395239623972398239924002401240224032404240524062407240824092410241124122413241424152416241724182419242024212422242324242425242624272428242924302431243224332434243524362437243824392440244124422443244424452446244724482449245024512452245324542455245624572458245924602461246224632464246524662467246824692470247124722473247424752476247724782479248024812482248324842485248624872488248924902491249224932494249524962497249824992500250125022503250425052506250725082509251025112512251325142515251625172518251925202521252225232524252525262527252825292530253125322533253425352536253725382539254025412542254325442545254625472548254925502551255225532554255525562557255825592560256125622563256425652566256725682569257025712572257325742575257625772578257925802581258225832584258525862587258825892590259125922593259425952596259725982599260026012602260326042605260626072608260926102611261226132614261526162617261826192620262126222623262426252626262726282629263026312632263326342635263626372638263926402641264226432644264526462647264826492650265126522653265426552656265726582659266026612662266326642665266626672668266926702671267226732674267526762677267826792680268126822683268426852686268726882689269026912692269326942695269626972698269927002701270227032704270527062707270827092710271127122713271427152716271727182719272027212722272327242725272627272728272927302731273227332734273527362737273827392740274127422743274427452746274727482749275027512752275327542755275627572758275927602761276227632764276527662767276827692770277127722773277427752776277727782779278027812782278327842785278627872788278927902791279227932794279527962797279827992800280128022803280428052806280728082809281028112812281328142815281628172818281928202821282228232824282528262827282828292830283128322833283428352836283728382839284028412842284328442845284628472848284928502851285228532854285528562857285828592860286128622863286428652866286728682869287028712872287328742875287628772878287928802881288228832884288528862887288828892890289128922893289428952896289728982899290029012902290329042905290629072908290929102911291229132914291529162917291829192920292129222923292429252926292729282929293029312932293329342935293629372938293929402941
  1. {
  2. "swagger": "2.0",
  3. "info": {
  4. "description": "接口",
  5. "title": "管理系统API",
  6. "contact": {},
  7. "version": "1.0"
  8. },
  9. "basePath": "/api",
  10. "paths": {
  11. "/admin/address_book/create": {
  12. "post": {
  13. "security": [
  14. {
  15. "token": []
  16. }
  17. ],
  18. "description": "创建地址簿",
  19. "consumes": [
  20. "application/json"
  21. ],
  22. "produces": [
  23. "application/json"
  24. ],
  25. "tags": [
  26. "地址簿"
  27. ],
  28. "summary": "创建地址簿",
  29. "parameters": [
  30. {
  31. "description": "地址簿信息",
  32. "name": "body",
  33. "in": "body",
  34. "required": true,
  35. "schema": {
  36. "$ref": "#/definitions/admin.AddressBookForm"
  37. }
  38. }
  39. ],
  40. "responses": {
  41. "200": {
  42. "description": "OK",
  43. "schema": {
  44. "allOf": [
  45. {
  46. "$ref": "#/definitions/response.Response"
  47. },
  48. {
  49. "type": "object",
  50. "properties": {
  51. "data": {
  52. "$ref": "#/definitions/model.AddressBook"
  53. }
  54. }
  55. }
  56. ]
  57. }
  58. },
  59. "500": {
  60. "description": "Internal Server Error",
  61. "schema": {
  62. "$ref": "#/definitions/response.Response"
  63. }
  64. }
  65. }
  66. }
  67. },
  68. "/admin/address_book/delete": {
  69. "post": {
  70. "security": [
  71. {
  72. "token": []
  73. }
  74. ],
  75. "description": "地址簿删除",
  76. "consumes": [
  77. "application/json"
  78. ],
  79. "produces": [
  80. "application/json"
  81. ],
  82. "tags": [
  83. "地址簿"
  84. ],
  85. "summary": "地址簿删除",
  86. "parameters": [
  87. {
  88. "description": "地址簿信息",
  89. "name": "body",
  90. "in": "body",
  91. "required": true,
  92. "schema": {
  93. "$ref": "#/definitions/admin.AddressBookForm"
  94. }
  95. }
  96. ],
  97. "responses": {
  98. "200": {
  99. "description": "OK",
  100. "schema": {
  101. "$ref": "#/definitions/response.Response"
  102. }
  103. },
  104. "500": {
  105. "description": "Internal Server Error",
  106. "schema": {
  107. "$ref": "#/definitions/response.Response"
  108. }
  109. }
  110. }
  111. }
  112. },
  113. "/admin/address_book/detail/{id}": {
  114. "get": {
  115. "security": [
  116. {
  117. "token": []
  118. }
  119. ],
  120. "description": "地址簿详情",
  121. "consumes": [
  122. "application/json"
  123. ],
  124. "produces": [
  125. "application/json"
  126. ],
  127. "tags": [
  128. "地址簿"
  129. ],
  130. "summary": "地址簿详情",
  131. "parameters": [
  132. {
  133. "type": "integer",
  134. "description": "ID",
  135. "name": "id",
  136. "in": "path",
  137. "required": true
  138. }
  139. ],
  140. "responses": {
  141. "200": {
  142. "description": "OK",
  143. "schema": {
  144. "allOf": [
  145. {
  146. "$ref": "#/definitions/response.Response"
  147. },
  148. {
  149. "type": "object",
  150. "properties": {
  151. "data": {
  152. "$ref": "#/definitions/model.AddressBook"
  153. }
  154. }
  155. }
  156. ]
  157. }
  158. },
  159. "500": {
  160. "description": "Internal Server Error",
  161. "schema": {
  162. "$ref": "#/definitions/response.Response"
  163. }
  164. }
  165. }
  166. }
  167. },
  168. "/admin/address_book/list": {
  169. "get": {
  170. "security": [
  171. {
  172. "token": []
  173. }
  174. ],
  175. "description": "地址簿列表",
  176. "consumes": [
  177. "application/json"
  178. ],
  179. "produces": [
  180. "application/json"
  181. ],
  182. "tags": [
  183. "地址簿"
  184. ],
  185. "summary": "地址簿列表",
  186. "parameters": [
  187. {
  188. "type": "integer",
  189. "description": "页码",
  190. "name": "page",
  191. "in": "query"
  192. },
  193. {
  194. "type": "integer",
  195. "description": "页大小",
  196. "name": "page_size",
  197. "in": "query"
  198. },
  199. {
  200. "type": "integer",
  201. "description": "用户id",
  202. "name": "user_id",
  203. "in": "query"
  204. },
  205. {
  206. "type": "integer",
  207. "description": "是否是我的",
  208. "name": "is_my",
  209. "in": "query"
  210. }
  211. ],
  212. "responses": {
  213. "200": {
  214. "description": "OK",
  215. "schema": {
  216. "allOf": [
  217. {
  218. "$ref": "#/definitions/response.Response"
  219. },
  220. {
  221. "type": "object",
  222. "properties": {
  223. "data": {
  224. "$ref": "#/definitions/model.AddressBookList"
  225. }
  226. }
  227. }
  228. ]
  229. }
  230. },
  231. "500": {
  232. "description": "Internal Server Error",
  233. "schema": {
  234. "$ref": "#/definitions/response.Response"
  235. }
  236. }
  237. }
  238. }
  239. },
  240. "/admin/address_book/update": {
  241. "post": {
  242. "security": [
  243. {
  244. "token": []
  245. }
  246. ],
  247. "description": "地址簿编辑",
  248. "consumes": [
  249. "application/json"
  250. ],
  251. "produces": [
  252. "application/json"
  253. ],
  254. "tags": [
  255. "地址簿"
  256. ],
  257. "summary": "地址簿编辑",
  258. "parameters": [
  259. {
  260. "description": "地址簿信息",
  261. "name": "body",
  262. "in": "body",
  263. "required": true,
  264. "schema": {
  265. "$ref": "#/definitions/admin.AddressBookForm"
  266. }
  267. }
  268. ],
  269. "responses": {
  270. "200": {
  271. "description": "OK",
  272. "schema": {
  273. "allOf": [
  274. {
  275. "$ref": "#/definitions/response.Response"
  276. },
  277. {
  278. "type": "object",
  279. "properties": {
  280. "data": {
  281. "$ref": "#/definitions/model.AddressBook"
  282. }
  283. }
  284. }
  285. ]
  286. }
  287. },
  288. "500": {
  289. "description": "Internal Server Error",
  290. "schema": {
  291. "$ref": "#/definitions/response.Response"
  292. }
  293. }
  294. }
  295. }
  296. },
  297. "/admin/file/oss_token": {
  298. "get": {
  299. "security": [
  300. {
  301. "token": []
  302. }
  303. ],
  304. "description": "获取ossToken",
  305. "consumes": [
  306. "application/json"
  307. ],
  308. "produces": [
  309. "application/json"
  310. ],
  311. "tags": [
  312. "文件"
  313. ],
  314. "summary": "获取ossToken",
  315. "responses": {
  316. "200": {
  317. "description": "OK",
  318. "schema": {
  319. "$ref": "#/definitions/response.Response"
  320. }
  321. },
  322. "500": {
  323. "description": "Internal Server Error",
  324. "schema": {
  325. "$ref": "#/definitions/response.Response"
  326. }
  327. }
  328. }
  329. }
  330. },
  331. "/admin/file/upload": {
  332. "post": {
  333. "security": [
  334. {
  335. "token": []
  336. }
  337. ],
  338. "description": "上传文件到本地",
  339. "consumes": [
  340. "multipart/form-data"
  341. ],
  342. "produces": [
  343. "application/json"
  344. ],
  345. "tags": [
  346. "文件"
  347. ],
  348. "summary": "上传文件到本地",
  349. "parameters": [
  350. {
  351. "type": "file",
  352. "description": "上传文件示例",
  353. "name": "file",
  354. "in": "formData",
  355. "required": true
  356. }
  357. ],
  358. "responses": {
  359. "200": {
  360. "description": "OK",
  361. "schema": {
  362. "$ref": "#/definitions/response.Response"
  363. }
  364. },
  365. "500": {
  366. "description": "Internal Server Error",
  367. "schema": {
  368. "$ref": "#/definitions/response.Response"
  369. }
  370. }
  371. }
  372. }
  373. },
  374. "/admin/group/create": {
  375. "post": {
  376. "security": [
  377. {
  378. "token": []
  379. }
  380. ],
  381. "description": "创建群组",
  382. "consumes": [
  383. "application/json"
  384. ],
  385. "produces": [
  386. "application/json"
  387. ],
  388. "tags": [
  389. "群组"
  390. ],
  391. "summary": "创建群组",
  392. "parameters": [
  393. {
  394. "description": "群组信息",
  395. "name": "body",
  396. "in": "body",
  397. "required": true,
  398. "schema": {
  399. "$ref": "#/definitions/admin.GroupForm"
  400. }
  401. }
  402. ],
  403. "responses": {
  404. "200": {
  405. "description": "OK",
  406. "schema": {
  407. "allOf": [
  408. {
  409. "$ref": "#/definitions/response.Response"
  410. },
  411. {
  412. "type": "object",
  413. "properties": {
  414. "data": {
  415. "$ref": "#/definitions/model.Group"
  416. }
  417. }
  418. }
  419. ]
  420. }
  421. },
  422. "500": {
  423. "description": "Internal Server Error",
  424. "schema": {
  425. "$ref": "#/definitions/response.Response"
  426. }
  427. }
  428. }
  429. }
  430. },
  431. "/admin/group/delete": {
  432. "post": {
  433. "security": [
  434. {
  435. "token": []
  436. }
  437. ],
  438. "description": "群组删除",
  439. "consumes": [
  440. "application/json"
  441. ],
  442. "produces": [
  443. "application/json"
  444. ],
  445. "tags": [
  446. "群组"
  447. ],
  448. "summary": "群组删除",
  449. "parameters": [
  450. {
  451. "description": "群组信息",
  452. "name": "body",
  453. "in": "body",
  454. "required": true,
  455. "schema": {
  456. "$ref": "#/definitions/admin.GroupForm"
  457. }
  458. }
  459. ],
  460. "responses": {
  461. "200": {
  462. "description": "OK",
  463. "schema": {
  464. "$ref": "#/definitions/response.Response"
  465. }
  466. },
  467. "500": {
  468. "description": "Internal Server Error",
  469. "schema": {
  470. "$ref": "#/definitions/response.Response"
  471. }
  472. }
  473. }
  474. }
  475. },
  476. "/admin/group/detail/{id}": {
  477. "get": {
  478. "security": [
  479. {
  480. "token": []
  481. }
  482. ],
  483. "description": "群组详情",
  484. "consumes": [
  485. "application/json"
  486. ],
  487. "produces": [
  488. "application/json"
  489. ],
  490. "tags": [
  491. "群组"
  492. ],
  493. "summary": "群组详情",
  494. "parameters": [
  495. {
  496. "type": "integer",
  497. "description": "ID",
  498. "name": "id",
  499. "in": "path",
  500. "required": true
  501. }
  502. ],
  503. "responses": {
  504. "200": {
  505. "description": "OK",
  506. "schema": {
  507. "allOf": [
  508. {
  509. "$ref": "#/definitions/response.Response"
  510. },
  511. {
  512. "type": "object",
  513. "properties": {
  514. "data": {
  515. "$ref": "#/definitions/model.Group"
  516. }
  517. }
  518. }
  519. ]
  520. }
  521. },
  522. "500": {
  523. "description": "Internal Server Error",
  524. "schema": {
  525. "$ref": "#/definitions/response.Response"
  526. }
  527. }
  528. }
  529. }
  530. },
  531. "/admin/group/list": {
  532. "get": {
  533. "security": [
  534. {
  535. "token": []
  536. }
  537. ],
  538. "description": "群组列表",
  539. "consumes": [
  540. "application/json"
  541. ],
  542. "produces": [
  543. "application/json"
  544. ],
  545. "tags": [
  546. "群组"
  547. ],
  548. "summary": "群组列表",
  549. "parameters": [
  550. {
  551. "type": "integer",
  552. "description": "页码",
  553. "name": "page",
  554. "in": "query"
  555. },
  556. {
  557. "type": "integer",
  558. "description": "页大小",
  559. "name": "page_size",
  560. "in": "query"
  561. }
  562. ],
  563. "responses": {
  564. "200": {
  565. "description": "OK",
  566. "schema": {
  567. "allOf": [
  568. {
  569. "$ref": "#/definitions/response.Response"
  570. },
  571. {
  572. "type": "object",
  573. "properties": {
  574. "data": {
  575. "$ref": "#/definitions/model.GroupList"
  576. }
  577. }
  578. }
  579. ]
  580. }
  581. },
  582. "500": {
  583. "description": "Internal Server Error",
  584. "schema": {
  585. "$ref": "#/definitions/response.Response"
  586. }
  587. }
  588. }
  589. }
  590. },
  591. "/admin/group/update": {
  592. "post": {
  593. "security": [
  594. {
  595. "token": []
  596. }
  597. ],
  598. "description": "群组编辑",
  599. "consumes": [
  600. "application/json"
  601. ],
  602. "produces": [
  603. "application/json"
  604. ],
  605. "tags": [
  606. "群组"
  607. ],
  608. "summary": "群组编辑",
  609. "parameters": [
  610. {
  611. "description": "群组信息",
  612. "name": "body",
  613. "in": "body",
  614. "required": true,
  615. "schema": {
  616. "$ref": "#/definitions/admin.GroupForm"
  617. }
  618. }
  619. ],
  620. "responses": {
  621. "200": {
  622. "description": "OK",
  623. "schema": {
  624. "allOf": [
  625. {
  626. "$ref": "#/definitions/response.Response"
  627. },
  628. {
  629. "type": "object",
  630. "properties": {
  631. "data": {
  632. "$ref": "#/definitions/model.Group"
  633. }
  634. }
  635. }
  636. ]
  637. }
  638. },
  639. "500": {
  640. "description": "Internal Server Error",
  641. "schema": {
  642. "$ref": "#/definitions/response.Response"
  643. }
  644. }
  645. }
  646. }
  647. },
  648. "/admin/login": {
  649. "post": {
  650. "security": [
  651. {
  652. "token": []
  653. }
  654. ],
  655. "description": "登录",
  656. "consumes": [
  657. "application/json"
  658. ],
  659. "produces": [
  660. "application/json"
  661. ],
  662. "tags": [
  663. "登录"
  664. ],
  665. "summary": "登录",
  666. "parameters": [
  667. {
  668. "description": "登录信息",
  669. "name": "body",
  670. "in": "body",
  671. "required": true,
  672. "schema": {
  673. "$ref": "#/definitions/Gwen_http_request_admin.Login"
  674. }
  675. }
  676. ],
  677. "responses": {
  678. "200": {
  679. "description": "OK",
  680. "schema": {
  681. "allOf": [
  682. {
  683. "$ref": "#/definitions/response.Response"
  684. },
  685. {
  686. "type": "object",
  687. "properties": {
  688. "data": {
  689. "$ref": "#/definitions/admin.LoginPayload"
  690. }
  691. }
  692. }
  693. ]
  694. }
  695. },
  696. "500": {
  697. "description": "Internal Server Error",
  698. "schema": {
  699. "$ref": "#/definitions/response.Response"
  700. }
  701. }
  702. }
  703. }
  704. },
  705. "/admin/loginLog/delete": {
  706. "post": {
  707. "security": [
  708. {
  709. "token": []
  710. }
  711. ],
  712. "description": "登录日志删除",
  713. "consumes": [
  714. "application/json"
  715. ],
  716. "produces": [
  717. "application/json"
  718. ],
  719. "tags": [
  720. "登录日志"
  721. ],
  722. "summary": "登录日志删除",
  723. "parameters": [
  724. {
  725. "description": "登录日志信息",
  726. "name": "body",
  727. "in": "body",
  728. "required": true,
  729. "schema": {
  730. "$ref": "#/definitions/model.LoginLog"
  731. }
  732. }
  733. ],
  734. "responses": {
  735. "200": {
  736. "description": "OK",
  737. "schema": {
  738. "$ref": "#/definitions/response.Response"
  739. }
  740. },
  741. "500": {
  742. "description": "Internal Server Error",
  743. "schema": {
  744. "$ref": "#/definitions/response.Response"
  745. }
  746. }
  747. }
  748. }
  749. },
  750. "/admin/loginLog/detail/{id}": {
  751. "get": {
  752. "security": [
  753. {
  754. "token": []
  755. }
  756. ],
  757. "description": "登录日志详情",
  758. "consumes": [
  759. "application/json"
  760. ],
  761. "produces": [
  762. "application/json"
  763. ],
  764. "tags": [
  765. "登录日志"
  766. ],
  767. "summary": "登录日志详情",
  768. "parameters": [
  769. {
  770. "type": "integer",
  771. "description": "ID",
  772. "name": "id",
  773. "in": "path",
  774. "required": true
  775. }
  776. ],
  777. "responses": {
  778. "200": {
  779. "description": "OK",
  780. "schema": {
  781. "allOf": [
  782. {
  783. "$ref": "#/definitions/response.Response"
  784. },
  785. {
  786. "type": "object",
  787. "properties": {
  788. "data": {
  789. "$ref": "#/definitions/model.LoginLog"
  790. }
  791. }
  792. }
  793. ]
  794. }
  795. },
  796. "500": {
  797. "description": "Internal Server Error",
  798. "schema": {
  799. "$ref": "#/definitions/response.Response"
  800. }
  801. }
  802. }
  803. }
  804. },
  805. "/admin/loginLog/list": {
  806. "get": {
  807. "security": [
  808. {
  809. "token": []
  810. }
  811. ],
  812. "description": "登录日志列表",
  813. "consumes": [
  814. "application/json"
  815. ],
  816. "produces": [
  817. "application/json"
  818. ],
  819. "tags": [
  820. "登录日志"
  821. ],
  822. "summary": "登录日志列表",
  823. "parameters": [
  824. {
  825. "type": "integer",
  826. "description": "页码",
  827. "name": "page",
  828. "in": "query"
  829. },
  830. {
  831. "type": "integer",
  832. "description": "页大小",
  833. "name": "page_size",
  834. "in": "query"
  835. },
  836. {
  837. "type": "integer",
  838. "description": "用户ID",
  839. "name": "user_id",
  840. "in": "query"
  841. }
  842. ],
  843. "responses": {
  844. "200": {
  845. "description": "OK",
  846. "schema": {
  847. "allOf": [
  848. {
  849. "$ref": "#/definitions/response.Response"
  850. },
  851. {
  852. "type": "object",
  853. "properties": {
  854. "data": {
  855. "$ref": "#/definitions/model.LoginLogList"
  856. }
  857. }
  858. }
  859. ]
  860. }
  861. },
  862. "500": {
  863. "description": "Internal Server Error",
  864. "schema": {
  865. "$ref": "#/definitions/response.Response"
  866. }
  867. }
  868. }
  869. }
  870. },
  871. "/admin/logout": {
  872. "post": {
  873. "description": "登出",
  874. "consumes": [
  875. "application/json"
  876. ],
  877. "produces": [
  878. "application/json"
  879. ],
  880. "tags": [
  881. "登录"
  882. ],
  883. "summary": "登出",
  884. "responses": {
  885. "200": {
  886. "description": "OK",
  887. "schema": {
  888. "$ref": "#/definitions/response.Response"
  889. }
  890. },
  891. "500": {
  892. "description": "Internal Server Error",
  893. "schema": {
  894. "$ref": "#/definitions/response.Response"
  895. }
  896. }
  897. }
  898. }
  899. },
  900. "/admin/oauth/create": {
  901. "post": {
  902. "security": [
  903. {
  904. "token": []
  905. }
  906. ],
  907. "description": "创建Oauth",
  908. "consumes": [
  909. "application/json"
  910. ],
  911. "produces": [
  912. "application/json"
  913. ],
  914. "tags": [
  915. "Oauth"
  916. ],
  917. "summary": "创建Oauth",
  918. "parameters": [
  919. {
  920. "description": "Oauth信息",
  921. "name": "body",
  922. "in": "body",
  923. "required": true,
  924. "schema": {
  925. "$ref": "#/definitions/admin.OauthForm"
  926. }
  927. }
  928. ],
  929. "responses": {
  930. "200": {
  931. "description": "OK",
  932. "schema": {
  933. "allOf": [
  934. {
  935. "$ref": "#/definitions/response.Response"
  936. },
  937. {
  938. "type": "object",
  939. "properties": {
  940. "data": {
  941. "$ref": "#/definitions/model.Oauth"
  942. }
  943. }
  944. }
  945. ]
  946. }
  947. },
  948. "500": {
  949. "description": "Internal Server Error",
  950. "schema": {
  951. "$ref": "#/definitions/response.Response"
  952. }
  953. }
  954. }
  955. }
  956. },
  957. "/admin/oauth/delete": {
  958. "post": {
  959. "security": [
  960. {
  961. "token": []
  962. }
  963. ],
  964. "description": "Oauth删除",
  965. "consumes": [
  966. "application/json"
  967. ],
  968. "produces": [
  969. "application/json"
  970. ],
  971. "tags": [
  972. "Oauth"
  973. ],
  974. "summary": "Oauth删除",
  975. "parameters": [
  976. {
  977. "description": "Oauth信息",
  978. "name": "body",
  979. "in": "body",
  980. "required": true,
  981. "schema": {
  982. "$ref": "#/definitions/admin.OauthForm"
  983. }
  984. }
  985. ],
  986. "responses": {
  987. "200": {
  988. "description": "OK",
  989. "schema": {
  990. "$ref": "#/definitions/response.Response"
  991. }
  992. },
  993. "500": {
  994. "description": "Internal Server Error",
  995. "schema": {
  996. "$ref": "#/definitions/response.Response"
  997. }
  998. }
  999. }
  1000. }
  1001. },
  1002. "/admin/oauth/detail/{id}": {
  1003. "get": {
  1004. "security": [
  1005. {
  1006. "token": []
  1007. }
  1008. ],
  1009. "description": "Oauth详情",
  1010. "consumes": [
  1011. "application/json"
  1012. ],
  1013. "produces": [
  1014. "application/json"
  1015. ],
  1016. "tags": [
  1017. "Oauth"
  1018. ],
  1019. "summary": "Oauth详情",
  1020. "parameters": [
  1021. {
  1022. "type": "integer",
  1023. "description": "ID",
  1024. "name": "id",
  1025. "in": "path",
  1026. "required": true
  1027. }
  1028. ],
  1029. "responses": {
  1030. "200": {
  1031. "description": "OK",
  1032. "schema": {
  1033. "allOf": [
  1034. {
  1035. "$ref": "#/definitions/response.Response"
  1036. },
  1037. {
  1038. "type": "object",
  1039. "properties": {
  1040. "data": {
  1041. "$ref": "#/definitions/model.Oauth"
  1042. }
  1043. }
  1044. }
  1045. ]
  1046. }
  1047. },
  1048. "500": {
  1049. "description": "Internal Server Error",
  1050. "schema": {
  1051. "$ref": "#/definitions/response.Response"
  1052. }
  1053. }
  1054. }
  1055. }
  1056. },
  1057. "/admin/oauth/list": {
  1058. "get": {
  1059. "security": [
  1060. {
  1061. "token": []
  1062. }
  1063. ],
  1064. "description": "Oauth列表",
  1065. "consumes": [
  1066. "application/json"
  1067. ],
  1068. "produces": [
  1069. "application/json"
  1070. ],
  1071. "tags": [
  1072. "Oauth"
  1073. ],
  1074. "summary": "Oauth列表",
  1075. "parameters": [
  1076. {
  1077. "type": "integer",
  1078. "description": "页码",
  1079. "name": "page",
  1080. "in": "query"
  1081. },
  1082. {
  1083. "type": "integer",
  1084. "description": "页大小",
  1085. "name": "page_size",
  1086. "in": "query"
  1087. }
  1088. ],
  1089. "responses": {
  1090. "200": {
  1091. "description": "OK",
  1092. "schema": {
  1093. "allOf": [
  1094. {
  1095. "$ref": "#/definitions/response.Response"
  1096. },
  1097. {
  1098. "type": "object",
  1099. "properties": {
  1100. "data": {
  1101. "$ref": "#/definitions/model.OauthList"
  1102. }
  1103. }
  1104. }
  1105. ]
  1106. }
  1107. },
  1108. "500": {
  1109. "description": "Internal Server Error",
  1110. "schema": {
  1111. "$ref": "#/definitions/response.Response"
  1112. }
  1113. }
  1114. }
  1115. }
  1116. },
  1117. "/admin/oauth/update": {
  1118. "post": {
  1119. "security": [
  1120. {
  1121. "token": []
  1122. }
  1123. ],
  1124. "description": "Oauth编辑",
  1125. "consumes": [
  1126. "application/json"
  1127. ],
  1128. "produces": [
  1129. "application/json"
  1130. ],
  1131. "tags": [
  1132. "Oauth"
  1133. ],
  1134. "summary": "Oauth编辑",
  1135. "parameters": [
  1136. {
  1137. "description": "Oauth信息",
  1138. "name": "body",
  1139. "in": "body",
  1140. "required": true,
  1141. "schema": {
  1142. "$ref": "#/definitions/admin.OauthForm"
  1143. }
  1144. }
  1145. ],
  1146. "responses": {
  1147. "200": {
  1148. "description": "OK",
  1149. "schema": {
  1150. "allOf": [
  1151. {
  1152. "$ref": "#/definitions/response.Response"
  1153. },
  1154. {
  1155. "type": "object",
  1156. "properties": {
  1157. "data": {
  1158. "$ref": "#/definitions/model.OauthList"
  1159. }
  1160. }
  1161. }
  1162. ]
  1163. }
  1164. },
  1165. "500": {
  1166. "description": "Internal Server Error",
  1167. "schema": {
  1168. "$ref": "#/definitions/response.Response"
  1169. }
  1170. }
  1171. }
  1172. }
  1173. },
  1174. "/admin/peer/create": {
  1175. "post": {
  1176. "security": [
  1177. {
  1178. "token": []
  1179. }
  1180. ],
  1181. "description": "创建设备",
  1182. "consumes": [
  1183. "application/json"
  1184. ],
  1185. "produces": [
  1186. "application/json"
  1187. ],
  1188. "tags": [
  1189. "设备"
  1190. ],
  1191. "summary": "创建设备",
  1192. "parameters": [
  1193. {
  1194. "description": "设备信息",
  1195. "name": "body",
  1196. "in": "body",
  1197. "required": true,
  1198. "schema": {
  1199. "$ref": "#/definitions/admin.PeerForm"
  1200. }
  1201. }
  1202. ],
  1203. "responses": {
  1204. "200": {
  1205. "description": "OK",
  1206. "schema": {
  1207. "allOf": [
  1208. {
  1209. "$ref": "#/definitions/response.Response"
  1210. },
  1211. {
  1212. "type": "object",
  1213. "properties": {
  1214. "data": {
  1215. "$ref": "#/definitions/model.Peer"
  1216. }
  1217. }
  1218. }
  1219. ]
  1220. }
  1221. },
  1222. "500": {
  1223. "description": "Internal Server Error",
  1224. "schema": {
  1225. "$ref": "#/definitions/response.Response"
  1226. }
  1227. }
  1228. }
  1229. }
  1230. },
  1231. "/admin/peer/delete": {
  1232. "post": {
  1233. "security": [
  1234. {
  1235. "token": []
  1236. }
  1237. ],
  1238. "description": "设备删除",
  1239. "consumes": [
  1240. "application/json"
  1241. ],
  1242. "produces": [
  1243. "application/json"
  1244. ],
  1245. "tags": [
  1246. "设备"
  1247. ],
  1248. "summary": "设备删除",
  1249. "parameters": [
  1250. {
  1251. "description": "设备信息",
  1252. "name": "body",
  1253. "in": "body",
  1254. "required": true,
  1255. "schema": {
  1256. "$ref": "#/definitions/admin.PeerForm"
  1257. }
  1258. }
  1259. ],
  1260. "responses": {
  1261. "200": {
  1262. "description": "OK",
  1263. "schema": {
  1264. "$ref": "#/definitions/response.Response"
  1265. }
  1266. },
  1267. "500": {
  1268. "description": "Internal Server Error",
  1269. "schema": {
  1270. "$ref": "#/definitions/response.Response"
  1271. }
  1272. }
  1273. }
  1274. }
  1275. },
  1276. "/admin/peer/detail/{id}": {
  1277. "get": {
  1278. "security": [
  1279. {
  1280. "token": []
  1281. }
  1282. ],
  1283. "description": "设备详情",
  1284. "consumes": [
  1285. "application/json"
  1286. ],
  1287. "produces": [
  1288. "application/json"
  1289. ],
  1290. "tags": [
  1291. "设备"
  1292. ],
  1293. "summary": "设备详情",
  1294. "parameters": [
  1295. {
  1296. "type": "integer",
  1297. "description": "ID",
  1298. "name": "id",
  1299. "in": "path",
  1300. "required": true
  1301. }
  1302. ],
  1303. "responses": {
  1304. "200": {
  1305. "description": "OK",
  1306. "schema": {
  1307. "allOf": [
  1308. {
  1309. "$ref": "#/definitions/response.Response"
  1310. },
  1311. {
  1312. "type": "object",
  1313. "properties": {
  1314. "data": {
  1315. "$ref": "#/definitions/model.Peer"
  1316. }
  1317. }
  1318. }
  1319. ]
  1320. }
  1321. },
  1322. "500": {
  1323. "description": "Internal Server Error",
  1324. "schema": {
  1325. "$ref": "#/definitions/response.Response"
  1326. }
  1327. }
  1328. }
  1329. }
  1330. },
  1331. "/admin/peer/list": {
  1332. "get": {
  1333. "security": [
  1334. {
  1335. "token": []
  1336. }
  1337. ],
  1338. "description": "设备列表",
  1339. "consumes": [
  1340. "application/json"
  1341. ],
  1342. "produces": [
  1343. "application/json"
  1344. ],
  1345. "tags": [
  1346. "设备"
  1347. ],
  1348. "summary": "设备列表",
  1349. "parameters": [
  1350. {
  1351. "type": "integer",
  1352. "description": "页码",
  1353. "name": "page",
  1354. "in": "query"
  1355. },
  1356. {
  1357. "type": "integer",
  1358. "description": "页大小",
  1359. "name": "page_size",
  1360. "in": "query"
  1361. }
  1362. ],
  1363. "responses": {
  1364. "200": {
  1365. "description": "OK",
  1366. "schema": {
  1367. "allOf": [
  1368. {
  1369. "$ref": "#/definitions/response.Response"
  1370. },
  1371. {
  1372. "type": "object",
  1373. "properties": {
  1374. "data": {
  1375. "$ref": "#/definitions/model.PeerList"
  1376. }
  1377. }
  1378. }
  1379. ]
  1380. }
  1381. },
  1382. "500": {
  1383. "description": "Internal Server Error",
  1384. "schema": {
  1385. "$ref": "#/definitions/response.Response"
  1386. }
  1387. }
  1388. }
  1389. }
  1390. },
  1391. "/admin/peer/update": {
  1392. "post": {
  1393. "security": [
  1394. {
  1395. "token": []
  1396. }
  1397. ],
  1398. "description": "设备编辑",
  1399. "consumes": [
  1400. "application/json"
  1401. ],
  1402. "produces": [
  1403. "application/json"
  1404. ],
  1405. "tags": [
  1406. "设备"
  1407. ],
  1408. "summary": "设备编辑",
  1409. "parameters": [
  1410. {
  1411. "description": "设备信息",
  1412. "name": "body",
  1413. "in": "body",
  1414. "required": true,
  1415. "schema": {
  1416. "$ref": "#/definitions/admin.PeerForm"
  1417. }
  1418. }
  1419. ],
  1420. "responses": {
  1421. "200": {
  1422. "description": "OK",
  1423. "schema": {
  1424. "allOf": [
  1425. {
  1426. "$ref": "#/definitions/response.Response"
  1427. },
  1428. {
  1429. "type": "object",
  1430. "properties": {
  1431. "data": {
  1432. "$ref": "#/definitions/model.Peer"
  1433. }
  1434. }
  1435. }
  1436. ]
  1437. }
  1438. },
  1439. "500": {
  1440. "description": "Internal Server Error",
  1441. "schema": {
  1442. "$ref": "#/definitions/response.Response"
  1443. }
  1444. }
  1445. }
  1446. }
  1447. },
  1448. "/admin/server-config": {
  1449. "get": {
  1450. "security": [
  1451. {
  1452. "token": []
  1453. }
  1454. ],
  1455. "description": "服务配置,给webclient提供api-server",
  1456. "consumes": [
  1457. "application/json"
  1458. ],
  1459. "produces": [
  1460. "application/json"
  1461. ],
  1462. "tags": [
  1463. "ADMIN"
  1464. ],
  1465. "summary": "服务配置",
  1466. "responses": {
  1467. "200": {
  1468. "description": "OK",
  1469. "schema": {
  1470. "$ref": "#/definitions/response.Response"
  1471. }
  1472. },
  1473. "500": {
  1474. "description": "Internal Server Error",
  1475. "schema": {
  1476. "$ref": "#/definitions/response.Response"
  1477. }
  1478. }
  1479. }
  1480. }
  1481. },
  1482. "/admin/tag/create": {
  1483. "post": {
  1484. "security": [
  1485. {
  1486. "token": []
  1487. }
  1488. ],
  1489. "description": "创建标签",
  1490. "consumes": [
  1491. "application/json"
  1492. ],
  1493. "produces": [
  1494. "application/json"
  1495. ],
  1496. "tags": [
  1497. "标签"
  1498. ],
  1499. "summary": "创建标签",
  1500. "parameters": [
  1501. {
  1502. "description": "标签信息",
  1503. "name": "body",
  1504. "in": "body",
  1505. "required": true,
  1506. "schema": {
  1507. "$ref": "#/definitions/admin.TagForm"
  1508. }
  1509. }
  1510. ],
  1511. "responses": {
  1512. "200": {
  1513. "description": "OK",
  1514. "schema": {
  1515. "allOf": [
  1516. {
  1517. "$ref": "#/definitions/response.Response"
  1518. },
  1519. {
  1520. "type": "object",
  1521. "properties": {
  1522. "data": {
  1523. "$ref": "#/definitions/model.Tag"
  1524. }
  1525. }
  1526. }
  1527. ]
  1528. }
  1529. },
  1530. "500": {
  1531. "description": "Internal Server Error",
  1532. "schema": {
  1533. "$ref": "#/definitions/response.Response"
  1534. }
  1535. }
  1536. }
  1537. }
  1538. },
  1539. "/admin/tag/delete": {
  1540. "post": {
  1541. "security": [
  1542. {
  1543. "token": []
  1544. }
  1545. ],
  1546. "description": "标签删除",
  1547. "consumes": [
  1548. "application/json"
  1549. ],
  1550. "produces": [
  1551. "application/json"
  1552. ],
  1553. "tags": [
  1554. "标签"
  1555. ],
  1556. "summary": "标签删除",
  1557. "parameters": [
  1558. {
  1559. "description": "标签信息",
  1560. "name": "body",
  1561. "in": "body",
  1562. "required": true,
  1563. "schema": {
  1564. "$ref": "#/definitions/admin.TagForm"
  1565. }
  1566. }
  1567. ],
  1568. "responses": {
  1569. "200": {
  1570. "description": "OK",
  1571. "schema": {
  1572. "$ref": "#/definitions/response.Response"
  1573. }
  1574. },
  1575. "500": {
  1576. "description": "Internal Server Error",
  1577. "schema": {
  1578. "$ref": "#/definitions/response.Response"
  1579. }
  1580. }
  1581. }
  1582. }
  1583. },
  1584. "/admin/tag/detail/{id}": {
  1585. "get": {
  1586. "security": [
  1587. {
  1588. "token": []
  1589. }
  1590. ],
  1591. "description": "标签详情",
  1592. "consumes": [
  1593. "application/json"
  1594. ],
  1595. "produces": [
  1596. "application/json"
  1597. ],
  1598. "tags": [
  1599. "标签"
  1600. ],
  1601. "summary": "标签详情",
  1602. "parameters": [
  1603. {
  1604. "type": "integer",
  1605. "description": "ID",
  1606. "name": "id",
  1607. "in": "path",
  1608. "required": true
  1609. }
  1610. ],
  1611. "responses": {
  1612. "200": {
  1613. "description": "OK",
  1614. "schema": {
  1615. "allOf": [
  1616. {
  1617. "$ref": "#/definitions/response.Response"
  1618. },
  1619. {
  1620. "type": "object",
  1621. "properties": {
  1622. "data": {
  1623. "$ref": "#/definitions/model.Tag"
  1624. }
  1625. }
  1626. }
  1627. ]
  1628. }
  1629. },
  1630. "500": {
  1631. "description": "Internal Server Error",
  1632. "schema": {
  1633. "$ref": "#/definitions/response.Response"
  1634. }
  1635. }
  1636. }
  1637. }
  1638. },
  1639. "/admin/tag/list": {
  1640. "get": {
  1641. "security": [
  1642. {
  1643. "token": []
  1644. }
  1645. ],
  1646. "description": "标签列表",
  1647. "consumes": [
  1648. "application/json"
  1649. ],
  1650. "produces": [
  1651. "application/json"
  1652. ],
  1653. "tags": [
  1654. "标签"
  1655. ],
  1656. "summary": "标签列表",
  1657. "parameters": [
  1658. {
  1659. "type": "integer",
  1660. "description": "页码",
  1661. "name": "page",
  1662. "in": "query"
  1663. },
  1664. {
  1665. "type": "integer",
  1666. "description": "页大小",
  1667. "name": "page_size",
  1668. "in": "query"
  1669. },
  1670. {
  1671. "type": "integer",
  1672. "description": "是否是我的",
  1673. "name": "is_my",
  1674. "in": "query"
  1675. },
  1676. {
  1677. "type": "integer",
  1678. "description": "用户id",
  1679. "name": "user_id",
  1680. "in": "query"
  1681. }
  1682. ],
  1683. "responses": {
  1684. "200": {
  1685. "description": "OK",
  1686. "schema": {
  1687. "allOf": [
  1688. {
  1689. "$ref": "#/definitions/response.Response"
  1690. },
  1691. {
  1692. "type": "object",
  1693. "properties": {
  1694. "data": {
  1695. "$ref": "#/definitions/model.TagList"
  1696. }
  1697. }
  1698. }
  1699. ]
  1700. }
  1701. },
  1702. "500": {
  1703. "description": "Internal Server Error",
  1704. "schema": {
  1705. "$ref": "#/definitions/response.Response"
  1706. }
  1707. }
  1708. }
  1709. }
  1710. },
  1711. "/admin/tag/update": {
  1712. "post": {
  1713. "security": [
  1714. {
  1715. "token": []
  1716. }
  1717. ],
  1718. "description": "标签编辑",
  1719. "consumes": [
  1720. "application/json"
  1721. ],
  1722. "produces": [
  1723. "application/json"
  1724. ],
  1725. "tags": [
  1726. "标签"
  1727. ],
  1728. "summary": "标签编辑",
  1729. "parameters": [
  1730. {
  1731. "description": "标签信息",
  1732. "name": "body",
  1733. "in": "body",
  1734. "required": true,
  1735. "schema": {
  1736. "$ref": "#/definitions/admin.TagForm"
  1737. }
  1738. }
  1739. ],
  1740. "responses": {
  1741. "200": {
  1742. "description": "OK",
  1743. "schema": {
  1744. "allOf": [
  1745. {
  1746. "$ref": "#/definitions/response.Response"
  1747. },
  1748. {
  1749. "type": "object",
  1750. "properties": {
  1751. "data": {
  1752. "$ref": "#/definitions/model.Tag"
  1753. }
  1754. }
  1755. }
  1756. ]
  1757. }
  1758. },
  1759. "500": {
  1760. "description": "Internal Server Error",
  1761. "schema": {
  1762. "$ref": "#/definitions/response.Response"
  1763. }
  1764. }
  1765. }
  1766. }
  1767. },
  1768. "/admin/user/changeCurPwd": {
  1769. "post": {
  1770. "security": [
  1771. {
  1772. "token": []
  1773. }
  1774. ],
  1775. "description": "修改当前用户密码",
  1776. "consumes": [
  1777. "application/json"
  1778. ],
  1779. "produces": [
  1780. "application/json"
  1781. ],
  1782. "tags": [
  1783. "用户"
  1784. ],
  1785. "summary": "修改当前用户密码",
  1786. "parameters": [
  1787. {
  1788. "description": "用户信息",
  1789. "name": "body",
  1790. "in": "body",
  1791. "required": true,
  1792. "schema": {
  1793. "$ref": "#/definitions/admin.ChangeCurPasswordForm"
  1794. }
  1795. }
  1796. ],
  1797. "responses": {
  1798. "200": {
  1799. "description": "OK",
  1800. "schema": {
  1801. "$ref": "#/definitions/response.Response"
  1802. }
  1803. },
  1804. "500": {
  1805. "description": "Internal Server Error",
  1806. "schema": {
  1807. "$ref": "#/definitions/response.Response"
  1808. }
  1809. }
  1810. }
  1811. }
  1812. },
  1813. "/admin/user/create": {
  1814. "post": {
  1815. "security": [
  1816. {
  1817. "token": []
  1818. }
  1819. ],
  1820. "description": "创建管理员",
  1821. "consumes": [
  1822. "application/json"
  1823. ],
  1824. "produces": [
  1825. "application/json"
  1826. ],
  1827. "tags": [
  1828. "用户"
  1829. ],
  1830. "summary": "创建管理员",
  1831. "parameters": [
  1832. {
  1833. "description": "管理员信息",
  1834. "name": "body",
  1835. "in": "body",
  1836. "required": true,
  1837. "schema": {
  1838. "$ref": "#/definitions/admin.UserForm"
  1839. }
  1840. }
  1841. ],
  1842. "responses": {
  1843. "200": {
  1844. "description": "OK",
  1845. "schema": {
  1846. "allOf": [
  1847. {
  1848. "$ref": "#/definitions/response.Response"
  1849. },
  1850. {
  1851. "type": "object",
  1852. "properties": {
  1853. "data": {
  1854. "$ref": "#/definitions/model.User"
  1855. }
  1856. }
  1857. }
  1858. ]
  1859. }
  1860. },
  1861. "500": {
  1862. "description": "Internal Server Error",
  1863. "schema": {
  1864. "$ref": "#/definitions/response.Response"
  1865. }
  1866. }
  1867. }
  1868. }
  1869. },
  1870. "/admin/user/current": {
  1871. "get": {
  1872. "security": [
  1873. {
  1874. "token": []
  1875. }
  1876. ],
  1877. "description": "当前用户",
  1878. "consumes": [
  1879. "application/json"
  1880. ],
  1881. "produces": [
  1882. "application/json"
  1883. ],
  1884. "tags": [
  1885. "用户"
  1886. ],
  1887. "summary": "当前用户",
  1888. "responses": {
  1889. "200": {
  1890. "description": "OK",
  1891. "schema": {
  1892. "allOf": [
  1893. {
  1894. "$ref": "#/definitions/response.Response"
  1895. },
  1896. {
  1897. "type": "object",
  1898. "properties": {
  1899. "data": {
  1900. "$ref": "#/definitions/admin.LoginPayload"
  1901. }
  1902. }
  1903. }
  1904. ]
  1905. }
  1906. },
  1907. "500": {
  1908. "description": "Internal Server Error",
  1909. "schema": {
  1910. "$ref": "#/definitions/response.Response"
  1911. }
  1912. }
  1913. }
  1914. }
  1915. },
  1916. "/admin/user/delete": {
  1917. "post": {
  1918. "security": [
  1919. {
  1920. "token": []
  1921. }
  1922. ],
  1923. "description": "管理员编删除",
  1924. "consumes": [
  1925. "application/json"
  1926. ],
  1927. "produces": [
  1928. "application/json"
  1929. ],
  1930. "tags": [
  1931. "用户"
  1932. ],
  1933. "summary": "管理员删除",
  1934. "parameters": [
  1935. {
  1936. "description": "用户信息",
  1937. "name": "body",
  1938. "in": "body",
  1939. "required": true,
  1940. "schema": {
  1941. "$ref": "#/definitions/admin.UserForm"
  1942. }
  1943. }
  1944. ],
  1945. "responses": {
  1946. "200": {
  1947. "description": "OK",
  1948. "schema": {
  1949. "$ref": "#/definitions/response.Response"
  1950. }
  1951. },
  1952. "500": {
  1953. "description": "Internal Server Error",
  1954. "schema": {
  1955. "$ref": "#/definitions/response.Response"
  1956. }
  1957. }
  1958. }
  1959. }
  1960. },
  1961. "/admin/user/detail/{id}": {
  1962. "get": {
  1963. "security": [
  1964. {
  1965. "token": []
  1966. }
  1967. ],
  1968. "description": "管理员详情",
  1969. "consumes": [
  1970. "application/json"
  1971. ],
  1972. "produces": [
  1973. "application/json"
  1974. ],
  1975. "tags": [
  1976. "用户"
  1977. ],
  1978. "summary": "管理员详情",
  1979. "parameters": [
  1980. {
  1981. "type": "integer",
  1982. "description": "ID",
  1983. "name": "id",
  1984. "in": "path",
  1985. "required": true
  1986. }
  1987. ],
  1988. "responses": {
  1989. "200": {
  1990. "description": "OK",
  1991. "schema": {
  1992. "allOf": [
  1993. {
  1994. "$ref": "#/definitions/response.Response"
  1995. },
  1996. {
  1997. "type": "object",
  1998. "properties": {
  1999. "data": {
  2000. "$ref": "#/definitions/model.User"
  2001. }
  2002. }
  2003. }
  2004. ]
  2005. }
  2006. },
  2007. "500": {
  2008. "description": "Internal Server Error",
  2009. "schema": {
  2010. "$ref": "#/definitions/response.Response"
  2011. }
  2012. }
  2013. }
  2014. }
  2015. },
  2016. "/admin/user/list": {
  2017. "get": {
  2018. "security": [
  2019. {
  2020. "token": []
  2021. }
  2022. ],
  2023. "description": "管理员列表",
  2024. "consumes": [
  2025. "application/json"
  2026. ],
  2027. "produces": [
  2028. "application/json"
  2029. ],
  2030. "tags": [
  2031. "用户"
  2032. ],
  2033. "summary": "管理员列表",
  2034. "parameters": [
  2035. {
  2036. "type": "integer",
  2037. "description": "页码",
  2038. "name": "page",
  2039. "in": "query"
  2040. },
  2041. {
  2042. "type": "integer",
  2043. "description": "页大小",
  2044. "name": "page_size",
  2045. "in": "query"
  2046. },
  2047. {
  2048. "type": "integer",
  2049. "description": "账户",
  2050. "name": "username",
  2051. "in": "query"
  2052. }
  2053. ],
  2054. "responses": {
  2055. "200": {
  2056. "description": "OK",
  2057. "schema": {
  2058. "allOf": [
  2059. {
  2060. "$ref": "#/definitions/response.Response"
  2061. },
  2062. {
  2063. "type": "object",
  2064. "properties": {
  2065. "data": {
  2066. "$ref": "#/definitions/model.UserList"
  2067. }
  2068. }
  2069. }
  2070. ]
  2071. }
  2072. },
  2073. "500": {
  2074. "description": "Internal Server Error",
  2075. "schema": {
  2076. "$ref": "#/definitions/response.Response"
  2077. }
  2078. }
  2079. }
  2080. }
  2081. },
  2082. "/admin/user/myOauth": {
  2083. "get": {
  2084. "security": [
  2085. {
  2086. "token": []
  2087. }
  2088. ],
  2089. "description": "我的授权",
  2090. "consumes": [
  2091. "application/json"
  2092. ],
  2093. "produces": [
  2094. "application/json"
  2095. ],
  2096. "tags": [
  2097. "用户"
  2098. ],
  2099. "summary": "我的授权",
  2100. "responses": {
  2101. "200": {
  2102. "description": "OK",
  2103. "schema": {
  2104. "allOf": [
  2105. {
  2106. "$ref": "#/definitions/response.Response"
  2107. },
  2108. {
  2109. "type": "object",
  2110. "properties": {
  2111. "data": {
  2112. "type": "array",
  2113. "items": {
  2114. "$ref": "#/definitions/admin.UserOauthItem"
  2115. }
  2116. }
  2117. }
  2118. }
  2119. ]
  2120. }
  2121. },
  2122. "500": {
  2123. "description": "Internal Server Error",
  2124. "schema": {
  2125. "$ref": "#/definitions/response.Response"
  2126. }
  2127. }
  2128. }
  2129. }
  2130. },
  2131. "/admin/user/update": {
  2132. "post": {
  2133. "security": [
  2134. {
  2135. "token": []
  2136. }
  2137. ],
  2138. "description": "管理员编辑",
  2139. "consumes": [
  2140. "application/json"
  2141. ],
  2142. "produces": [
  2143. "application/json"
  2144. ],
  2145. "tags": [
  2146. "用户"
  2147. ],
  2148. "summary": "管理员编辑",
  2149. "parameters": [
  2150. {
  2151. "description": "用户信息",
  2152. "name": "body",
  2153. "in": "body",
  2154. "required": true,
  2155. "schema": {
  2156. "$ref": "#/definitions/admin.UserForm"
  2157. }
  2158. }
  2159. ],
  2160. "responses": {
  2161. "200": {
  2162. "description": "OK",
  2163. "schema": {
  2164. "allOf": [
  2165. {
  2166. "$ref": "#/definitions/response.Response"
  2167. },
  2168. {
  2169. "type": "object",
  2170. "properties": {
  2171. "data": {
  2172. "$ref": "#/definitions/model.User"
  2173. }
  2174. }
  2175. }
  2176. ]
  2177. }
  2178. },
  2179. "500": {
  2180. "description": "Internal Server Error",
  2181. "schema": {
  2182. "$ref": "#/definitions/response.Response"
  2183. }
  2184. }
  2185. }
  2186. }
  2187. },
  2188. "/admin/user/updatePassword": {
  2189. "post": {
  2190. "security": [
  2191. {
  2192. "token": []
  2193. }
  2194. ],
  2195. "description": "修改密码",
  2196. "consumes": [
  2197. "application/json"
  2198. ],
  2199. "produces": [
  2200. "application/json"
  2201. ],
  2202. "tags": [
  2203. "用户"
  2204. ],
  2205. "summary": "修改密码",
  2206. "parameters": [
  2207. {
  2208. "description": "用户信息",
  2209. "name": "body",
  2210. "in": "body",
  2211. "required": true,
  2212. "schema": {
  2213. "$ref": "#/definitions/admin.UserPasswordForm"
  2214. }
  2215. }
  2216. ],
  2217. "responses": {
  2218. "200": {
  2219. "description": "OK",
  2220. "schema": {
  2221. "$ref": "#/definitions/response.Response"
  2222. }
  2223. },
  2224. "500": {
  2225. "description": "Internal Server Error",
  2226. "schema": {
  2227. "$ref": "#/definitions/response.Response"
  2228. }
  2229. }
  2230. }
  2231. }
  2232. }
  2233. },
  2234. "definitions": {
  2235. "Gwen_http_request_admin.Login": {
  2236. "type": "object",
  2237. "required": [
  2238. "password",
  2239. "username"
  2240. ],
  2241. "properties": {
  2242. "password": {
  2243. "type": "string"
  2244. },
  2245. "platform": {
  2246. "type": "string"
  2247. },
  2248. "username": {
  2249. "type": "string"
  2250. }
  2251. }
  2252. },
  2253. "admin.AddressBookForm": {
  2254. "type": "object",
  2255. "required": [
  2256. "id"
  2257. ],
  2258. "properties": {
  2259. "alias": {
  2260. "type": "string"
  2261. },
  2262. "forceAlwaysRelay": {
  2263. "type": "boolean"
  2264. },
  2265. "hash": {
  2266. "type": "string"
  2267. },
  2268. "hostname": {
  2269. "type": "string"
  2270. },
  2271. "id": {
  2272. "type": "string"
  2273. },
  2274. "loginName": {
  2275. "type": "string"
  2276. },
  2277. "online": {
  2278. "type": "boolean"
  2279. },
  2280. "password": {
  2281. "type": "string"
  2282. },
  2283. "platform": {
  2284. "type": "string"
  2285. },
  2286. "rdpPort": {
  2287. "type": "string"
  2288. },
  2289. "rdpUsername": {
  2290. "type": "string"
  2291. },
  2292. "row_id": {
  2293. "type": "integer"
  2294. },
  2295. "sameServer": {
  2296. "type": "boolean"
  2297. },
  2298. "tags": {
  2299. "type": "array",
  2300. "items": {
  2301. "type": "string"
  2302. }
  2303. },
  2304. "user_id": {
  2305. "type": "integer"
  2306. },
  2307. "username": {
  2308. "type": "string"
  2309. }
  2310. }
  2311. },
  2312. "admin.ChangeCurPasswordForm": {
  2313. "type": "object",
  2314. "required": [
  2315. "new_password",
  2316. "old_password"
  2317. ],
  2318. "properties": {
  2319. "new_password": {
  2320. "type": "string",
  2321. "maxLength": 20,
  2322. "minLength": 4
  2323. },
  2324. "old_password": {
  2325. "type": "string",
  2326. "maxLength": 20,
  2327. "minLength": 4
  2328. }
  2329. }
  2330. },
  2331. "admin.GroupForm": {
  2332. "type": "object",
  2333. "required": [
  2334. "name"
  2335. ],
  2336. "properties": {
  2337. "id": {
  2338. "type": "integer"
  2339. },
  2340. "name": {
  2341. "type": "string"
  2342. }
  2343. }
  2344. },
  2345. "admin.LoginPayload": {
  2346. "type": "object",
  2347. "properties": {
  2348. "nickname": {
  2349. "type": "string"
  2350. },
  2351. "route_names": {
  2352. "type": "array",
  2353. "items": {
  2354. "type": "string"
  2355. }
  2356. },
  2357. "token": {
  2358. "type": "string"
  2359. },
  2360. "username": {
  2361. "type": "string"
  2362. }
  2363. }
  2364. },
  2365. "admin.OauthForm": {
  2366. "type": "object",
  2367. "required": [
  2368. "client_id",
  2369. "client_secret",
  2370. "op",
  2371. "redirect_url"
  2372. ],
  2373. "properties": {
  2374. "auto_register": {
  2375. "type": "boolean"
  2376. },
  2377. "client_id": {
  2378. "type": "string"
  2379. },
  2380. "client_secret": {
  2381. "type": "string"
  2382. },
  2383. "id": {
  2384. "type": "integer"
  2385. },
  2386. "op": {
  2387. "type": "string"
  2388. },
  2389. "redirect_url": {
  2390. "type": "string"
  2391. }
  2392. }
  2393. },
  2394. "admin.PeerForm": {
  2395. "type": "object",
  2396. "properties": {
  2397. "cpu": {
  2398. "type": "string"
  2399. },
  2400. "hostname": {
  2401. "type": "string"
  2402. },
  2403. "id": {
  2404. "type": "string"
  2405. },
  2406. "memory": {
  2407. "type": "string"
  2408. },
  2409. "os": {
  2410. "type": "string"
  2411. },
  2412. "row_id": {
  2413. "type": "integer"
  2414. },
  2415. "username": {
  2416. "type": "string"
  2417. },
  2418. "uuid": {
  2419. "type": "string"
  2420. },
  2421. "version": {
  2422. "type": "string"
  2423. }
  2424. }
  2425. },
  2426. "admin.TagForm": {
  2427. "type": "object",
  2428. "required": [
  2429. "color",
  2430. "name"
  2431. ],
  2432. "properties": {
  2433. "color": {
  2434. "type": "integer"
  2435. },
  2436. "id": {
  2437. "type": "integer"
  2438. },
  2439. "name": {
  2440. "type": "string"
  2441. },
  2442. "user_id": {
  2443. "type": "integer"
  2444. }
  2445. }
  2446. },
  2447. "admin.UserForm": {
  2448. "type": "object",
  2449. "required": [
  2450. "group_id",
  2451. "nickname",
  2452. "status",
  2453. "username"
  2454. ],
  2455. "properties": {
  2456. "avatar": {
  2457. "type": "string"
  2458. },
  2459. "group_id": {
  2460. "type": "integer"
  2461. },
  2462. "id": {
  2463. "type": "integer"
  2464. },
  2465. "is_admin": {
  2466. "type": "boolean"
  2467. },
  2468. "nickname": {
  2469. "description": "Password string `json:\"password\" validate:\"required,gte=4,lte=20\"`",
  2470. "type": "string"
  2471. },
  2472. "status": {
  2473. "minimum": 0,
  2474. "allOf": [
  2475. {
  2476. "$ref": "#/definitions/model.StatusCode"
  2477. }
  2478. ]
  2479. },
  2480. "username": {
  2481. "type": "string",
  2482. "maxLength": 10,
  2483. "minLength": 4
  2484. }
  2485. }
  2486. },
  2487. "admin.UserOauthItem": {
  2488. "type": "object",
  2489. "properties": {
  2490. "status": {
  2491. "type": "integer"
  2492. },
  2493. "third_type": {
  2494. "type": "string"
  2495. }
  2496. }
  2497. },
  2498. "admin.UserPasswordForm": {
  2499. "type": "object",
  2500. "required": [
  2501. "id",
  2502. "password"
  2503. ],
  2504. "properties": {
  2505. "id": {
  2506. "type": "integer"
  2507. },
  2508. "password": {
  2509. "type": "string",
  2510. "maxLength": 20,
  2511. "minLength": 4
  2512. }
  2513. }
  2514. },
  2515. "model.AddressBook": {
  2516. "type": "object",
  2517. "properties": {
  2518. "alias": {
  2519. "type": "string"
  2520. },
  2521. "created_at": {
  2522. "type": "string"
  2523. },
  2524. "forceAlwaysRelay": {
  2525. "type": "boolean"
  2526. },
  2527. "hash": {
  2528. "type": "string"
  2529. },
  2530. "hostname": {
  2531. "type": "string"
  2532. },
  2533. "id": {
  2534. "type": "string"
  2535. },
  2536. "loginName": {
  2537. "type": "string"
  2538. },
  2539. "online": {
  2540. "type": "boolean"
  2541. },
  2542. "password": {
  2543. "type": "string"
  2544. },
  2545. "platform": {
  2546. "type": "string"
  2547. },
  2548. "rdpPort": {
  2549. "type": "string"
  2550. },
  2551. "rdpUsername": {
  2552. "type": "string"
  2553. },
  2554. "row_id": {
  2555. "type": "integer"
  2556. },
  2557. "sameServer": {
  2558. "type": "boolean"
  2559. },
  2560. "tags": {
  2561. "type": "array",
  2562. "items": {
  2563. "type": "string"
  2564. }
  2565. },
  2566. "updated_at": {
  2567. "type": "string"
  2568. },
  2569. "user_id": {
  2570. "type": "integer"
  2571. },
  2572. "username": {
  2573. "type": "string"
  2574. }
  2575. }
  2576. },
  2577. "model.AddressBookList": {
  2578. "type": "object",
  2579. "properties": {
  2580. "list": {
  2581. "type": "array",
  2582. "items": {
  2583. "$ref": "#/definitions/model.AddressBook"
  2584. }
  2585. },
  2586. "page": {
  2587. "type": "integer"
  2588. },
  2589. "page_size": {
  2590. "type": "integer"
  2591. },
  2592. "total": {
  2593. "type": "integer"
  2594. }
  2595. }
  2596. },
  2597. "model.Group": {
  2598. "type": "object",
  2599. "properties": {
  2600. "created_at": {
  2601. "type": "string"
  2602. },
  2603. "id": {
  2604. "type": "integer"
  2605. },
  2606. "name": {
  2607. "type": "string"
  2608. },
  2609. "type": {
  2610. "type": "integer"
  2611. },
  2612. "updated_at": {
  2613. "type": "string"
  2614. }
  2615. }
  2616. },
  2617. "model.GroupList": {
  2618. "type": "object",
  2619. "properties": {
  2620. "list": {
  2621. "type": "array",
  2622. "items": {
  2623. "$ref": "#/definitions/model.Group"
  2624. }
  2625. },
  2626. "page": {
  2627. "type": "integer"
  2628. },
  2629. "page_size": {
  2630. "type": "integer"
  2631. },
  2632. "total": {
  2633. "type": "integer"
  2634. }
  2635. }
  2636. },
  2637. "model.LoginLog": {
  2638. "type": "object",
  2639. "properties": {
  2640. "client": {
  2641. "description": "webadmin,webclient,app,",
  2642. "type": "string"
  2643. },
  2644. "created_at": {
  2645. "type": "string"
  2646. },
  2647. "id": {
  2648. "type": "integer"
  2649. },
  2650. "ip": {
  2651. "type": "string"
  2652. },
  2653. "platform": {
  2654. "description": "windows,linux,mac,android,ios",
  2655. "type": "string"
  2656. },
  2657. "type": {
  2658. "description": "account,oauth",
  2659. "type": "string"
  2660. },
  2661. "updated_at": {
  2662. "type": "string"
  2663. },
  2664. "user_id": {
  2665. "type": "integer"
  2666. },
  2667. "uuid": {
  2668. "type": "string"
  2669. }
  2670. }
  2671. },
  2672. "model.LoginLogList": {
  2673. "type": "object",
  2674. "properties": {
  2675. "list": {
  2676. "type": "array",
  2677. "items": {
  2678. "$ref": "#/definitions/model.LoginLog"
  2679. }
  2680. },
  2681. "page": {
  2682. "type": "integer"
  2683. },
  2684. "page_size": {
  2685. "type": "integer"
  2686. },
  2687. "total": {
  2688. "type": "integer"
  2689. }
  2690. }
  2691. },
  2692. "model.Oauth": {
  2693. "type": "object",
  2694. "properties": {
  2695. "auto_register": {
  2696. "type": "boolean"
  2697. },
  2698. "client_id": {
  2699. "type": "string"
  2700. },
  2701. "client_secret": {
  2702. "type": "string"
  2703. },
  2704. "created_at": {
  2705. "type": "string"
  2706. },
  2707. "id": {
  2708. "type": "integer"
  2709. },
  2710. "op": {
  2711. "type": "string"
  2712. },
  2713. "redirect_url": {
  2714. "type": "string"
  2715. },
  2716. "updated_at": {
  2717. "type": "string"
  2718. }
  2719. }
  2720. },
  2721. "model.OauthList": {
  2722. "type": "object",
  2723. "properties": {
  2724. "list": {
  2725. "type": "array",
  2726. "items": {
  2727. "$ref": "#/definitions/model.Oauth"
  2728. }
  2729. },
  2730. "page": {
  2731. "type": "integer"
  2732. },
  2733. "page_size": {
  2734. "type": "integer"
  2735. },
  2736. "total": {
  2737. "type": "integer"
  2738. }
  2739. }
  2740. },
  2741. "model.Peer": {
  2742. "type": "object",
  2743. "properties": {
  2744. "cpu": {
  2745. "type": "string"
  2746. },
  2747. "created_at": {
  2748. "type": "string"
  2749. },
  2750. "hostname": {
  2751. "type": "string"
  2752. },
  2753. "id": {
  2754. "type": "string"
  2755. },
  2756. "memory": {
  2757. "type": "string"
  2758. },
  2759. "os": {
  2760. "type": "string"
  2761. },
  2762. "row_id": {
  2763. "type": "integer"
  2764. },
  2765. "updated_at": {
  2766. "type": "string"
  2767. },
  2768. "user": {
  2769. "$ref": "#/definitions/model.User"
  2770. },
  2771. "user_id": {
  2772. "type": "integer"
  2773. },
  2774. "username": {
  2775. "type": "string"
  2776. },
  2777. "uuid": {
  2778. "type": "string"
  2779. },
  2780. "version": {
  2781. "type": "string"
  2782. }
  2783. }
  2784. },
  2785. "model.PeerList": {
  2786. "type": "object",
  2787. "properties": {
  2788. "list": {
  2789. "type": "array",
  2790. "items": {
  2791. "$ref": "#/definitions/model.Peer"
  2792. }
  2793. },
  2794. "page": {
  2795. "type": "integer"
  2796. },
  2797. "page_size": {
  2798. "type": "integer"
  2799. },
  2800. "total": {
  2801. "type": "integer"
  2802. }
  2803. }
  2804. },
  2805. "model.StatusCode": {
  2806. "type": "integer",
  2807. "enum": [
  2808. 1,
  2809. 2
  2810. ],
  2811. "x-enum-comments": {
  2812. "COMMON_STATUS_DISABLED": "通用状态 禁用",
  2813. "COMMON_STATUS_ENABLE": "通用状态 启用"
  2814. },
  2815. "x-enum-varnames": [
  2816. "COMMON_STATUS_ENABLE",
  2817. "COMMON_STATUS_DISABLED"
  2818. ]
  2819. },
  2820. "model.Tag": {
  2821. "type": "object",
  2822. "properties": {
  2823. "color": {
  2824. "description": "color 是flutter的颜色值,从0x00000000 到 0xFFFFFFFF; 前两位表示透明度,后面6位表示颜色, 可以转成rgba",
  2825. "type": "integer"
  2826. },
  2827. "created_at": {
  2828. "type": "string"
  2829. },
  2830. "id": {
  2831. "type": "integer"
  2832. },
  2833. "name": {
  2834. "type": "string"
  2835. },
  2836. "updated_at": {
  2837. "type": "string"
  2838. },
  2839. "user_id": {
  2840. "type": "integer"
  2841. }
  2842. }
  2843. },
  2844. "model.TagList": {
  2845. "type": "object",
  2846. "properties": {
  2847. "list": {
  2848. "type": "array",
  2849. "items": {
  2850. "$ref": "#/definitions/model.Tag"
  2851. }
  2852. },
  2853. "page": {
  2854. "type": "integer"
  2855. },
  2856. "page_size": {
  2857. "type": "integer"
  2858. },
  2859. "total": {
  2860. "type": "integer"
  2861. }
  2862. }
  2863. },
  2864. "model.User": {
  2865. "type": "object",
  2866. "properties": {
  2867. "avatar": {
  2868. "type": "string"
  2869. },
  2870. "created_at": {
  2871. "type": "string"
  2872. },
  2873. "group_id": {
  2874. "type": "integer"
  2875. },
  2876. "id": {
  2877. "type": "integer"
  2878. },
  2879. "is_admin": {
  2880. "type": "boolean"
  2881. },
  2882. "nickname": {
  2883. "type": "string"
  2884. },
  2885. "status": {
  2886. "$ref": "#/definitions/model.StatusCode"
  2887. },
  2888. "updated_at": {
  2889. "type": "string"
  2890. },
  2891. "username": {
  2892. "type": "string"
  2893. }
  2894. }
  2895. },
  2896. "model.UserList": {
  2897. "type": "object",
  2898. "properties": {
  2899. "list": {
  2900. "type": "array",
  2901. "items": {
  2902. "$ref": "#/definitions/model.User"
  2903. }
  2904. },
  2905. "page": {
  2906. "type": "integer"
  2907. },
  2908. "page_size": {
  2909. "type": "integer"
  2910. },
  2911. "total": {
  2912. "type": "integer"
  2913. }
  2914. }
  2915. },
  2916. "response.Response": {
  2917. "type": "object",
  2918. "properties": {
  2919. "code": {
  2920. "type": "integer"
  2921. },
  2922. "data": {},
  2923. "message": {
  2924. "type": "string"
  2925. }
  2926. }
  2927. }
  2928. },
  2929. "securityDefinitions": {
  2930. "BearerAuth": {
  2931. "type": "apiKey",
  2932. "name": "Authorization",
  2933. "in": "header"
  2934. },
  2935. "token": {
  2936. "type": "apiKey",
  2937. "name": "api-token",
  2938. "in": "header"
  2939. }
  2940. }
  2941. }