admin_docs.go 100 KB

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