admin_docs.go 95 KB

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