admin_swagger.json 94 KB

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