api_swagger.yaml 22 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013
  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. /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. /users:
  940. get:
  941. consumes:
  942. - application/json
  943. description: 用户列表
  944. parameters:
  945. - description: 页码
  946. in: query
  947. name: page
  948. type: integer
  949. - description: 每页数量
  950. in: query
  951. name: pageSize
  952. type: integer
  953. - description: 状态
  954. in: query
  955. name: status
  956. type: integer
  957. - description: accessible
  958. in: query
  959. name: accessible
  960. type: string
  961. produces:
  962. - application/json
  963. responses:
  964. "200":
  965. description: OK
  966. schema:
  967. allOf:
  968. - $ref: '#/definitions/response.DataResponse'
  969. - properties:
  970. data:
  971. items:
  972. $ref: '#/definitions/api.UserPayload'
  973. type: array
  974. type: object
  975. "500":
  976. description: Internal Server Error
  977. schema:
  978. $ref: '#/definitions/response.ErrorResponse'
  979. security:
  980. - BearerAuth: []
  981. summary: 用户列表
  982. tags:
  983. - 群组
  984. /version:
  985. get:
  986. consumes:
  987. - application/json
  988. description: 版本
  989. produces:
  990. - application/json
  991. responses:
  992. "200":
  993. description: OK
  994. schema:
  995. $ref: '#/definitions/response.Response'
  996. "500":
  997. description: Internal Server Error
  998. schema:
  999. $ref: '#/definitions/response.Response'
  1000. summary: 版本
  1001. tags:
  1002. - 首页
  1003. securityDefinitions:
  1004. BearerAuth:
  1005. in: header
  1006. name: Authorization
  1007. type: apiKey
  1008. token:
  1009. in: header
  1010. name: api-token
  1011. type: apiKey
  1012. swagger: "2.0"