admin_docs.go 95 KB

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