api_swagger.yaml 23 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051
  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. /audit/conn:
  602. post:
  603. consumes:
  604. - application/json
  605. description: 审计连接
  606. parameters:
  607. - description: 审计连接
  608. in: body
  609. name: body
  610. required: true
  611. schema:
  612. $ref: '#/definitions/api.AuditConnForm'
  613. produces:
  614. - application/json
  615. responses:
  616. "200":
  617. description: OK
  618. schema:
  619. type: string
  620. "500":
  621. description: Internal Server Error
  622. schema:
  623. $ref: '#/definitions/response.Response'
  624. summary: 审计连接
  625. tags:
  626. - 审计
  627. /audit/file:
  628. post:
  629. consumes:
  630. - application/json
  631. description: 审计文件
  632. parameters:
  633. - description: 审计文件
  634. in: body
  635. name: body
  636. required: true
  637. schema:
  638. $ref: '#/definitions/api.AuditFileForm'
  639. produces:
  640. - application/json
  641. responses:
  642. "200":
  643. description: OK
  644. schema:
  645. type: string
  646. "500":
  647. description: Internal Server Error
  648. schema:
  649. $ref: '#/definitions/response.Response'
  650. summary: 审计文件
  651. tags:
  652. - 审计
  653. /currentUser:
  654. get:
  655. consumes:
  656. - application/json
  657. description: 用户信息
  658. produces:
  659. - application/json
  660. responses:
  661. "200":
  662. description: OK
  663. schema:
  664. $ref: '#/definitions/api.UserPayload'
  665. "500":
  666. description: Internal Server Error
  667. schema:
  668. $ref: '#/definitions/response.Response'
  669. security:
  670. - token: []
  671. summary: 用户信息
  672. tags:
  673. - 用户
  674. /device-group/accessible:
  675. get:
  676. consumes:
  677. - application/json
  678. description: 机器
  679. parameters:
  680. - description: 页码
  681. in: query
  682. name: page
  683. type: integer
  684. - description: 每页数量
  685. in: query
  686. name: pageSize
  687. type: integer
  688. - description: 状态
  689. in: query
  690. name: status
  691. type: integer
  692. - description: accessible
  693. in: query
  694. name: accessible
  695. type: string
  696. produces:
  697. - application/json
  698. responses:
  699. "200":
  700. description: OK
  701. schema:
  702. $ref: '#/definitions/response.DataResponse'
  703. "500":
  704. description: Internal Server Error
  705. schema:
  706. $ref: '#/definitions/response.Response'
  707. security:
  708. - BearerAuth: []
  709. summary: 设备
  710. tags:
  711. - 群组
  712. /heartbeat:
  713. post:
  714. consumes:
  715. - application/json
  716. description: 心跳
  717. produces:
  718. - application/json
  719. responses:
  720. "200":
  721. description: OK
  722. "500":
  723. description: Internal Server Error
  724. schema:
  725. $ref: '#/definitions/response.Response'
  726. summary: 心跳
  727. tags:
  728. - 首页
  729. /login:
  730. post:
  731. consumes:
  732. - application/json
  733. description: 登录
  734. parameters:
  735. - description: 登录表单
  736. in: body
  737. name: body
  738. required: true
  739. schema:
  740. $ref: '#/definitions/api.LoginForm'
  741. produces:
  742. - application/json
  743. responses:
  744. "200":
  745. description: OK
  746. schema:
  747. $ref: '#/definitions/api.LoginRes'
  748. "500":
  749. description: Internal Server Error
  750. schema:
  751. $ref: '#/definitions/response.ErrorResponse'
  752. summary: 登录
  753. tags:
  754. - 登录
  755. /login-options:
  756. get:
  757. consumes:
  758. - application/json
  759. description: 登录选项
  760. produces:
  761. - application/json
  762. responses:
  763. "200":
  764. description: OK
  765. schema:
  766. items:
  767. type: string
  768. type: array
  769. "500":
  770. description: Internal Server Error
  771. schema:
  772. $ref: '#/definitions/response.ErrorResponse'
  773. summary: 登录选项
  774. tags:
  775. - 登录
  776. /logout:
  777. post:
  778. consumes:
  779. - application/json
  780. description: 登出
  781. produces:
  782. - application/json
  783. responses:
  784. "200":
  785. description: OK
  786. schema:
  787. type: string
  788. "500":
  789. description: Internal Server Error
  790. schema:
  791. $ref: '#/definitions/response.ErrorResponse'
  792. summary: 登出
  793. tags:
  794. - 登录
  795. /oauth/callback:
  796. get:
  797. consumes:
  798. - application/json
  799. description: OauthCallback
  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: OauthCallback
  812. tags:
  813. - Oauth
  814. /oidc/auth:
  815. post:
  816. consumes:
  817. - application/json
  818. description: OidcAuth
  819. produces:
  820. - application/json
  821. responses:
  822. "200":
  823. description: OK
  824. schema:
  825. $ref: '#/definitions/api.LoginRes'
  826. "500":
  827. description: Internal Server Error
  828. schema:
  829. $ref: '#/definitions/response.ErrorResponse'
  830. summary: OidcAuth
  831. tags:
  832. - Oauth
  833. /oidc/auth-query:
  834. get:
  835. consumes:
  836. - application/json
  837. description: OidcAuthQuery
  838. produces:
  839. - application/json
  840. responses:
  841. "200":
  842. description: OK
  843. schema:
  844. $ref: '#/definitions/api.LoginRes'
  845. "500":
  846. description: Internal Server Error
  847. schema:
  848. $ref: '#/definitions/response.ErrorResponse'
  849. summary: OidcAuthQuery
  850. tags:
  851. - Oauth
  852. /peers:
  853. get:
  854. consumes:
  855. - application/json
  856. description: 机器
  857. parameters:
  858. - description: 页码
  859. in: query
  860. name: page
  861. type: integer
  862. - description: 每页数量
  863. in: query
  864. name: pageSize
  865. type: integer
  866. - description: 状态
  867. in: query
  868. name: status
  869. type: integer
  870. - description: accessible
  871. in: query
  872. name: accessible
  873. type: string
  874. produces:
  875. - application/json
  876. responses:
  877. "200":
  878. description: OK
  879. schema:
  880. $ref: '#/definitions/response.DataResponse'
  881. "500":
  882. description: Internal Server Error
  883. schema:
  884. $ref: '#/definitions/response.Response'
  885. security:
  886. - BearerAuth: []
  887. summary: 机器
  888. tags:
  889. - 群组
  890. /server-config:
  891. get:
  892. consumes:
  893. - application/json
  894. description: 服务配置,给webclient提供api-server
  895. produces:
  896. - application/json
  897. responses:
  898. "200":
  899. description: OK
  900. schema:
  901. $ref: '#/definitions/response.Response'
  902. "500":
  903. description: Internal Server Error
  904. schema:
  905. $ref: '#/definitions/response.Response'
  906. security:
  907. - token: []
  908. summary: 服务配置
  909. tags:
  910. - WEBCLIENT
  911. /server-config-v2:
  912. get:
  913. consumes:
  914. - application/json
  915. description: 服务配置,给webclient提供api-server
  916. produces:
  917. - application/json
  918. responses:
  919. "200":
  920. description: OK
  921. schema:
  922. $ref: '#/definitions/response.Response'
  923. "500":
  924. description: Internal Server Error
  925. schema:
  926. $ref: '#/definitions/response.Response'
  927. security:
  928. - token: []
  929. summary: 服务配置
  930. tags:
  931. - WEBCLIENT_V2
  932. /shared-peer:
  933. post:
  934. consumes:
  935. - application/json
  936. description: 分享的peer
  937. produces:
  938. - application/json
  939. responses:
  940. "200":
  941. description: OK
  942. schema:
  943. $ref: '#/definitions/response.Response'
  944. "500":
  945. description: Internal Server Error
  946. schema:
  947. $ref: '#/definitions/response.Response'
  948. summary: 分享的peer
  949. tags:
  950. - WEBCLIENT
  951. /sysinfo:
  952. post:
  953. consumes:
  954. - application/json
  955. description: 提交系统信息
  956. parameters:
  957. - description: 系统信息表单
  958. in: body
  959. name: body
  960. required: true
  961. schema:
  962. $ref: '#/definitions/api.PeerForm'
  963. produces:
  964. - application/json
  965. responses:
  966. "200":
  967. description: SYSINFO_UPDATED,ID_NOT_FOUND
  968. schema:
  969. type: string
  970. "500":
  971. description: Internal Server Error
  972. schema:
  973. $ref: '#/definitions/response.ErrorResponse'
  974. summary: 提交系统信息
  975. tags:
  976. - 地址
  977. /users:
  978. get:
  979. consumes:
  980. - application/json
  981. description: 用户列表
  982. parameters:
  983. - description: 页码
  984. in: query
  985. name: page
  986. type: integer
  987. - description: 每页数量
  988. in: query
  989. name: pageSize
  990. type: integer
  991. - description: 状态
  992. in: query
  993. name: status
  994. type: integer
  995. - description: accessible
  996. in: query
  997. name: accessible
  998. type: string
  999. produces:
  1000. - application/json
  1001. responses:
  1002. "200":
  1003. description: OK
  1004. schema:
  1005. allOf:
  1006. - $ref: '#/definitions/response.DataResponse'
  1007. - properties:
  1008. data:
  1009. items:
  1010. $ref: '#/definitions/api.UserPayload'
  1011. type: array
  1012. type: object
  1013. "500":
  1014. description: Internal Server Error
  1015. schema:
  1016. $ref: '#/definitions/response.ErrorResponse'
  1017. security:
  1018. - BearerAuth: []
  1019. summary: 用户列表
  1020. tags:
  1021. - 群组
  1022. /version:
  1023. get:
  1024. consumes:
  1025. - application/json
  1026. description: 版本
  1027. produces:
  1028. - application/json
  1029. responses:
  1030. "200":
  1031. description: OK
  1032. schema:
  1033. $ref: '#/definitions/response.Response'
  1034. "500":
  1035. description: Internal Server Error
  1036. schema:
  1037. $ref: '#/definitions/response.Response'
  1038. summary: 版本
  1039. tags:
  1040. - 首页
  1041. securityDefinitions:
  1042. BearerAuth:
  1043. in: header
  1044. name: Authorization
  1045. type: apiKey
  1046. token:
  1047. in: header
  1048. name: api-token
  1049. type: apiKey
  1050. swagger: "2.0"