admin_swagger.json 95 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378237923802381238223832384238523862387238823892390239123922393239423952396239723982399240024012402240324042405240624072408240924102411241224132414241524162417241824192420242124222423242424252426242724282429243024312432243324342435243624372438243924402441244224432444244524462447244824492450245124522453245424552456245724582459246024612462246324642465246624672468246924702471247224732474247524762477247824792480248124822483248424852486248724882489249024912492249324942495249624972498249925002501250225032504250525062507250825092510251125122513251425152516251725182519252025212522252325242525252625272528252925302531253225332534253525362537253825392540254125422543254425452546254725482549255025512552255325542555255625572558255925602561256225632564256525662567256825692570257125722573257425752576257725782579258025812582258325842585258625872588258925902591259225932594259525962597259825992600260126022603260426052606260726082609261026112612261326142615261626172618261926202621262226232624262526262627262826292630263126322633263426352636263726382639264026412642264326442645264626472648264926502651265226532654265526562657265826592660266126622663266426652666266726682669267026712672267326742675267626772678267926802681268226832684268526862687268826892690269126922693269426952696269726982699270027012702270327042705270627072708270927102711271227132714271527162717271827192720272127222723272427252726272727282729273027312732273327342735273627372738273927402741274227432744274527462747274827492750275127522753275427552756275727582759276027612762276327642765276627672768276927702771277227732774277527762777277827792780278127822783278427852786278727882789279027912792279327942795279627972798279928002801280228032804280528062807280828092810281128122813281428152816281728182819282028212822282328242825282628272828282928302831283228332834283528362837283828392840284128422843284428452846284728482849285028512852285328542855285628572858285928602861286228632864286528662867286828692870287128722873287428752876287728782879288028812882288328842885288628872888288928902891289228932894289528962897289828992900290129022903290429052906290729082909291029112912291329142915291629172918291929202921292229232924292529262927292829292930293129322933293429352936293729382939294029412942
  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. "force_always_relay": {
  2263. "type": "boolean"
  2264. },
  2265. "hash": {
  2266. "type": "string"
  2267. },
  2268. "hostname": {
  2269. "type": "string"
  2270. },
  2271. "id": {
  2272. "type": "string"
  2273. },
  2274. "login_name": {
  2275. "type": "string"
  2276. },
  2277. "online": {
  2278. "type": "boolean"
  2279. },
  2280. "password": {
  2281. "type": "string"
  2282. },
  2283. "platform": {
  2284. "type": "string"
  2285. },
  2286. "rdp_port": {
  2287. "type": "string"
  2288. },
  2289. "rdp_username": {
  2290. "type": "string"
  2291. },
  2292. "row_id": {
  2293. "type": "integer"
  2294. },
  2295. "same_server": {
  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. "user_id"
  2432. ],
  2433. "properties": {
  2434. "color": {
  2435. "type": "integer"
  2436. },
  2437. "id": {
  2438. "type": "integer"
  2439. },
  2440. "name": {
  2441. "type": "string"
  2442. },
  2443. "user_id": {
  2444. "type": "integer"
  2445. }
  2446. }
  2447. },
  2448. "admin.UserForm": {
  2449. "type": "object",
  2450. "required": [
  2451. "group_id",
  2452. "nickname",
  2453. "status",
  2454. "username"
  2455. ],
  2456. "properties": {
  2457. "avatar": {
  2458. "type": "string"
  2459. },
  2460. "group_id": {
  2461. "type": "integer"
  2462. },
  2463. "id": {
  2464. "type": "integer"
  2465. },
  2466. "is_admin": {
  2467. "type": "boolean"
  2468. },
  2469. "nickname": {
  2470. "description": "Password string `json:\"password\" validate:\"required,gte=4,lte=20\"`",
  2471. "type": "string"
  2472. },
  2473. "status": {
  2474. "minimum": 0,
  2475. "allOf": [
  2476. {
  2477. "$ref": "#/definitions/model.StatusCode"
  2478. }
  2479. ]
  2480. },
  2481. "username": {
  2482. "type": "string",
  2483. "maxLength": 10,
  2484. "minLength": 4
  2485. }
  2486. }
  2487. },
  2488. "admin.UserOauthItem": {
  2489. "type": "object",
  2490. "properties": {
  2491. "status": {
  2492. "type": "integer"
  2493. },
  2494. "third_type": {
  2495. "type": "string"
  2496. }
  2497. }
  2498. },
  2499. "admin.UserPasswordForm": {
  2500. "type": "object",
  2501. "required": [
  2502. "id",
  2503. "password"
  2504. ],
  2505. "properties": {
  2506. "id": {
  2507. "type": "integer"
  2508. },
  2509. "password": {
  2510. "type": "string",
  2511. "maxLength": 20,
  2512. "minLength": 4
  2513. }
  2514. }
  2515. },
  2516. "model.AddressBook": {
  2517. "type": "object",
  2518. "properties": {
  2519. "alias": {
  2520. "type": "string"
  2521. },
  2522. "created_at": {
  2523. "type": "string"
  2524. },
  2525. "forceAlwaysRelay": {
  2526. "type": "boolean"
  2527. },
  2528. "hash": {
  2529. "type": "string"
  2530. },
  2531. "hostname": {
  2532. "type": "string"
  2533. },
  2534. "id": {
  2535. "type": "string"
  2536. },
  2537. "loginName": {
  2538. "type": "string"
  2539. },
  2540. "online": {
  2541. "type": "boolean"
  2542. },
  2543. "password": {
  2544. "type": "string"
  2545. },
  2546. "platform": {
  2547. "type": "string"
  2548. },
  2549. "rdpPort": {
  2550. "type": "string"
  2551. },
  2552. "rdpUsername": {
  2553. "type": "string"
  2554. },
  2555. "row_id": {
  2556. "type": "integer"
  2557. },
  2558. "sameServer": {
  2559. "type": "boolean"
  2560. },
  2561. "tags": {
  2562. "type": "array",
  2563. "items": {
  2564. "type": "string"
  2565. }
  2566. },
  2567. "updated_at": {
  2568. "type": "string"
  2569. },
  2570. "user_id": {
  2571. "type": "integer"
  2572. },
  2573. "username": {
  2574. "type": "string"
  2575. }
  2576. }
  2577. },
  2578. "model.AddressBookList": {
  2579. "type": "object",
  2580. "properties": {
  2581. "list": {
  2582. "type": "array",
  2583. "items": {
  2584. "$ref": "#/definitions/model.AddressBook"
  2585. }
  2586. },
  2587. "page": {
  2588. "type": "integer"
  2589. },
  2590. "page_size": {
  2591. "type": "integer"
  2592. },
  2593. "total": {
  2594. "type": "integer"
  2595. }
  2596. }
  2597. },
  2598. "model.Group": {
  2599. "type": "object",
  2600. "properties": {
  2601. "created_at": {
  2602. "type": "string"
  2603. },
  2604. "id": {
  2605. "type": "integer"
  2606. },
  2607. "name": {
  2608. "type": "string"
  2609. },
  2610. "type": {
  2611. "type": "integer"
  2612. },
  2613. "updated_at": {
  2614. "type": "string"
  2615. }
  2616. }
  2617. },
  2618. "model.GroupList": {
  2619. "type": "object",
  2620. "properties": {
  2621. "list": {
  2622. "type": "array",
  2623. "items": {
  2624. "$ref": "#/definitions/model.Group"
  2625. }
  2626. },
  2627. "page": {
  2628. "type": "integer"
  2629. },
  2630. "page_size": {
  2631. "type": "integer"
  2632. },
  2633. "total": {
  2634. "type": "integer"
  2635. }
  2636. }
  2637. },
  2638. "model.LoginLog": {
  2639. "type": "object",
  2640. "properties": {
  2641. "client": {
  2642. "description": "webadmin,webclient,app,",
  2643. "type": "string"
  2644. },
  2645. "created_at": {
  2646. "type": "string"
  2647. },
  2648. "id": {
  2649. "type": "integer"
  2650. },
  2651. "ip": {
  2652. "type": "string"
  2653. },
  2654. "platform": {
  2655. "description": "windows,linux,mac,android,ios",
  2656. "type": "string"
  2657. },
  2658. "type": {
  2659. "description": "account,oauth",
  2660. "type": "string"
  2661. },
  2662. "updated_at": {
  2663. "type": "string"
  2664. },
  2665. "user_id": {
  2666. "type": "integer"
  2667. },
  2668. "uuid": {
  2669. "type": "string"
  2670. }
  2671. }
  2672. },
  2673. "model.LoginLogList": {
  2674. "type": "object",
  2675. "properties": {
  2676. "list": {
  2677. "type": "array",
  2678. "items": {
  2679. "$ref": "#/definitions/model.LoginLog"
  2680. }
  2681. },
  2682. "page": {
  2683. "type": "integer"
  2684. },
  2685. "page_size": {
  2686. "type": "integer"
  2687. },
  2688. "total": {
  2689. "type": "integer"
  2690. }
  2691. }
  2692. },
  2693. "model.Oauth": {
  2694. "type": "object",
  2695. "properties": {
  2696. "auto_register": {
  2697. "type": "boolean"
  2698. },
  2699. "client_id": {
  2700. "type": "string"
  2701. },
  2702. "client_secret": {
  2703. "type": "string"
  2704. },
  2705. "created_at": {
  2706. "type": "string"
  2707. },
  2708. "id": {
  2709. "type": "integer"
  2710. },
  2711. "op": {
  2712. "type": "string"
  2713. },
  2714. "redirect_url": {
  2715. "type": "string"
  2716. },
  2717. "updated_at": {
  2718. "type": "string"
  2719. }
  2720. }
  2721. },
  2722. "model.OauthList": {
  2723. "type": "object",
  2724. "properties": {
  2725. "list": {
  2726. "type": "array",
  2727. "items": {
  2728. "$ref": "#/definitions/model.Oauth"
  2729. }
  2730. },
  2731. "page": {
  2732. "type": "integer"
  2733. },
  2734. "page_size": {
  2735. "type": "integer"
  2736. },
  2737. "total": {
  2738. "type": "integer"
  2739. }
  2740. }
  2741. },
  2742. "model.Peer": {
  2743. "type": "object",
  2744. "properties": {
  2745. "cpu": {
  2746. "type": "string"
  2747. },
  2748. "created_at": {
  2749. "type": "string"
  2750. },
  2751. "hostname": {
  2752. "type": "string"
  2753. },
  2754. "id": {
  2755. "type": "string"
  2756. },
  2757. "memory": {
  2758. "type": "string"
  2759. },
  2760. "os": {
  2761. "type": "string"
  2762. },
  2763. "row_id": {
  2764. "type": "integer"
  2765. },
  2766. "updated_at": {
  2767. "type": "string"
  2768. },
  2769. "user": {
  2770. "$ref": "#/definitions/model.User"
  2771. },
  2772. "user_id": {
  2773. "type": "integer"
  2774. },
  2775. "username": {
  2776. "type": "string"
  2777. },
  2778. "uuid": {
  2779. "type": "string"
  2780. },
  2781. "version": {
  2782. "type": "string"
  2783. }
  2784. }
  2785. },
  2786. "model.PeerList": {
  2787. "type": "object",
  2788. "properties": {
  2789. "list": {
  2790. "type": "array",
  2791. "items": {
  2792. "$ref": "#/definitions/model.Peer"
  2793. }
  2794. },
  2795. "page": {
  2796. "type": "integer"
  2797. },
  2798. "page_size": {
  2799. "type": "integer"
  2800. },
  2801. "total": {
  2802. "type": "integer"
  2803. }
  2804. }
  2805. },
  2806. "model.StatusCode": {
  2807. "type": "integer",
  2808. "enum": [
  2809. 1,
  2810. 2
  2811. ],
  2812. "x-enum-comments": {
  2813. "COMMON_STATUS_DISABLED": "通用状态 禁用",
  2814. "COMMON_STATUS_ENABLE": "通用状态 启用"
  2815. },
  2816. "x-enum-varnames": [
  2817. "COMMON_STATUS_ENABLE",
  2818. "COMMON_STATUS_DISABLED"
  2819. ]
  2820. },
  2821. "model.Tag": {
  2822. "type": "object",
  2823. "properties": {
  2824. "color": {
  2825. "description": "color 是flutter的颜色值,从0x00000000 到 0xFFFFFFFF; 前两位表示透明度,后面6位表示颜色, 可以转成rgba",
  2826. "type": "integer"
  2827. },
  2828. "created_at": {
  2829. "type": "string"
  2830. },
  2831. "id": {
  2832. "type": "integer"
  2833. },
  2834. "name": {
  2835. "type": "string"
  2836. },
  2837. "updated_at": {
  2838. "type": "string"
  2839. },
  2840. "user_id": {
  2841. "type": "integer"
  2842. }
  2843. }
  2844. },
  2845. "model.TagList": {
  2846. "type": "object",
  2847. "properties": {
  2848. "list": {
  2849. "type": "array",
  2850. "items": {
  2851. "$ref": "#/definitions/model.Tag"
  2852. }
  2853. },
  2854. "page": {
  2855. "type": "integer"
  2856. },
  2857. "page_size": {
  2858. "type": "integer"
  2859. },
  2860. "total": {
  2861. "type": "integer"
  2862. }
  2863. }
  2864. },
  2865. "model.User": {
  2866. "type": "object",
  2867. "properties": {
  2868. "avatar": {
  2869. "type": "string"
  2870. },
  2871. "created_at": {
  2872. "type": "string"
  2873. },
  2874. "group_id": {
  2875. "type": "integer"
  2876. },
  2877. "id": {
  2878. "type": "integer"
  2879. },
  2880. "is_admin": {
  2881. "type": "boolean"
  2882. },
  2883. "nickname": {
  2884. "type": "string"
  2885. },
  2886. "status": {
  2887. "$ref": "#/definitions/model.StatusCode"
  2888. },
  2889. "updated_at": {
  2890. "type": "string"
  2891. },
  2892. "username": {
  2893. "type": "string"
  2894. }
  2895. }
  2896. },
  2897. "model.UserList": {
  2898. "type": "object",
  2899. "properties": {
  2900. "list": {
  2901. "type": "array",
  2902. "items": {
  2903. "$ref": "#/definitions/model.User"
  2904. }
  2905. },
  2906. "page": {
  2907. "type": "integer"
  2908. },
  2909. "page_size": {
  2910. "type": "integer"
  2911. },
  2912. "total": {
  2913. "type": "integer"
  2914. }
  2915. }
  2916. },
  2917. "response.Response": {
  2918. "type": "object",
  2919. "properties": {
  2920. "code": {
  2921. "type": "integer"
  2922. },
  2923. "data": {},
  2924. "message": {
  2925. "type": "string"
  2926. }
  2927. }
  2928. }
  2929. },
  2930. "securityDefinitions": {
  2931. "BearerAuth": {
  2932. "type": "apiKey",
  2933. "name": "Authorization",
  2934. "in": "header"
  2935. },
  2936. "token": {
  2937. "type": "apiKey",
  2938. "name": "api-token",
  2939. "in": "header"
  2940. }
  2941. }
  2942. }