admin_docs.go 107 KB

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