admin_swagger.yaml 56 KB

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