api_swagger.yaml 22 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017
  1. basePath: /api
  2. definitions:
  3. api.AddressBookForm:
  4. properties:
  5. data:
  6. example: '{"tags":["tag1","tag2","tag3"],"peers":[{"id":"abc","username":"abv-l","hostname":"","platform":"Windows","alias":"","tags":["tag1","tag2"],"hash":"hash"}],"tag_colors":"{\"tag1\":4288585374,\"tag2\":4278238420,\"tag3\":4291681337}"}'
  7. type: string
  8. type: object
  9. api.AuditConnForm:
  10. properties:
  11. action:
  12. type: string
  13. conn_id:
  14. type: integer
  15. id:
  16. type: string
  17. ip:
  18. type: string
  19. peer:
  20. items:
  21. type: string
  22. type: array
  23. session_id:
  24. type: number
  25. type:
  26. type: integer
  27. uuid:
  28. type: string
  29. type: object
  30. api.AuditFileForm:
  31. properties:
  32. id:
  33. type: string
  34. info:
  35. type: string
  36. is_file:
  37. type: boolean
  38. path:
  39. type: string
  40. peer_id:
  41. type: string
  42. type:
  43. type: integer
  44. uuid:
  45. type: string
  46. type: object
  47. api.DeviceInfoInLogin:
  48. properties:
  49. name:
  50. type: string
  51. os:
  52. type: string
  53. type:
  54. type: string
  55. type: object
  56. api.LoginForm:
  57. properties:
  58. autoLogin:
  59. type: boolean
  60. deviceInfo:
  61. $ref: '#/definitions/api.DeviceInfoInLogin'
  62. id:
  63. type: string
  64. password:
  65. maxLength: 32
  66. minLength: 4
  67. type: string
  68. type:
  69. type: string
  70. username:
  71. maxLength: 32
  72. minLength: 2
  73. type: string
  74. uuid:
  75. type: string
  76. required:
  77. - username
  78. type: object
  79. api.LoginRes:
  80. properties:
  81. access_token:
  82. type: string
  83. secret:
  84. type: string
  85. tfa_type:
  86. type: string
  87. type:
  88. type: string
  89. user:
  90. $ref: '#/definitions/api.UserPayload'
  91. type: object
  92. api.PeerForm:
  93. properties:
  94. cpu:
  95. type: string
  96. hostname:
  97. type: string
  98. id:
  99. type: string
  100. memory:
  101. type: string
  102. os:
  103. type: string
  104. username:
  105. type: string
  106. uuid:
  107. type: string
  108. version:
  109. type: string
  110. type: object
  111. api.UserPayload:
  112. properties:
  113. email:
  114. type: string
  115. info:
  116. additionalProperties: true
  117. type: object
  118. is_admin:
  119. type: boolean
  120. name:
  121. type: string
  122. note:
  123. type: string
  124. status:
  125. type: integer
  126. type: object
  127. model.AddressBookCollection:
  128. properties:
  129. created_at:
  130. type: string
  131. id:
  132. type: integer
  133. name:
  134. type: string
  135. updated_at:
  136. type: string
  137. user_id:
  138. type: integer
  139. required:
  140. - name
  141. type: object
  142. model.Tag:
  143. properties:
  144. collection:
  145. $ref: '#/definitions/model.AddressBookCollection'
  146. collection_id:
  147. type: integer
  148. color:
  149. description: color 是flutter的颜色值,从0x00000000 到 0xFFFFFFFF; 前两位表示透明度,后面6位表示颜色,
  150. 可以转成rgba
  151. type: integer
  152. created_at:
  153. type: string
  154. id:
  155. type: integer
  156. name:
  157. type: string
  158. updated_at:
  159. type: string
  160. user_id:
  161. type: integer
  162. type: object
  163. model.TagList:
  164. properties:
  165. list:
  166. items:
  167. $ref: '#/definitions/model.Tag'
  168. type: array
  169. page:
  170. type: integer
  171. page_size:
  172. type: integer
  173. total:
  174. type: integer
  175. type: object
  176. response.DataResponse:
  177. properties:
  178. data: {}
  179. total:
  180. type: integer
  181. type: object
  182. response.ErrorResponse:
  183. properties:
  184. error:
  185. type: string
  186. type: object
  187. response.Response:
  188. properties:
  189. code:
  190. type: integer
  191. data: {}
  192. message:
  193. type: string
  194. type: object
  195. info:
  196. contact: {}
  197. description: 接口
  198. title: 管理系统API
  199. version: "1.0"
  200. paths:
  201. /:
  202. get:
  203. consumes:
  204. - application/json
  205. description: 首页
  206. produces:
  207. - application/json
  208. responses:
  209. "200":
  210. description: OK
  211. schema:
  212. $ref: '#/definitions/response.Response'
  213. "500":
  214. description: Internal Server Error
  215. schema:
  216. $ref: '#/definitions/response.Response'
  217. summary: 首页
  218. tags:
  219. - 首页
  220. /ab:
  221. get:
  222. consumes:
  223. - application/json
  224. description: 地址列表
  225. produces:
  226. - application/json
  227. responses:
  228. "200":
  229. description: OK
  230. schema:
  231. $ref: '#/definitions/response.Response'
  232. "500":
  233. description: Internal Server Error
  234. schema:
  235. $ref: '#/definitions/response.ErrorResponse'
  236. security:
  237. - BearerAuth: []
  238. summary: 地址列表
  239. tags:
  240. - 地址
  241. post:
  242. consumes:
  243. - application/json
  244. description: 地址更新
  245. parameters:
  246. - description: 地址表单
  247. in: body
  248. name: body
  249. required: true
  250. schema:
  251. $ref: '#/definitions/api.AddressBookForm'
  252. produces:
  253. - application/json
  254. responses:
  255. "200":
  256. description: "null"
  257. schema:
  258. type: string
  259. "500":
  260. description: Internal Server Error
  261. schema:
  262. $ref: '#/definitions/response.ErrorResponse'
  263. security:
  264. - BearerAuth: []
  265. summary: 地址更新
  266. tags:
  267. - 地址
  268. /ab/peer/add/{guid}:
  269. delete:
  270. consumes:
  271. - application/json
  272. description: 删除地址
  273. parameters:
  274. - description: guid
  275. in: path
  276. name: guid
  277. required: true
  278. type: string
  279. produces:
  280. - application/json
  281. responses:
  282. "200":
  283. description: OK
  284. schema:
  285. type: string
  286. "500":
  287. description: Internal Server Error
  288. schema:
  289. $ref: '#/definitions/response.ErrorResponse'
  290. security:
  291. - BearerAuth: []
  292. summary: 删除地址
  293. tags:
  294. - 地址[Personal]
  295. post:
  296. consumes:
  297. - application/json
  298. description: 添加地址
  299. parameters:
  300. - description: guid
  301. in: path
  302. name: guid
  303. required: true
  304. type: string
  305. produces:
  306. - application/json
  307. responses:
  308. "200":
  309. description: OK
  310. schema:
  311. type: string
  312. "500":
  313. description: Internal Server Error
  314. schema:
  315. $ref: '#/definitions/response.ErrorResponse'
  316. security:
  317. - BearerAuth: []
  318. summary: 添加地址
  319. tags:
  320. - 地址[Personal]
  321. /ab/peer/update/{guid}:
  322. put:
  323. consumes:
  324. - application/json
  325. description: 更新地址
  326. parameters:
  327. - description: guid
  328. in: path
  329. name: guid
  330. required: true
  331. type: string
  332. produces:
  333. - application/json
  334. responses:
  335. "200":
  336. description: OK
  337. schema:
  338. type: string
  339. "500":
  340. description: Internal Server Error
  341. schema:
  342. $ref: '#/definitions/response.ErrorResponse'
  343. security:
  344. - BearerAuth: []
  345. summary: 更新地址
  346. tags:
  347. - 地址[Personal]
  348. /ab/peers:
  349. post:
  350. consumes:
  351. - application/json
  352. description: 地址
  353. parameters:
  354. - description: 页码
  355. in: query
  356. name: current
  357. type: integer
  358. - description: 每页数量
  359. in: query
  360. name: pageSize
  361. type: integer
  362. - description: guid
  363. in: query
  364. name: ab
  365. type: string
  366. produces:
  367. - application/json
  368. responses:
  369. "200":
  370. description: OK
  371. schema:
  372. $ref: '#/definitions/response.Response'
  373. "500":
  374. description: Internal Server Error
  375. schema:
  376. $ref: '#/definitions/response.Response'
  377. security:
  378. - BearerAuth: []
  379. summary: 地址列表
  380. tags:
  381. - 地址[Personal]
  382. /ab/personal:
  383. post:
  384. consumes:
  385. - application/json
  386. description: 个人地址
  387. parameters:
  388. - description: string valid
  389. in: body
  390. name: string
  391. schema:
  392. type: string
  393. produces:
  394. - application/json
  395. responses:
  396. "200":
  397. description: OK
  398. schema:
  399. $ref: '#/definitions/response.Response'
  400. "500":
  401. description: Internal Server Error
  402. schema:
  403. $ref: '#/definitions/response.Response'
  404. security:
  405. - BearerAuth: []
  406. summary: 个人地址
  407. tags:
  408. - 地址[Personal]
  409. /ab/settings:
  410. post:
  411. consumes:
  412. - application/json
  413. description: 设置
  414. parameters:
  415. - description: string valid
  416. in: body
  417. name: string
  418. schema:
  419. type: string
  420. produces:
  421. - application/json
  422. responses:
  423. "200":
  424. description: OK
  425. schema:
  426. $ref: '#/definitions/response.Response'
  427. "500":
  428. description: Internal Server Error
  429. schema:
  430. $ref: '#/definitions/response.Response'
  431. security:
  432. - BearerAuth: []
  433. summary: 设置
  434. tags:
  435. - 地址[Personal]
  436. /ab/shared/profiles:
  437. post:
  438. consumes:
  439. - application/json
  440. description: 共享
  441. parameters:
  442. - description: 页码
  443. in: query
  444. name: current
  445. type: integer
  446. - description: 每页数量
  447. in: query
  448. name: pageSize
  449. type: integer
  450. produces:
  451. - application/json
  452. responses:
  453. "200":
  454. description: OK
  455. schema:
  456. $ref: '#/definitions/response.Response'
  457. "500":
  458. description: Internal Server Error
  459. schema:
  460. $ref: '#/definitions/response.Response'
  461. security:
  462. - BearerAuth: []
  463. summary: 共享地址簿
  464. tags:
  465. - 地址[Personal]
  466. /ab/tag/{guid}:
  467. delete:
  468. consumes:
  469. - application/json
  470. description: 标签
  471. parameters:
  472. - description: guid
  473. in: path
  474. name: guid
  475. required: true
  476. type: string
  477. produces:
  478. - application/json
  479. responses:
  480. "200":
  481. description: OK
  482. schema:
  483. type: string
  484. "500":
  485. description: Internal Server Error
  486. schema:
  487. $ref: '#/definitions/response.ErrorResponse'
  488. security:
  489. - BearerAuth: []
  490. summary: 标签删除
  491. tags:
  492. - 地址[Personal]
  493. /ab/tag/add/{guid}:
  494. post:
  495. consumes:
  496. - application/json
  497. description: 标签
  498. parameters:
  499. - description: guid
  500. in: path
  501. name: guid
  502. required: true
  503. type: string
  504. produces:
  505. - application/json
  506. responses:
  507. "200":
  508. description: OK
  509. schema:
  510. type: string
  511. "500":
  512. description: Internal Server Error
  513. schema:
  514. $ref: '#/definitions/response.ErrorResponse'
  515. security:
  516. - BearerAuth: []
  517. summary: 标签添加
  518. tags:
  519. - 地址[Personal]
  520. /ab/tag/rename/{guid}:
  521. put:
  522. consumes:
  523. - application/json
  524. description: 标签
  525. parameters:
  526. - description: guid
  527. in: path
  528. name: guid
  529. required: true
  530. type: string
  531. produces:
  532. - application/json
  533. responses:
  534. "200":
  535. description: OK
  536. schema:
  537. type: string
  538. "500":
  539. description: Internal Server Error
  540. schema:
  541. $ref: '#/definitions/response.ErrorResponse'
  542. security:
  543. - BearerAuth: []
  544. summary: 标签重命名
  545. tags:
  546. - 地址[Personal]
  547. /ab/tag/update/{guid}:
  548. put:
  549. consumes:
  550. - application/json
  551. description: 标签
  552. parameters:
  553. - description: guid
  554. in: path
  555. name: guid
  556. required: true
  557. type: string
  558. produces:
  559. - application/json
  560. responses:
  561. "200":
  562. description: OK
  563. schema:
  564. type: string
  565. "500":
  566. description: Internal Server Error
  567. schema:
  568. $ref: '#/definitions/response.ErrorResponse'
  569. security:
  570. - BearerAuth: []
  571. summary: 标签修改颜色
  572. tags:
  573. - 地址[Personal]
  574. /ab/tags/{guid}:
  575. post:
  576. consumes:
  577. - application/json
  578. description: 标签
  579. parameters:
  580. - description: guid
  581. in: path
  582. name: guid
  583. required: true
  584. type: string
  585. produces:
  586. - application/json
  587. responses:
  588. "200":
  589. description: OK
  590. schema:
  591. $ref: '#/definitions/model.TagList'
  592. "500":
  593. description: Internal Server Error
  594. schema:
  595. $ref: '#/definitions/response.ErrorResponse'
  596. security:
  597. - BearerAuth: []
  598. summary: 标签
  599. tags:
  600. - 地址[Personal]
  601. /api:
  602. get:
  603. consumes:
  604. - application/json
  605. description: 用户信息
  606. produces:
  607. - application/json
  608. responses:
  609. "200":
  610. description: OK
  611. schema:
  612. $ref: '#/definitions/api.UserPayload'
  613. "500":
  614. description: Internal Server Error
  615. schema:
  616. $ref: '#/definitions/response.Response'
  617. security:
  618. - token: []
  619. summary: 用户信息
  620. tags:
  621. - 用户
  622. /audit/conn:
  623. post:
  624. consumes:
  625. - application/json
  626. description: 审计连接
  627. parameters:
  628. - description: 审计连接
  629. in: body
  630. name: body
  631. required: true
  632. schema:
  633. $ref: '#/definitions/api.AuditConnForm'
  634. produces:
  635. - application/json
  636. responses:
  637. "200":
  638. description: OK
  639. schema:
  640. type: string
  641. "500":
  642. description: Internal Server Error
  643. schema:
  644. $ref: '#/definitions/response.Response'
  645. summary: 审计连接
  646. tags:
  647. - 审计
  648. /audit/file:
  649. post:
  650. consumes:
  651. - application/json
  652. description: 审计文件
  653. parameters:
  654. - description: 审计文件
  655. in: body
  656. name: body
  657. required: true
  658. schema:
  659. $ref: '#/definitions/api.AuditFileForm'
  660. produces:
  661. - application/json
  662. responses:
  663. "200":
  664. description: OK
  665. schema:
  666. type: string
  667. "500":
  668. description: Internal Server Error
  669. schema:
  670. $ref: '#/definitions/response.Response'
  671. summary: 审计文件
  672. tags:
  673. - 审计
  674. /heartbeat:
  675. post:
  676. consumes:
  677. - application/json
  678. description: 心跳
  679. produces:
  680. - application/json
  681. responses:
  682. "200":
  683. description: OK
  684. "500":
  685. description: Internal Server Error
  686. schema:
  687. $ref: '#/definitions/response.Response'
  688. summary: 心跳
  689. tags:
  690. - 首页
  691. /login:
  692. post:
  693. consumes:
  694. - application/json
  695. description: 登录
  696. parameters:
  697. - description: 登录表单
  698. in: body
  699. name: body
  700. required: true
  701. schema:
  702. $ref: '#/definitions/api.LoginForm'
  703. produces:
  704. - application/json
  705. responses:
  706. "200":
  707. description: OK
  708. schema:
  709. $ref: '#/definitions/api.LoginRes'
  710. "500":
  711. description: Internal Server Error
  712. schema:
  713. $ref: '#/definitions/response.ErrorResponse'
  714. summary: 登录
  715. tags:
  716. - 登录
  717. /login-options:
  718. get:
  719. consumes:
  720. - application/json
  721. description: 登录选项
  722. produces:
  723. - application/json
  724. responses:
  725. "200":
  726. description: OK
  727. schema:
  728. items:
  729. type: string
  730. type: array
  731. "500":
  732. description: Internal Server Error
  733. schema:
  734. $ref: '#/definitions/response.ErrorResponse'
  735. summary: 登录选项
  736. tags:
  737. - 登录
  738. /logout:
  739. post:
  740. consumes:
  741. - application/json
  742. description: 登出
  743. produces:
  744. - application/json
  745. responses:
  746. "200":
  747. description: OK
  748. schema:
  749. type: string
  750. "500":
  751. description: Internal Server Error
  752. schema:
  753. $ref: '#/definitions/response.ErrorResponse'
  754. summary: 登出
  755. tags:
  756. - 登录
  757. /oauth/callback:
  758. get:
  759. consumes:
  760. - application/json
  761. description: OauthCallback
  762. produces:
  763. - application/json
  764. responses:
  765. "200":
  766. description: OK
  767. schema:
  768. $ref: '#/definitions/api.LoginRes'
  769. "500":
  770. description: Internal Server Error
  771. schema:
  772. $ref: '#/definitions/response.ErrorResponse'
  773. summary: OauthCallback
  774. tags:
  775. - Oauth
  776. /oidc/auth:
  777. post:
  778. consumes:
  779. - application/json
  780. description: OidcAuth
  781. produces:
  782. - application/json
  783. responses:
  784. "200":
  785. description: OK
  786. schema:
  787. $ref: '#/definitions/api.LoginRes'
  788. "500":
  789. description: Internal Server Error
  790. schema:
  791. $ref: '#/definitions/response.ErrorResponse'
  792. summary: OidcAuth
  793. tags:
  794. - Oauth
  795. /oidc/auth-query:
  796. get:
  797. consumes:
  798. - application/json
  799. description: OidcAuthQuery
  800. produces:
  801. - application/json
  802. responses:
  803. "200":
  804. description: OK
  805. schema:
  806. $ref: '#/definitions/api.LoginRes'
  807. "500":
  808. description: Internal Server Error
  809. schema:
  810. $ref: '#/definitions/response.ErrorResponse'
  811. summary: OidcAuthQuery
  812. tags:
  813. - Oauth
  814. /peers:
  815. get:
  816. consumes:
  817. - application/json
  818. description: 机器
  819. parameters:
  820. - description: 页码
  821. in: query
  822. name: page
  823. type: integer
  824. - description: 每页数量
  825. in: query
  826. name: pageSize
  827. type: integer
  828. - description: 状态
  829. in: query
  830. name: status
  831. type: integer
  832. - description: accessible
  833. in: query
  834. name: accessible
  835. type: string
  836. produces:
  837. - application/json
  838. responses:
  839. "200":
  840. description: OK
  841. schema:
  842. $ref: '#/definitions/response.DataResponse'
  843. "500":
  844. description: Internal Server Error
  845. schema:
  846. $ref: '#/definitions/response.Response'
  847. security:
  848. - BearerAuth: []
  849. summary: 机器
  850. tags:
  851. - 群组
  852. /server-config:
  853. get:
  854. consumes:
  855. - application/json
  856. description: 服务配置,给webclient提供api-server
  857. produces:
  858. - application/json
  859. responses:
  860. "200":
  861. description: OK
  862. schema:
  863. $ref: '#/definitions/response.Response'
  864. "500":
  865. description: Internal Server Error
  866. schema:
  867. $ref: '#/definitions/response.Response'
  868. security:
  869. - token: []
  870. summary: 服务配置
  871. tags:
  872. - WEBCLIENT
  873. /server-config-v2:
  874. get:
  875. consumes:
  876. - application/json
  877. description: 服务配置,给webclient提供api-server
  878. produces:
  879. - application/json
  880. responses:
  881. "200":
  882. description: OK
  883. schema:
  884. $ref: '#/definitions/response.Response'
  885. "500":
  886. description: Internal Server Error
  887. schema:
  888. $ref: '#/definitions/response.Response'
  889. security:
  890. - token: []
  891. summary: 服务配置
  892. tags:
  893. - WEBCLIENT_V2
  894. /shared-peer:
  895. post:
  896. consumes:
  897. - application/json
  898. description: 分享的peer
  899. produces:
  900. - application/json
  901. responses:
  902. "200":
  903. description: OK
  904. schema:
  905. $ref: '#/definitions/response.Response'
  906. "500":
  907. description: Internal Server Error
  908. schema:
  909. $ref: '#/definitions/response.Response'
  910. summary: 分享的peer
  911. tags:
  912. - WEBCLIENT
  913. /sysinfo:
  914. post:
  915. consumes:
  916. - application/json
  917. description: 提交系统信息
  918. parameters:
  919. - description: 系统信息表单
  920. in: body
  921. name: body
  922. required: true
  923. schema:
  924. $ref: '#/definitions/api.PeerForm'
  925. produces:
  926. - application/json
  927. responses:
  928. "200":
  929. description: SYSINFO_UPDATED,ID_NOT_FOUND
  930. schema:
  931. type: string
  932. "500":
  933. description: Internal Server Error
  934. schema:
  935. $ref: '#/definitions/response.ErrorResponse'
  936. summary: 提交系统信息
  937. tags:
  938. - 地址
  939. /tags:
  940. post:
  941. consumes:
  942. - application/json
  943. description: 标签
  944. produces:
  945. - application/json
  946. responses:
  947. "200":
  948. description: OK
  949. schema:
  950. items:
  951. $ref: '#/definitions/model.Tag'
  952. type: array
  953. "500":
  954. description: Internal Server Error
  955. schema:
  956. $ref: '#/definitions/response.ErrorResponse'
  957. security:
  958. - BearerAuth: []
  959. summary: 标签
  960. tags:
  961. - 地址
  962. /users:
  963. get:
  964. consumes:
  965. - application/json
  966. description: 用户列表
  967. parameters:
  968. - description: 页码
  969. in: query
  970. name: page
  971. type: integer
  972. - description: 每页数量
  973. in: query
  974. name: pageSize
  975. type: integer
  976. - description: 状态
  977. in: query
  978. name: status
  979. type: integer
  980. - description: accessible
  981. in: query
  982. name: accessible
  983. type: string
  984. produces:
  985. - application/json
  986. responses:
  987. "200":
  988. description: OK
  989. schema:
  990. allOf:
  991. - $ref: '#/definitions/response.DataResponse'
  992. - properties:
  993. data:
  994. items:
  995. $ref: '#/definitions/api.UserPayload'
  996. type: array
  997. type: object
  998. "500":
  999. description: Internal Server Error
  1000. schema:
  1001. $ref: '#/definitions/response.ErrorResponse'
  1002. security:
  1003. - BearerAuth: []
  1004. summary: 用户列表
  1005. tags:
  1006. - 群组
  1007. securityDefinitions:
  1008. BearerAuth:
  1009. in: header
  1010. name: Authorization
  1011. type: apiKey
  1012. token:
  1013. in: header
  1014. name: api-token
  1015. type: apiKey
  1016. swagger: "2.0"