admin_swagger.json 95 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378237923802381238223832384238523862387238823892390239123922393239423952396239723982399240024012402240324042405240624072408240924102411241224132414241524162417241824192420242124222423242424252426242724282429243024312432243324342435243624372438243924402441244224432444244524462447244824492450245124522453245424552456245724582459246024612462246324642465246624672468246924702471247224732474247524762477247824792480248124822483248424852486248724882489249024912492249324942495249624972498249925002501250225032504250525062507250825092510251125122513251425152516251725182519252025212522252325242525252625272528252925302531253225332534253525362537253825392540254125422543254425452546254725482549255025512552255325542555255625572558255925602561256225632564256525662567256825692570257125722573257425752576257725782579258025812582258325842585258625872588258925902591259225932594259525962597259825992600260126022603260426052606260726082609261026112612261326142615261626172618261926202621262226232624262526262627262826292630263126322633263426352636263726382639264026412642264326442645264626472648264926502651265226532654265526562657265826592660266126622663266426652666266726682669267026712672267326742675267626772678267926802681268226832684268526862687268826892690269126922693269426952696269726982699270027012702270327042705270627072708270927102711271227132714271527162717271827192720272127222723272427252726272727282729273027312732273327342735273627372738273927402741274227432744274527462747274827492750275127522753275427552756275727582759276027612762276327642765276627672768276927702771277227732774277527762777277827792780278127822783278427852786278727882789279027912792279327942795279627972798279928002801280228032804280528062807280828092810281128122813281428152816281728182819282028212822282328242825282628272828282928302831283228332834283528362837283828392840284128422843284428452846284728482849285028512852285328542855285628572858285928602861286228632864286528662867286828692870287128722873287428752876287728782879288028812882288328842885288628872888288928902891289228932894289528962897289828992900290129022903290429052906290729082909291029112912291329142915291629172918291929202921292229232924292529262927292829292930293129322933293429352936293729382939294029412942294329442945294629472948294929502951295229532954295529562957295829592960296129622963296429652966296729682969
  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": "设备id",
  1252. "name": "body",
  1253. "in": "body",
  1254. "required": true,
  1255. "schema": {
  1256. "$ref": "#/definitions/admin.PeerBatchDeleteForm"
  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. "type": "integer",
  1364. "description": "时间",
  1365. "name": "time_ago",
  1366. "in": "query"
  1367. }
  1368. ],
  1369. "responses": {
  1370. "200": {
  1371. "description": "OK",
  1372. "schema": {
  1373. "allOf": [
  1374. {
  1375. "$ref": "#/definitions/response.Response"
  1376. },
  1377. {
  1378. "type": "object",
  1379. "properties": {
  1380. "data": {
  1381. "$ref": "#/definitions/model.PeerList"
  1382. }
  1383. }
  1384. }
  1385. ]
  1386. }
  1387. },
  1388. "500": {
  1389. "description": "Internal Server Error",
  1390. "schema": {
  1391. "$ref": "#/definitions/response.Response"
  1392. }
  1393. }
  1394. }
  1395. }
  1396. },
  1397. "/admin/peer/update": {
  1398. "post": {
  1399. "security": [
  1400. {
  1401. "token": []
  1402. }
  1403. ],
  1404. "description": "设备编辑",
  1405. "consumes": [
  1406. "application/json"
  1407. ],
  1408. "produces": [
  1409. "application/json"
  1410. ],
  1411. "tags": [
  1412. "设备"
  1413. ],
  1414. "summary": "设备编辑",
  1415. "parameters": [
  1416. {
  1417. "description": "设备信息",
  1418. "name": "body",
  1419. "in": "body",
  1420. "required": true,
  1421. "schema": {
  1422. "$ref": "#/definitions/admin.PeerForm"
  1423. }
  1424. }
  1425. ],
  1426. "responses": {
  1427. "200": {
  1428. "description": "OK",
  1429. "schema": {
  1430. "allOf": [
  1431. {
  1432. "$ref": "#/definitions/response.Response"
  1433. },
  1434. {
  1435. "type": "object",
  1436. "properties": {
  1437. "data": {
  1438. "$ref": "#/definitions/model.Peer"
  1439. }
  1440. }
  1441. }
  1442. ]
  1443. }
  1444. },
  1445. "500": {
  1446. "description": "Internal Server Error",
  1447. "schema": {
  1448. "$ref": "#/definitions/response.Response"
  1449. }
  1450. }
  1451. }
  1452. }
  1453. },
  1454. "/admin/server-config": {
  1455. "get": {
  1456. "security": [
  1457. {
  1458. "token": []
  1459. }
  1460. ],
  1461. "description": "服务配置,给webclient提供api-server",
  1462. "consumes": [
  1463. "application/json"
  1464. ],
  1465. "produces": [
  1466. "application/json"
  1467. ],
  1468. "tags": [
  1469. "ADMIN"
  1470. ],
  1471. "summary": "服务配置",
  1472. "responses": {
  1473. "200": {
  1474. "description": "OK",
  1475. "schema": {
  1476. "$ref": "#/definitions/response.Response"
  1477. }
  1478. },
  1479. "500": {
  1480. "description": "Internal Server Error",
  1481. "schema": {
  1482. "$ref": "#/definitions/response.Response"
  1483. }
  1484. }
  1485. }
  1486. }
  1487. },
  1488. "/admin/tag/create": {
  1489. "post": {
  1490. "security": [
  1491. {
  1492. "token": []
  1493. }
  1494. ],
  1495. "description": "创建标签",
  1496. "consumes": [
  1497. "application/json"
  1498. ],
  1499. "produces": [
  1500. "application/json"
  1501. ],
  1502. "tags": [
  1503. "标签"
  1504. ],
  1505. "summary": "创建标签",
  1506. "parameters": [
  1507. {
  1508. "description": "标签信息",
  1509. "name": "body",
  1510. "in": "body",
  1511. "required": true,
  1512. "schema": {
  1513. "$ref": "#/definitions/admin.TagForm"
  1514. }
  1515. }
  1516. ],
  1517. "responses": {
  1518. "200": {
  1519. "description": "OK",
  1520. "schema": {
  1521. "allOf": [
  1522. {
  1523. "$ref": "#/definitions/response.Response"
  1524. },
  1525. {
  1526. "type": "object",
  1527. "properties": {
  1528. "data": {
  1529. "$ref": "#/definitions/model.Tag"
  1530. }
  1531. }
  1532. }
  1533. ]
  1534. }
  1535. },
  1536. "500": {
  1537. "description": "Internal Server Error",
  1538. "schema": {
  1539. "$ref": "#/definitions/response.Response"
  1540. }
  1541. }
  1542. }
  1543. }
  1544. },
  1545. "/admin/tag/delete": {
  1546. "post": {
  1547. "security": [
  1548. {
  1549. "token": []
  1550. }
  1551. ],
  1552. "description": "标签删除",
  1553. "consumes": [
  1554. "application/json"
  1555. ],
  1556. "produces": [
  1557. "application/json"
  1558. ],
  1559. "tags": [
  1560. "标签"
  1561. ],
  1562. "summary": "标签删除",
  1563. "parameters": [
  1564. {
  1565. "description": "标签信息",
  1566. "name": "body",
  1567. "in": "body",
  1568. "required": true,
  1569. "schema": {
  1570. "$ref": "#/definitions/admin.TagForm"
  1571. }
  1572. }
  1573. ],
  1574. "responses": {
  1575. "200": {
  1576. "description": "OK",
  1577. "schema": {
  1578. "$ref": "#/definitions/response.Response"
  1579. }
  1580. },
  1581. "500": {
  1582. "description": "Internal Server Error",
  1583. "schema": {
  1584. "$ref": "#/definitions/response.Response"
  1585. }
  1586. }
  1587. }
  1588. }
  1589. },
  1590. "/admin/tag/detail/{id}": {
  1591. "get": {
  1592. "security": [
  1593. {
  1594. "token": []
  1595. }
  1596. ],
  1597. "description": "标签详情",
  1598. "consumes": [
  1599. "application/json"
  1600. ],
  1601. "produces": [
  1602. "application/json"
  1603. ],
  1604. "tags": [
  1605. "标签"
  1606. ],
  1607. "summary": "标签详情",
  1608. "parameters": [
  1609. {
  1610. "type": "integer",
  1611. "description": "ID",
  1612. "name": "id",
  1613. "in": "path",
  1614. "required": true
  1615. }
  1616. ],
  1617. "responses": {
  1618. "200": {
  1619. "description": "OK",
  1620. "schema": {
  1621. "allOf": [
  1622. {
  1623. "$ref": "#/definitions/response.Response"
  1624. },
  1625. {
  1626. "type": "object",
  1627. "properties": {
  1628. "data": {
  1629. "$ref": "#/definitions/model.Tag"
  1630. }
  1631. }
  1632. }
  1633. ]
  1634. }
  1635. },
  1636. "500": {
  1637. "description": "Internal Server Error",
  1638. "schema": {
  1639. "$ref": "#/definitions/response.Response"
  1640. }
  1641. }
  1642. }
  1643. }
  1644. },
  1645. "/admin/tag/list": {
  1646. "get": {
  1647. "security": [
  1648. {
  1649. "token": []
  1650. }
  1651. ],
  1652. "description": "标签列表",
  1653. "consumes": [
  1654. "application/json"
  1655. ],
  1656. "produces": [
  1657. "application/json"
  1658. ],
  1659. "tags": [
  1660. "标签"
  1661. ],
  1662. "summary": "标签列表",
  1663. "parameters": [
  1664. {
  1665. "type": "integer",
  1666. "description": "页码",
  1667. "name": "page",
  1668. "in": "query"
  1669. },
  1670. {
  1671. "type": "integer",
  1672. "description": "页大小",
  1673. "name": "page_size",
  1674. "in": "query"
  1675. },
  1676. {
  1677. "type": "integer",
  1678. "description": "是否是我的",
  1679. "name": "is_my",
  1680. "in": "query"
  1681. },
  1682. {
  1683. "type": "integer",
  1684. "description": "用户id",
  1685. "name": "user_id",
  1686. "in": "query"
  1687. }
  1688. ],
  1689. "responses": {
  1690. "200": {
  1691. "description": "OK",
  1692. "schema": {
  1693. "allOf": [
  1694. {
  1695. "$ref": "#/definitions/response.Response"
  1696. },
  1697. {
  1698. "type": "object",
  1699. "properties": {
  1700. "data": {
  1701. "$ref": "#/definitions/model.TagList"
  1702. }
  1703. }
  1704. }
  1705. ]
  1706. }
  1707. },
  1708. "500": {
  1709. "description": "Internal Server Error",
  1710. "schema": {
  1711. "$ref": "#/definitions/response.Response"
  1712. }
  1713. }
  1714. }
  1715. }
  1716. },
  1717. "/admin/tag/update": {
  1718. "post": {
  1719. "security": [
  1720. {
  1721. "token": []
  1722. }
  1723. ],
  1724. "description": "标签编辑",
  1725. "consumes": [
  1726. "application/json"
  1727. ],
  1728. "produces": [
  1729. "application/json"
  1730. ],
  1731. "tags": [
  1732. "标签"
  1733. ],
  1734. "summary": "标签编辑",
  1735. "parameters": [
  1736. {
  1737. "description": "标签信息",
  1738. "name": "body",
  1739. "in": "body",
  1740. "required": true,
  1741. "schema": {
  1742. "$ref": "#/definitions/admin.TagForm"
  1743. }
  1744. }
  1745. ],
  1746. "responses": {
  1747. "200": {
  1748. "description": "OK",
  1749. "schema": {
  1750. "allOf": [
  1751. {
  1752. "$ref": "#/definitions/response.Response"
  1753. },
  1754. {
  1755. "type": "object",
  1756. "properties": {
  1757. "data": {
  1758. "$ref": "#/definitions/model.Tag"
  1759. }
  1760. }
  1761. }
  1762. ]
  1763. }
  1764. },
  1765. "500": {
  1766. "description": "Internal Server Error",
  1767. "schema": {
  1768. "$ref": "#/definitions/response.Response"
  1769. }
  1770. }
  1771. }
  1772. }
  1773. },
  1774. "/admin/user/changeCurPwd": {
  1775. "post": {
  1776. "security": [
  1777. {
  1778. "token": []
  1779. }
  1780. ],
  1781. "description": "修改当前用户密码",
  1782. "consumes": [
  1783. "application/json"
  1784. ],
  1785. "produces": [
  1786. "application/json"
  1787. ],
  1788. "tags": [
  1789. "用户"
  1790. ],
  1791. "summary": "修改当前用户密码",
  1792. "parameters": [
  1793. {
  1794. "description": "用户信息",
  1795. "name": "body",
  1796. "in": "body",
  1797. "required": true,
  1798. "schema": {
  1799. "$ref": "#/definitions/admin.ChangeCurPasswordForm"
  1800. }
  1801. }
  1802. ],
  1803. "responses": {
  1804. "200": {
  1805. "description": "OK",
  1806. "schema": {
  1807. "$ref": "#/definitions/response.Response"
  1808. }
  1809. },
  1810. "500": {
  1811. "description": "Internal Server Error",
  1812. "schema": {
  1813. "$ref": "#/definitions/response.Response"
  1814. }
  1815. }
  1816. }
  1817. }
  1818. },
  1819. "/admin/user/create": {
  1820. "post": {
  1821. "security": [
  1822. {
  1823. "token": []
  1824. }
  1825. ],
  1826. "description": "创建管理员",
  1827. "consumes": [
  1828. "application/json"
  1829. ],
  1830. "produces": [
  1831. "application/json"
  1832. ],
  1833. "tags": [
  1834. "用户"
  1835. ],
  1836. "summary": "创建管理员",
  1837. "parameters": [
  1838. {
  1839. "description": "管理员信息",
  1840. "name": "body",
  1841. "in": "body",
  1842. "required": true,
  1843. "schema": {
  1844. "$ref": "#/definitions/admin.UserForm"
  1845. }
  1846. }
  1847. ],
  1848. "responses": {
  1849. "200": {
  1850. "description": "OK",
  1851. "schema": {
  1852. "allOf": [
  1853. {
  1854. "$ref": "#/definitions/response.Response"
  1855. },
  1856. {
  1857. "type": "object",
  1858. "properties": {
  1859. "data": {
  1860. "$ref": "#/definitions/model.User"
  1861. }
  1862. }
  1863. }
  1864. ]
  1865. }
  1866. },
  1867. "500": {
  1868. "description": "Internal Server Error",
  1869. "schema": {
  1870. "$ref": "#/definitions/response.Response"
  1871. }
  1872. }
  1873. }
  1874. }
  1875. },
  1876. "/admin/user/current": {
  1877. "get": {
  1878. "security": [
  1879. {
  1880. "token": []
  1881. }
  1882. ],
  1883. "description": "当前用户",
  1884. "consumes": [
  1885. "application/json"
  1886. ],
  1887. "produces": [
  1888. "application/json"
  1889. ],
  1890. "tags": [
  1891. "用户"
  1892. ],
  1893. "summary": "当前用户",
  1894. "responses": {
  1895. "200": {
  1896. "description": "OK",
  1897. "schema": {
  1898. "allOf": [
  1899. {
  1900. "$ref": "#/definitions/response.Response"
  1901. },
  1902. {
  1903. "type": "object",
  1904. "properties": {
  1905. "data": {
  1906. "$ref": "#/definitions/admin.LoginPayload"
  1907. }
  1908. }
  1909. }
  1910. ]
  1911. }
  1912. },
  1913. "500": {
  1914. "description": "Internal Server Error",
  1915. "schema": {
  1916. "$ref": "#/definitions/response.Response"
  1917. }
  1918. }
  1919. }
  1920. }
  1921. },
  1922. "/admin/user/delete": {
  1923. "post": {
  1924. "security": [
  1925. {
  1926. "token": []
  1927. }
  1928. ],
  1929. "description": "管理员编删除",
  1930. "consumes": [
  1931. "application/json"
  1932. ],
  1933. "produces": [
  1934. "application/json"
  1935. ],
  1936. "tags": [
  1937. "用户"
  1938. ],
  1939. "summary": "管理员删除",
  1940. "parameters": [
  1941. {
  1942. "description": "用户信息",
  1943. "name": "body",
  1944. "in": "body",
  1945. "required": true,
  1946. "schema": {
  1947. "$ref": "#/definitions/admin.UserForm"
  1948. }
  1949. }
  1950. ],
  1951. "responses": {
  1952. "200": {
  1953. "description": "OK",
  1954. "schema": {
  1955. "$ref": "#/definitions/response.Response"
  1956. }
  1957. },
  1958. "500": {
  1959. "description": "Internal Server Error",
  1960. "schema": {
  1961. "$ref": "#/definitions/response.Response"
  1962. }
  1963. }
  1964. }
  1965. }
  1966. },
  1967. "/admin/user/detail/{id}": {
  1968. "get": {
  1969. "security": [
  1970. {
  1971. "token": []
  1972. }
  1973. ],
  1974. "description": "管理员详情",
  1975. "consumes": [
  1976. "application/json"
  1977. ],
  1978. "produces": [
  1979. "application/json"
  1980. ],
  1981. "tags": [
  1982. "用户"
  1983. ],
  1984. "summary": "管理员详情",
  1985. "parameters": [
  1986. {
  1987. "type": "integer",
  1988. "description": "ID",
  1989. "name": "id",
  1990. "in": "path",
  1991. "required": true
  1992. }
  1993. ],
  1994. "responses": {
  1995. "200": {
  1996. "description": "OK",
  1997. "schema": {
  1998. "allOf": [
  1999. {
  2000. "$ref": "#/definitions/response.Response"
  2001. },
  2002. {
  2003. "type": "object",
  2004. "properties": {
  2005. "data": {
  2006. "$ref": "#/definitions/model.User"
  2007. }
  2008. }
  2009. }
  2010. ]
  2011. }
  2012. },
  2013. "500": {
  2014. "description": "Internal Server Error",
  2015. "schema": {
  2016. "$ref": "#/definitions/response.Response"
  2017. }
  2018. }
  2019. }
  2020. }
  2021. },
  2022. "/admin/user/list": {
  2023. "get": {
  2024. "security": [
  2025. {
  2026. "token": []
  2027. }
  2028. ],
  2029. "description": "管理员列表",
  2030. "consumes": [
  2031. "application/json"
  2032. ],
  2033. "produces": [
  2034. "application/json"
  2035. ],
  2036. "tags": [
  2037. "用户"
  2038. ],
  2039. "summary": "管理员列表",
  2040. "parameters": [
  2041. {
  2042. "type": "integer",
  2043. "description": "页码",
  2044. "name": "page",
  2045. "in": "query"
  2046. },
  2047. {
  2048. "type": "integer",
  2049. "description": "页大小",
  2050. "name": "page_size",
  2051. "in": "query"
  2052. },
  2053. {
  2054. "type": "integer",
  2055. "description": "账户",
  2056. "name": "username",
  2057. "in": "query"
  2058. }
  2059. ],
  2060. "responses": {
  2061. "200": {
  2062. "description": "OK",
  2063. "schema": {
  2064. "allOf": [
  2065. {
  2066. "$ref": "#/definitions/response.Response"
  2067. },
  2068. {
  2069. "type": "object",
  2070. "properties": {
  2071. "data": {
  2072. "$ref": "#/definitions/model.UserList"
  2073. }
  2074. }
  2075. }
  2076. ]
  2077. }
  2078. },
  2079. "500": {
  2080. "description": "Internal Server Error",
  2081. "schema": {
  2082. "$ref": "#/definitions/response.Response"
  2083. }
  2084. }
  2085. }
  2086. }
  2087. },
  2088. "/admin/user/myOauth": {
  2089. "get": {
  2090. "security": [
  2091. {
  2092. "token": []
  2093. }
  2094. ],
  2095. "description": "我的授权",
  2096. "consumes": [
  2097. "application/json"
  2098. ],
  2099. "produces": [
  2100. "application/json"
  2101. ],
  2102. "tags": [
  2103. "用户"
  2104. ],
  2105. "summary": "我的授权",
  2106. "responses": {
  2107. "200": {
  2108. "description": "OK",
  2109. "schema": {
  2110. "allOf": [
  2111. {
  2112. "$ref": "#/definitions/response.Response"
  2113. },
  2114. {
  2115. "type": "object",
  2116. "properties": {
  2117. "data": {
  2118. "type": "array",
  2119. "items": {
  2120. "$ref": "#/definitions/admin.UserOauthItem"
  2121. }
  2122. }
  2123. }
  2124. }
  2125. ]
  2126. }
  2127. },
  2128. "500": {
  2129. "description": "Internal Server Error",
  2130. "schema": {
  2131. "$ref": "#/definitions/response.Response"
  2132. }
  2133. }
  2134. }
  2135. }
  2136. },
  2137. "/admin/user/update": {
  2138. "post": {
  2139. "security": [
  2140. {
  2141. "token": []
  2142. }
  2143. ],
  2144. "description": "管理员编辑",
  2145. "consumes": [
  2146. "application/json"
  2147. ],
  2148. "produces": [
  2149. "application/json"
  2150. ],
  2151. "tags": [
  2152. "用户"
  2153. ],
  2154. "summary": "管理员编辑",
  2155. "parameters": [
  2156. {
  2157. "description": "用户信息",
  2158. "name": "body",
  2159. "in": "body",
  2160. "required": true,
  2161. "schema": {
  2162. "$ref": "#/definitions/admin.UserForm"
  2163. }
  2164. }
  2165. ],
  2166. "responses": {
  2167. "200": {
  2168. "description": "OK",
  2169. "schema": {
  2170. "allOf": [
  2171. {
  2172. "$ref": "#/definitions/response.Response"
  2173. },
  2174. {
  2175. "type": "object",
  2176. "properties": {
  2177. "data": {
  2178. "$ref": "#/definitions/model.User"
  2179. }
  2180. }
  2181. }
  2182. ]
  2183. }
  2184. },
  2185. "500": {
  2186. "description": "Internal Server Error",
  2187. "schema": {
  2188. "$ref": "#/definitions/response.Response"
  2189. }
  2190. }
  2191. }
  2192. }
  2193. },
  2194. "/admin/user/updatePassword": {
  2195. "post": {
  2196. "security": [
  2197. {
  2198. "token": []
  2199. }
  2200. ],
  2201. "description": "修改密码",
  2202. "consumes": [
  2203. "application/json"
  2204. ],
  2205. "produces": [
  2206. "application/json"
  2207. ],
  2208. "tags": [
  2209. "用户"
  2210. ],
  2211. "summary": "修改密码",
  2212. "parameters": [
  2213. {
  2214. "description": "用户信息",
  2215. "name": "body",
  2216. "in": "body",
  2217. "required": true,
  2218. "schema": {
  2219. "$ref": "#/definitions/admin.UserPasswordForm"
  2220. }
  2221. }
  2222. ],
  2223. "responses": {
  2224. "200": {
  2225. "description": "OK",
  2226. "schema": {
  2227. "$ref": "#/definitions/response.Response"
  2228. }
  2229. },
  2230. "500": {
  2231. "description": "Internal Server Error",
  2232. "schema": {
  2233. "$ref": "#/definitions/response.Response"
  2234. }
  2235. }
  2236. }
  2237. }
  2238. }
  2239. },
  2240. "definitions": {
  2241. "Gwen_http_request_admin.Login": {
  2242. "type": "object",
  2243. "required": [
  2244. "password",
  2245. "username"
  2246. ],
  2247. "properties": {
  2248. "password": {
  2249. "type": "string"
  2250. },
  2251. "platform": {
  2252. "type": "string"
  2253. },
  2254. "username": {
  2255. "type": "string"
  2256. }
  2257. }
  2258. },
  2259. "admin.AddressBookForm": {
  2260. "type": "object",
  2261. "required": [
  2262. "id"
  2263. ],
  2264. "properties": {
  2265. "alias": {
  2266. "type": "string"
  2267. },
  2268. "forceAlwaysRelay": {
  2269. "type": "boolean"
  2270. },
  2271. "hash": {
  2272. "type": "string"
  2273. },
  2274. "hostname": {
  2275. "type": "string"
  2276. },
  2277. "id": {
  2278. "type": "string"
  2279. },
  2280. "loginName": {
  2281. "type": "string"
  2282. },
  2283. "online": {
  2284. "type": "boolean"
  2285. },
  2286. "password": {
  2287. "type": "string"
  2288. },
  2289. "platform": {
  2290. "type": "string"
  2291. },
  2292. "rdpPort": {
  2293. "type": "string"
  2294. },
  2295. "rdpUsername": {
  2296. "type": "string"
  2297. },
  2298. "row_id": {
  2299. "type": "integer"
  2300. },
  2301. "sameServer": {
  2302. "type": "boolean"
  2303. },
  2304. "tags": {
  2305. "type": "array",
  2306. "items": {
  2307. "type": "string"
  2308. }
  2309. },
  2310. "user_id": {
  2311. "type": "integer"
  2312. },
  2313. "user_ids": {
  2314. "type": "array",
  2315. "items": {
  2316. "type": "integer"
  2317. }
  2318. },
  2319. "username": {
  2320. "type": "string"
  2321. }
  2322. }
  2323. },
  2324. "admin.ChangeCurPasswordForm": {
  2325. "type": "object",
  2326. "required": [
  2327. "new_password",
  2328. "old_password"
  2329. ],
  2330. "properties": {
  2331. "new_password": {
  2332. "type": "string",
  2333. "maxLength": 20,
  2334. "minLength": 4
  2335. },
  2336. "old_password": {
  2337. "type": "string",
  2338. "maxLength": 20,
  2339. "minLength": 4
  2340. }
  2341. }
  2342. },
  2343. "admin.GroupForm": {
  2344. "type": "object",
  2345. "required": [
  2346. "name"
  2347. ],
  2348. "properties": {
  2349. "id": {
  2350. "type": "integer"
  2351. },
  2352. "name": {
  2353. "type": "string"
  2354. }
  2355. }
  2356. },
  2357. "admin.LoginPayload": {
  2358. "type": "object",
  2359. "properties": {
  2360. "nickname": {
  2361. "type": "string"
  2362. },
  2363. "route_names": {
  2364. "type": "array",
  2365. "items": {
  2366. "type": "string"
  2367. }
  2368. },
  2369. "token": {
  2370. "type": "string"
  2371. },
  2372. "username": {
  2373. "type": "string"
  2374. }
  2375. }
  2376. },
  2377. "admin.OauthForm": {
  2378. "type": "object",
  2379. "required": [
  2380. "client_id",
  2381. "client_secret",
  2382. "op",
  2383. "redirect_url"
  2384. ],
  2385. "properties": {
  2386. "auto_register": {
  2387. "type": "boolean"
  2388. },
  2389. "client_id": {
  2390. "type": "string"
  2391. },
  2392. "client_secret": {
  2393. "type": "string"
  2394. },
  2395. "id": {
  2396. "type": "integer"
  2397. },
  2398. "op": {
  2399. "type": "string"
  2400. },
  2401. "redirect_url": {
  2402. "type": "string"
  2403. }
  2404. }
  2405. },
  2406. "admin.PeerBatchDeleteForm": {
  2407. "type": "object",
  2408. "required": [
  2409. "row_ids"
  2410. ],
  2411. "properties": {
  2412. "row_ids": {
  2413. "type": "array",
  2414. "items": {
  2415. "type": "integer"
  2416. }
  2417. }
  2418. }
  2419. },
  2420. "admin.PeerForm": {
  2421. "type": "object",
  2422. "properties": {
  2423. "cpu": {
  2424. "type": "string"
  2425. },
  2426. "hostname": {
  2427. "type": "string"
  2428. },
  2429. "id": {
  2430. "type": "string"
  2431. },
  2432. "memory": {
  2433. "type": "string"
  2434. },
  2435. "os": {
  2436. "type": "string"
  2437. },
  2438. "row_id": {
  2439. "type": "integer"
  2440. },
  2441. "username": {
  2442. "type": "string"
  2443. },
  2444. "uuid": {
  2445. "type": "string"
  2446. },
  2447. "version": {
  2448. "type": "string"
  2449. }
  2450. }
  2451. },
  2452. "admin.TagForm": {
  2453. "type": "object",
  2454. "required": [
  2455. "color",
  2456. "name"
  2457. ],
  2458. "properties": {
  2459. "color": {
  2460. "type": "integer"
  2461. },
  2462. "id": {
  2463. "type": "integer"
  2464. },
  2465. "name": {
  2466. "type": "string"
  2467. },
  2468. "user_id": {
  2469. "type": "integer"
  2470. }
  2471. }
  2472. },
  2473. "admin.UserForm": {
  2474. "type": "object",
  2475. "required": [
  2476. "group_id",
  2477. "status",
  2478. "username"
  2479. ],
  2480. "properties": {
  2481. "avatar": {
  2482. "type": "string"
  2483. },
  2484. "group_id": {
  2485. "type": "integer"
  2486. },
  2487. "id": {
  2488. "type": "integer"
  2489. },
  2490. "is_admin": {
  2491. "type": "boolean"
  2492. },
  2493. "nickname": {
  2494. "description": "Password string `json:\"password\" validate:\"required,gte=4,lte=20\"`",
  2495. "type": "string"
  2496. },
  2497. "status": {
  2498. "minimum": 0,
  2499. "allOf": [
  2500. {
  2501. "$ref": "#/definitions/model.StatusCode"
  2502. }
  2503. ]
  2504. },
  2505. "username": {
  2506. "type": "string",
  2507. "maxLength": 10,
  2508. "minLength": 4
  2509. }
  2510. }
  2511. },
  2512. "admin.UserOauthItem": {
  2513. "type": "object",
  2514. "properties": {
  2515. "status": {
  2516. "type": "integer"
  2517. },
  2518. "third_type": {
  2519. "type": "string"
  2520. }
  2521. }
  2522. },
  2523. "admin.UserPasswordForm": {
  2524. "type": "object",
  2525. "required": [
  2526. "id",
  2527. "password"
  2528. ],
  2529. "properties": {
  2530. "id": {
  2531. "type": "integer"
  2532. },
  2533. "password": {
  2534. "type": "string",
  2535. "maxLength": 20,
  2536. "minLength": 4
  2537. }
  2538. }
  2539. },
  2540. "model.AddressBook": {
  2541. "type": "object",
  2542. "properties": {
  2543. "alias": {
  2544. "type": "string"
  2545. },
  2546. "created_at": {
  2547. "type": "string"
  2548. },
  2549. "forceAlwaysRelay": {
  2550. "type": "boolean"
  2551. },
  2552. "hash": {
  2553. "type": "string"
  2554. },
  2555. "hostname": {
  2556. "type": "string"
  2557. },
  2558. "id": {
  2559. "type": "string"
  2560. },
  2561. "loginName": {
  2562. "type": "string"
  2563. },
  2564. "online": {
  2565. "type": "boolean"
  2566. },
  2567. "password": {
  2568. "type": "string"
  2569. },
  2570. "platform": {
  2571. "type": "string"
  2572. },
  2573. "rdpPort": {
  2574. "type": "string"
  2575. },
  2576. "rdpUsername": {
  2577. "type": "string"
  2578. },
  2579. "row_id": {
  2580. "type": "integer"
  2581. },
  2582. "sameServer": {
  2583. "type": "boolean"
  2584. },
  2585. "tags": {
  2586. "type": "array",
  2587. "items": {
  2588. "type": "string"
  2589. }
  2590. },
  2591. "updated_at": {
  2592. "type": "string"
  2593. },
  2594. "user_id": {
  2595. "type": "integer"
  2596. },
  2597. "username": {
  2598. "type": "string"
  2599. }
  2600. }
  2601. },
  2602. "model.AddressBookList": {
  2603. "type": "object",
  2604. "properties": {
  2605. "list": {
  2606. "type": "array",
  2607. "items": {
  2608. "$ref": "#/definitions/model.AddressBook"
  2609. }
  2610. },
  2611. "page": {
  2612. "type": "integer"
  2613. },
  2614. "page_size": {
  2615. "type": "integer"
  2616. },
  2617. "total": {
  2618. "type": "integer"
  2619. }
  2620. }
  2621. },
  2622. "model.Group": {
  2623. "type": "object",
  2624. "properties": {
  2625. "created_at": {
  2626. "type": "string"
  2627. },
  2628. "id": {
  2629. "type": "integer"
  2630. },
  2631. "name": {
  2632. "type": "string"
  2633. },
  2634. "type": {
  2635. "type": "integer"
  2636. },
  2637. "updated_at": {
  2638. "type": "string"
  2639. }
  2640. }
  2641. },
  2642. "model.GroupList": {
  2643. "type": "object",
  2644. "properties": {
  2645. "list": {
  2646. "type": "array",
  2647. "items": {
  2648. "$ref": "#/definitions/model.Group"
  2649. }
  2650. },
  2651. "page": {
  2652. "type": "integer"
  2653. },
  2654. "page_size": {
  2655. "type": "integer"
  2656. },
  2657. "total": {
  2658. "type": "integer"
  2659. }
  2660. }
  2661. },
  2662. "model.LoginLog": {
  2663. "type": "object",
  2664. "properties": {
  2665. "client": {
  2666. "description": "webadmin,webclient,app,",
  2667. "type": "string"
  2668. },
  2669. "created_at": {
  2670. "type": "string"
  2671. },
  2672. "id": {
  2673. "type": "integer"
  2674. },
  2675. "ip": {
  2676. "type": "string"
  2677. },
  2678. "platform": {
  2679. "description": "windows,linux,mac,android,ios",
  2680. "type": "string"
  2681. },
  2682. "type": {
  2683. "description": "account,oauth",
  2684. "type": "string"
  2685. },
  2686. "updated_at": {
  2687. "type": "string"
  2688. },
  2689. "user_id": {
  2690. "type": "integer"
  2691. },
  2692. "uuid": {
  2693. "type": "string"
  2694. }
  2695. }
  2696. },
  2697. "model.LoginLogList": {
  2698. "type": "object",
  2699. "properties": {
  2700. "list": {
  2701. "type": "array",
  2702. "items": {
  2703. "$ref": "#/definitions/model.LoginLog"
  2704. }
  2705. },
  2706. "page": {
  2707. "type": "integer"
  2708. },
  2709. "page_size": {
  2710. "type": "integer"
  2711. },
  2712. "total": {
  2713. "type": "integer"
  2714. }
  2715. }
  2716. },
  2717. "model.Oauth": {
  2718. "type": "object",
  2719. "properties": {
  2720. "auto_register": {
  2721. "type": "boolean"
  2722. },
  2723. "client_id": {
  2724. "type": "string"
  2725. },
  2726. "client_secret": {
  2727. "type": "string"
  2728. },
  2729. "created_at": {
  2730. "type": "string"
  2731. },
  2732. "id": {
  2733. "type": "integer"
  2734. },
  2735. "op": {
  2736. "type": "string"
  2737. },
  2738. "redirect_url": {
  2739. "type": "string"
  2740. },
  2741. "updated_at": {
  2742. "type": "string"
  2743. }
  2744. }
  2745. },
  2746. "model.OauthList": {
  2747. "type": "object",
  2748. "properties": {
  2749. "list": {
  2750. "type": "array",
  2751. "items": {
  2752. "$ref": "#/definitions/model.Oauth"
  2753. }
  2754. },
  2755. "page": {
  2756. "type": "integer"
  2757. },
  2758. "page_size": {
  2759. "type": "integer"
  2760. },
  2761. "total": {
  2762. "type": "integer"
  2763. }
  2764. }
  2765. },
  2766. "model.Peer": {
  2767. "type": "object",
  2768. "properties": {
  2769. "cpu": {
  2770. "type": "string"
  2771. },
  2772. "created_at": {
  2773. "type": "string"
  2774. },
  2775. "hostname": {
  2776. "type": "string"
  2777. },
  2778. "id": {
  2779. "type": "string"
  2780. },
  2781. "last_online_time": {
  2782. "type": "integer"
  2783. },
  2784. "memory": {
  2785. "type": "string"
  2786. },
  2787. "os": {
  2788. "type": "string"
  2789. },
  2790. "row_id": {
  2791. "type": "integer"
  2792. },
  2793. "updated_at": {
  2794. "type": "string"
  2795. },
  2796. "user": {
  2797. "$ref": "#/definitions/model.User"
  2798. },
  2799. "user_id": {
  2800. "type": "integer"
  2801. },
  2802. "username": {
  2803. "type": "string"
  2804. },
  2805. "uuid": {
  2806. "type": "string"
  2807. },
  2808. "version": {
  2809. "type": "string"
  2810. }
  2811. }
  2812. },
  2813. "model.PeerList": {
  2814. "type": "object",
  2815. "properties": {
  2816. "list": {
  2817. "type": "array",
  2818. "items": {
  2819. "$ref": "#/definitions/model.Peer"
  2820. }
  2821. },
  2822. "page": {
  2823. "type": "integer"
  2824. },
  2825. "page_size": {
  2826. "type": "integer"
  2827. },
  2828. "total": {
  2829. "type": "integer"
  2830. }
  2831. }
  2832. },
  2833. "model.StatusCode": {
  2834. "type": "integer",
  2835. "enum": [
  2836. 1,
  2837. 2
  2838. ],
  2839. "x-enum-comments": {
  2840. "COMMON_STATUS_DISABLED": "通用状态 禁用",
  2841. "COMMON_STATUS_ENABLE": "通用状态 启用"
  2842. },
  2843. "x-enum-varnames": [
  2844. "COMMON_STATUS_ENABLE",
  2845. "COMMON_STATUS_DISABLED"
  2846. ]
  2847. },
  2848. "model.Tag": {
  2849. "type": "object",
  2850. "properties": {
  2851. "color": {
  2852. "description": "color 是flutter的颜色值,从0x00000000 到 0xFFFFFFFF; 前两位表示透明度,后面6位表示颜色, 可以转成rgba",
  2853. "type": "integer"
  2854. },
  2855. "created_at": {
  2856. "type": "string"
  2857. },
  2858. "id": {
  2859. "type": "integer"
  2860. },
  2861. "name": {
  2862. "type": "string"
  2863. },
  2864. "updated_at": {
  2865. "type": "string"
  2866. },
  2867. "user_id": {
  2868. "type": "integer"
  2869. }
  2870. }
  2871. },
  2872. "model.TagList": {
  2873. "type": "object",
  2874. "properties": {
  2875. "list": {
  2876. "type": "array",
  2877. "items": {
  2878. "$ref": "#/definitions/model.Tag"
  2879. }
  2880. },
  2881. "page": {
  2882. "type": "integer"
  2883. },
  2884. "page_size": {
  2885. "type": "integer"
  2886. },
  2887. "total": {
  2888. "type": "integer"
  2889. }
  2890. }
  2891. },
  2892. "model.User": {
  2893. "type": "object",
  2894. "properties": {
  2895. "avatar": {
  2896. "type": "string"
  2897. },
  2898. "created_at": {
  2899. "type": "string"
  2900. },
  2901. "group_id": {
  2902. "type": "integer"
  2903. },
  2904. "id": {
  2905. "type": "integer"
  2906. },
  2907. "is_admin": {
  2908. "type": "boolean"
  2909. },
  2910. "nickname": {
  2911. "type": "string"
  2912. },
  2913. "status": {
  2914. "$ref": "#/definitions/model.StatusCode"
  2915. },
  2916. "updated_at": {
  2917. "type": "string"
  2918. },
  2919. "username": {
  2920. "type": "string"
  2921. }
  2922. }
  2923. },
  2924. "model.UserList": {
  2925. "type": "object",
  2926. "properties": {
  2927. "list": {
  2928. "type": "array",
  2929. "items": {
  2930. "$ref": "#/definitions/model.User"
  2931. }
  2932. },
  2933. "page": {
  2934. "type": "integer"
  2935. },
  2936. "page_size": {
  2937. "type": "integer"
  2938. },
  2939. "total": {
  2940. "type": "integer"
  2941. }
  2942. }
  2943. },
  2944. "response.Response": {
  2945. "type": "object",
  2946. "properties": {
  2947. "code": {
  2948. "type": "integer"
  2949. },
  2950. "data": {},
  2951. "message": {
  2952. "type": "string"
  2953. }
  2954. }
  2955. }
  2956. },
  2957. "securityDefinitions": {
  2958. "BearerAuth": {
  2959. "type": "apiKey",
  2960. "name": "Authorization",
  2961. "in": "header"
  2962. },
  2963. "token": {
  2964. "type": "apiKey",
  2965. "name": "api-token",
  2966. "in": "header"
  2967. }
  2968. }
  2969. }