api_swagger.yaml 24 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070
  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. /oidc/auth:
  796. post:
  797. consumes:
  798. - application/json
  799. description: OidcAuth
  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: OidcAuth
  812. tags:
  813. - Oauth
  814. /oidc/auth-query:
  815. get:
  816. consumes:
  817. - application/json
  818. description: OidcAuthQuery
  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: OidcAuthQuery
  831. tags:
  832. - Oauth
  833. /oidc/callback:
  834. get:
  835. consumes:
  836. - application/json
  837. description: OauthCallback
  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: OauthCallback
  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. - System
  977. /sysinfo_ver:
  978. post:
  979. consumes:
  980. - application/json
  981. description: 获取系统版本信息
  982. produces:
  983. - application/json
  984. responses:
  985. "200":
  986. description: OK
  987. schema:
  988. type: string
  989. "500":
  990. description: Internal Server Error
  991. schema:
  992. $ref: '#/definitions/response.ErrorResponse'
  993. summary: 获取系统版本信息
  994. tags:
  995. - System
  996. /users:
  997. get:
  998. consumes:
  999. - application/json
  1000. description: 用户列表
  1001. parameters:
  1002. - description: 页码
  1003. in: query
  1004. name: page
  1005. type: integer
  1006. - description: 每页数量
  1007. in: query
  1008. name: pageSize
  1009. type: integer
  1010. - description: 状态
  1011. in: query
  1012. name: status
  1013. type: integer
  1014. - description: accessible
  1015. in: query
  1016. name: accessible
  1017. type: string
  1018. produces:
  1019. - application/json
  1020. responses:
  1021. "200":
  1022. description: OK
  1023. schema:
  1024. allOf:
  1025. - $ref: '#/definitions/response.DataResponse'
  1026. - properties:
  1027. data:
  1028. items:
  1029. $ref: '#/definitions/api.UserPayload'
  1030. type: array
  1031. type: object
  1032. "500":
  1033. description: Internal Server Error
  1034. schema:
  1035. $ref: '#/definitions/response.ErrorResponse'
  1036. security:
  1037. - BearerAuth: []
  1038. summary: 用户列表
  1039. tags:
  1040. - 群组
  1041. /version:
  1042. get:
  1043. consumes:
  1044. - application/json
  1045. description: 版本
  1046. produces:
  1047. - application/json
  1048. responses:
  1049. "200":
  1050. description: OK
  1051. schema:
  1052. $ref: '#/definitions/response.Response'
  1053. "500":
  1054. description: Internal Server Error
  1055. schema:
  1056. $ref: '#/definitions/response.Response'
  1057. summary: 版本
  1058. tags:
  1059. - 首页
  1060. securityDefinitions:
  1061. BearerAuth:
  1062. in: header
  1063. name: Authorization
  1064. type: apiKey
  1065. token:
  1066. in: header
  1067. name: api-token
  1068. type: apiKey
  1069. swagger: "2.0"