swagger.yaml 23 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049
  1. definitions:
  2. base.HTTPError:
  3. properties:
  4. code:
  5. example: 500
  6. format: int
  7. type: integer
  8. message:
  9. example: status bad request
  10. type: string
  11. type: object
  12. v1.CreateManagementUserReply:
  13. properties:
  14. uid:
  15. type: integer
  16. type: object
  17. v1.LoginBody:
  18. properties:
  19. key:
  20. type: string
  21. password:
  22. type: string
  23. user:
  24. type: string
  25. type: object
  26. v1.LoginData:
  27. properties:
  28. organization:
  29. type: string
  30. refresh_token:
  31. type: string
  32. token:
  33. type: string
  34. uid:
  35. type: integer
  36. user:
  37. type: string
  38. type: object
  39. v1.LoginResponse:
  40. properties:
  41. code:
  42. default: 0
  43. description: 返回码
  44. format: int
  45. type: integer
  46. data:
  47. $ref: '#/definitions/v1.LoginData'
  48. type: object
  49. message:
  50. default: success
  51. description: 消息
  52. type: string
  53. type: object
  54. v1.ManagementLogItem:
  55. properties:
  56. action:
  57. description: 行为
  58. type: string
  59. created_at:
  60. description: 时间
  61. type: string
  62. id:
  63. description: 日志id
  64. type: integer
  65. module:
  66. description: 模块
  67. type: string
  68. origin:
  69. description: 修改前信息
  70. type: string
  71. target:
  72. description: 修改后信息
  73. type: string
  74. uid:
  75. description: 账号id
  76. type: integer
  77. username:
  78. description: 账号名
  79. type: string
  80. type: object
  81. v1.ManagementLogListReply:
  82. properties:
  83. list:
  84. items:
  85. $ref: '#/definitions/v1.ManagementLogItem'
  86. type: array
  87. page:
  88. type: integer
  89. total:
  90. type: integer
  91. type: object
  92. v1.ManagementLogListResponse:
  93. properties:
  94. code:
  95. default: 0
  96. description: 返回码
  97. format: int
  98. type: integer
  99. data:
  100. $ref: '#/definitions/v1.ManagementLogListReply'
  101. type: object
  102. message:
  103. default: success
  104. description: 消息
  105. type: string
  106. type: object
  107. v1.RbacGroupAddBody:
  108. properties:
  109. name:
  110. type: string
  111. node_list:
  112. type: string
  113. type: object
  114. v1.RbacGroupAddReply:
  115. properties:
  116. id:
  117. type: integer
  118. type: object
  119. v1.RbacGroupAddResponse:
  120. properties:
  121. code:
  122. default: 0
  123. description: 返回码
  124. format: int
  125. type: integer
  126. data:
  127. $ref: '#/definitions/v1.RbacGroupAddReply'
  128. type: object
  129. message:
  130. default: success
  131. description: 消息
  132. type: string
  133. type: object
  134. v1.RbacGroupDelResponse:
  135. properties:
  136. code:
  137. default: 0
  138. description: 返回码
  139. format: int
  140. type: integer
  141. message:
  142. default: success
  143. description: 消息
  144. type: string
  145. type: object
  146. v1.RbacGroupItem:
  147. properties:
  148. id:
  149. type: integer
  150. name:
  151. type: string
  152. type: object
  153. v1.RbacGroupListReply:
  154. properties:
  155. list:
  156. items:
  157. $ref: '#/definitions/v1.RbacGroupItem'
  158. type: array
  159. type: object
  160. v1.RbacGroupListResponse:
  161. properties:
  162. code:
  163. default: 0
  164. description: 返回码
  165. format: int
  166. type: integer
  167. data:
  168. $ref: '#/definitions/v1.RbacGroupListReply'
  169. type: object
  170. message:
  171. default: success
  172. description: 消息
  173. type: string
  174. type: object
  175. v1.RbacGroupUpdateBody:
  176. properties:
  177. id:
  178. type: integer
  179. name:
  180. type: string
  181. node_list:
  182. type: string
  183. type: object
  184. v1.RbacGroupUpdateResponse:
  185. properties:
  186. code:
  187. default: 0
  188. description: 返回码
  189. format: int
  190. type: integer
  191. message:
  192. default: success
  193. description: 消息
  194. type: string
  195. type: object
  196. v1.RbacNodeItem:
  197. properties:
  198. childs:
  199. items:
  200. $ref: '#/definitions/v1.RbacNodeItem'
  201. type: array
  202. id:
  203. type: integer
  204. method:
  205. type: string
  206. name:
  207. type: string
  208. object:
  209. type: string
  210. pid:
  211. type: integer
  212. resource:
  213. type: string
  214. router:
  215. type: string
  216. select:
  217. type: boolean
  218. type: object
  219. v1.RbacNodeListReply:
  220. properties:
  221. list:
  222. items:
  223. $ref: '#/definitions/v1.RbacNodeItem'
  224. type: array
  225. type: object
  226. v1.RbacNodeListResponse:
  227. properties:
  228. code:
  229. default: 0
  230. description: 返回码
  231. format: int
  232. type: integer
  233. data:
  234. $ref: '#/definitions/v1.RbacNodeListReply'
  235. type: object
  236. message:
  237. default: success
  238. description: 消息
  239. type: string
  240. type: object
  241. v1.TokenResponse:
  242. properties:
  243. code:
  244. default: 0
  245. description: 返回码
  246. format: int
  247. type: integer
  248. data:
  249. type: string
  250. message:
  251. default: success
  252. description: 消息
  253. type: string
  254. refresh_token:
  255. type: string
  256. type: object
  257. v1.UserCreateBody:
  258. properties:
  259. email:
  260. type: string
  261. group_id:
  262. type: integer
  263. name:
  264. description: 姓名
  265. type: string
  266. password:
  267. type: string
  268. phone:
  269. type: string
  270. username:
  271. description: 账户名
  272. type: string
  273. zones:
  274. type: string
  275. type: object
  276. v1.UserCreateResponse:
  277. properties:
  278. code:
  279. default: 0
  280. description: 返回码
  281. format: int
  282. type: integer
  283. data:
  284. $ref: '#/definitions/v1.CreateManagementUserReply'
  285. type: object
  286. message:
  287. default: success
  288. description: 消息
  289. type: string
  290. type: object
  291. v1.UserDelResponse:
  292. properties:
  293. code:
  294. default: 0
  295. description: 返回码
  296. format: int
  297. type: integer
  298. message:
  299. default: success
  300. description: 消息
  301. type: string
  302. type: object
  303. v1.UserInfoReply:
  304. properties:
  305. email:
  306. type: string
  307. group_id:
  308. description: 所属角色
  309. type: integer
  310. group_name:
  311. type: string
  312. id:
  313. type: integer
  314. name:
  315. type: string
  316. node_list:
  317. description: 所拥有的权限
  318. items:
  319. $ref: '#/definitions/v1.RbacNodeItem'
  320. type: array
  321. phone:
  322. type: string
  323. username:
  324. type: string
  325. zone_list:
  326. items:
  327. $ref: '#/definitions/v1.ZoneItemSelect'
  328. type: array
  329. type: object
  330. v1.UserInfoResponse:
  331. properties:
  332. code:
  333. default: 0
  334. description: 返回码
  335. format: int
  336. type: integer
  337. data:
  338. $ref: '#/definitions/v1.UserInfoReply'
  339. type: object
  340. message:
  341. default: success
  342. description: 消息
  343. type: string
  344. type: object
  345. v1.UserItem:
  346. properties:
  347. email:
  348. type: string
  349. id:
  350. type: integer
  351. name:
  352. type: string
  353. phone:
  354. type: string
  355. username:
  356. type: string
  357. zones:
  358. items:
  359. type: string
  360. type: array
  361. type: object
  362. v1.UserListReply:
  363. properties:
  364. list:
  365. items:
  366. $ref: '#/definitions/v1.UserItem'
  367. type: array
  368. page:
  369. type: integer
  370. total:
  371. type: integer
  372. type: object
  373. v1.UserListResponse:
  374. properties:
  375. code:
  376. default: 0
  377. description: 返回码
  378. format: int
  379. type: integer
  380. data:
  381. $ref: '#/definitions/v1.UserListReply'
  382. type: object
  383. message:
  384. default: success
  385. description: 消息
  386. type: string
  387. type: object
  388. v1.UserUpdateBody:
  389. properties:
  390. email:
  391. type: string
  392. group_id:
  393. type: integer
  394. id:
  395. type: integer
  396. name:
  397. description: 姓名
  398. type: string
  399. password:
  400. type: string
  401. phone:
  402. type: string
  403. username:
  404. description: 账户名
  405. type: string
  406. zones:
  407. type: string
  408. type: object
  409. v1.UserUpdateResponse:
  410. properties:
  411. code:
  412. default: 0
  413. description: 返回码
  414. format: int
  415. type: integer
  416. message:
  417. default: success
  418. description: 消息
  419. type: string
  420. type: object
  421. v1.ZoneAddBody:
  422. properties:
  423. parent_zone_code:
  424. type: string
  425. zone_name:
  426. type: string
  427. type: object
  428. v1.ZoneAddReply:
  429. properties:
  430. zone_code:
  431. type: string
  432. type: object
  433. v1.ZoneAddResponse:
  434. properties:
  435. code:
  436. default: 0
  437. description: 返回码
  438. format: int
  439. type: integer
  440. data:
  441. $ref: '#/definitions/v1.ZoneAddReply'
  442. type: object
  443. message:
  444. default: success
  445. description: 消息
  446. type: string
  447. type: object
  448. v1.ZoneDelResponse:
  449. properties:
  450. code:
  451. default: 0
  452. description: 返回码
  453. format: int
  454. type: integer
  455. message:
  456. default: success
  457. description: 消息
  458. type: string
  459. type: object
  460. v1.ZoneItem:
  461. properties:
  462. childs:
  463. items:
  464. $ref: '#/definitions/v1.ZoneItem'
  465. type: array
  466. parent_zone_code:
  467. type: string
  468. zone_code:
  469. type: string
  470. zone_name:
  471. type: string
  472. type: object
  473. v1.ZoneItemSelect:
  474. properties:
  475. childs:
  476. items:
  477. $ref: '#/definitions/v1.ZoneItemSelect'
  478. type: array
  479. parent_zone_code:
  480. type: string
  481. select:
  482. type: boolean
  483. zone_code:
  484. type: string
  485. zone_name:
  486. type: string
  487. type: object
  488. v1.ZoneListReply:
  489. properties:
  490. list:
  491. items:
  492. $ref: '#/definitions/v1.ZoneItem'
  493. type: array
  494. type: object
  495. v1.ZoneListResponse:
  496. properties:
  497. code:
  498. default: 0
  499. description: 返回码
  500. format: int
  501. type: integer
  502. data:
  503. $ref: '#/definitions/v1.ZoneListReply'
  504. type: object
  505. message:
  506. default: success
  507. description: 消息
  508. type: string
  509. type: object
  510. v1.ZoneUpdateBody:
  511. properties:
  512. parent_zone_code:
  513. type: string
  514. zone_code:
  515. type: string
  516. zone_name:
  517. type: string
  518. type: object
  519. v1.ZoneUpdateResponse:
  520. properties:
  521. code:
  522. default: 0
  523. description: 返回码
  524. format: int
  525. type: integer
  526. message:
  527. default: success
  528. description: 消息
  529. type: string
  530. type: object
  531. info:
  532. contact: {}
  533. description: This is a gateway server. On the page, you can go to do testing for every API.
  534. license: {}
  535. title: Project cp-organization-management-gateway's APIs
  536. version: "1.1"
  537. paths:
  538. /api/v1/log/list:
  539. get:
  540. consumes:
  541. - application/json
  542. description: 获取日志列表
  543. parameters:
  544. - description: token
  545. in: header
  546. name: token
  547. required: true
  548. type: string
  549. - description: ' '
  550. in: query
  551. name: page
  552. type: integer
  553. - description: ' '
  554. in: query
  555. name: page_size
  556. type: integer
  557. produces:
  558. - application/json
  559. responses:
  560. "200":
  561. description: OK
  562. schema:
  563. $ref: '#/definitions/v1.ManagementLogListResponse'
  564. "500":
  565. description: Internal Server Error
  566. schema:
  567. $ref: '#/definitions/base.HTTPError'
  568. summary: 获取日志列表
  569. tags:
  570. - 操作日志
  571. /api/v1/system/rbac/group:
  572. post:
  573. consumes:
  574. - application/json
  575. description: 添加角色
  576. parameters:
  577. - description: token
  578. in: header
  579. name: token
  580. required: true
  581. type: string
  582. - description: token
  583. in: body
  584. name: body
  585. required: true
  586. schema:
  587. $ref: '#/definitions/v1.RbacGroupAddBody'
  588. produces:
  589. - application/json
  590. responses:
  591. "200":
  592. description: OK
  593. schema:
  594. $ref: '#/definitions/v1.RbacGroupAddResponse'
  595. "500":
  596. description: Internal Server Error
  597. schema:
  598. $ref: '#/definitions/base.HTTPError'
  599. summary: 添加角色
  600. tags:
  601. - 系统管理-角色管理
  602. put:
  603. consumes:
  604. - application/json
  605. description: 修改角色
  606. parameters:
  607. - description: token
  608. in: header
  609. name: token
  610. required: true
  611. type: string
  612. - description: token
  613. in: body
  614. name: body
  615. required: true
  616. schema:
  617. $ref: '#/definitions/v1.RbacGroupUpdateBody'
  618. produces:
  619. - application/json
  620. responses:
  621. "200":
  622. description: OK
  623. schema:
  624. $ref: '#/definitions/v1.RbacGroupUpdateResponse'
  625. "500":
  626. description: Internal Server Error
  627. schema:
  628. $ref: '#/definitions/base.HTTPError'
  629. summary: 修改角色
  630. tags:
  631. - 系统管理-角色管理
  632. /api/v1/system/rbac/group/{id}:
  633. delete:
  634. consumes:
  635. - application/json
  636. description: 删除角色
  637. parameters:
  638. - description: token
  639. in: header
  640. name: token
  641. required: true
  642. type: string
  643. - description: token
  644. in: path
  645. name: id
  646. required: true
  647. type: integer
  648. produces:
  649. - application/json
  650. responses:
  651. "200":
  652. description: OK
  653. schema:
  654. $ref: '#/definitions/v1.RbacGroupDelResponse'
  655. "500":
  656. description: Internal Server Error
  657. schema:
  658. $ref: '#/definitions/base.HTTPError'
  659. summary: 删除角色
  660. tags:
  661. - 系统管理-角色管理
  662. /api/v1/system/rbac/group/list:
  663. get:
  664. consumes:
  665. - application/json
  666. description: 角色列表
  667. parameters:
  668. - description: token
  669. in: header
  670. name: token
  671. required: true
  672. type: string
  673. produces:
  674. - application/json
  675. responses:
  676. "200":
  677. description: OK
  678. schema:
  679. $ref: '#/definitions/v1.RbacGroupListResponse'
  680. "500":
  681. description: Internal Server Error
  682. schema:
  683. $ref: '#/definitions/base.HTTPError'
  684. summary: 角色列表
  685. tags:
  686. - 系统管理-角色管理
  687. /api/v1/system/rbac/node/list:
  688. get:
  689. consumes:
  690. - application/json
  691. description: 权限节点列表
  692. parameters:
  693. - description: token
  694. in: header
  695. name: token
  696. required: true
  697. type: string
  698. - description: 不填返回所有,填了返回该角色下的权限
  699. in: query
  700. name: group_id
  701. type: integer
  702. - description: 填了groupid后,true:仅返回角色下的节点, false:返回所有节点,对属于该角色的节点作标记
  703. in: query
  704. name: only_select
  705. type: boolean
  706. produces:
  707. - application/json
  708. responses:
  709. "200":
  710. description: OK
  711. schema:
  712. $ref: '#/definitions/v1.RbacNodeListResponse'
  713. "500":
  714. description: Internal Server Error
  715. schema:
  716. $ref: '#/definitions/base.HTTPError'
  717. summary: 权限节点列表
  718. tags:
  719. - 系统管理-角色管理
  720. /api/v1/system/user:
  721. post:
  722. consumes:
  723. - application/json
  724. description: 创建用户
  725. parameters:
  726. - description: token
  727. in: header
  728. name: token
  729. required: true
  730. type: string
  731. - description: ' '
  732. in: body
  733. name: body
  734. required: true
  735. schema:
  736. $ref: '#/definitions/v1.UserCreateBody'
  737. produces:
  738. - application/json
  739. responses:
  740. "200":
  741. description: OK
  742. schema:
  743. $ref: '#/definitions/v1.UserCreateResponse'
  744. "500":
  745. description: Internal Server Error
  746. schema:
  747. $ref: '#/definitions/base.HTTPError'
  748. summary: 创建用户
  749. tags:
  750. - 系统管理-用户管理
  751. put:
  752. consumes:
  753. - application/json
  754. description: 修改用户
  755. parameters:
  756. - description: token
  757. in: header
  758. name: token
  759. required: true
  760. type: string
  761. - description: ' '
  762. in: body
  763. name: body
  764. required: true
  765. schema:
  766. $ref: '#/definitions/v1.UserUpdateBody'
  767. produces:
  768. - application/json
  769. responses:
  770. "200":
  771. description: OK
  772. schema:
  773. $ref: '#/definitions/v1.UserUpdateResponse'
  774. "500":
  775. description: Internal Server Error
  776. schema:
  777. $ref: '#/definitions/base.HTTPError'
  778. summary: 修改用户
  779. tags:
  780. - 系统管理-用户管理
  781. /api/v1/system/user/{id}:
  782. delete:
  783. consumes:
  784. - application/json
  785. description: 删除用户
  786. parameters:
  787. - description: token
  788. in: header
  789. name: token
  790. required: true
  791. type: string
  792. - description: ' '
  793. in: path
  794. name: id
  795. required: true
  796. type: integer
  797. produces:
  798. - application/json
  799. responses:
  800. "200":
  801. description: OK
  802. schema:
  803. $ref: '#/definitions/v1.UserDelResponse'
  804. "500":
  805. description: Internal Server Error
  806. schema:
  807. $ref: '#/definitions/base.HTTPError'
  808. summary: 删除用户
  809. tags:
  810. - 系统管理-用户管理
  811. /api/v1/system/user/info/{id}:
  812. get:
  813. consumes:
  814. - application/json
  815. description: 用户详情
  816. parameters:
  817. - description: token
  818. in: header
  819. name: token
  820. required: true
  821. type: string
  822. - description: ' '
  823. in: path
  824. name: id
  825. required: true
  826. type: integer
  827. produces:
  828. - application/json
  829. responses:
  830. "200":
  831. description: OK
  832. schema:
  833. $ref: '#/definitions/v1.UserInfoResponse'
  834. "500":
  835. description: Internal Server Error
  836. schema:
  837. $ref: '#/definitions/base.HTTPError'
  838. summary: 用户详情
  839. tags:
  840. - 系统管理-用户管理
  841. /api/v1/system/user/list:
  842. get:
  843. consumes:
  844. - application/json
  845. description: 用户列表
  846. parameters:
  847. - description: token
  848. in: header
  849. name: token
  850. required: true
  851. type: string
  852. - description: ' '
  853. in: query
  854. name: page
  855. type: integer
  856. - description: ' '
  857. in: query
  858. name: page_size
  859. type: integer
  860. - description: '姓名或账户名 '
  861. in: query
  862. name: name
  863. type: string
  864. - description: '区域 '
  865. in: query
  866. name: zone
  867. type: string
  868. produces:
  869. - application/json
  870. responses:
  871. "200":
  872. description: OK
  873. schema:
  874. $ref: '#/definitions/v1.UserListResponse'
  875. "500":
  876. description: Internal Server Error
  877. schema:
  878. $ref: '#/definitions/base.HTTPError'
  879. summary: 用户列表
  880. tags:
  881. - 系统管理-用户管理
  882. /api/v1/token_refresh:
  883. put:
  884. consumes:
  885. - application/json
  886. description: 刷新token
  887. parameters:
  888. - description: token
  889. in: header
  890. name: token
  891. required: true
  892. type: string
  893. produces:
  894. - application/json
  895. responses:
  896. "200":
  897. description: OK
  898. schema:
  899. $ref: '#/definitions/v1.TokenResponse'
  900. "500":
  901. description: Internal Server Error
  902. schema:
  903. $ref: '#/definitions/base.HTTPError'
  904. summary: 刷新token
  905. tags:
  906. - 用户
  907. /api/v1/user/login:
  908. post:
  909. consumes:
  910. - application/json
  911. description: 登录
  912. parameters:
  913. - description: 登录信息
  914. in: body
  915. name: body
  916. required: true
  917. schema:
  918. $ref: '#/definitions/v1.LoginBody'
  919. produces:
  920. - application/json
  921. responses:
  922. "200":
  923. description: OK
  924. schema:
  925. $ref: '#/definitions/v1.LoginResponse'
  926. "500":
  927. description: Internal Server Error
  928. schema:
  929. $ref: '#/definitions/base.HTTPError'
  930. summary: 登录
  931. tags:
  932. - 用户
  933. /api/v1/zone:
  934. post:
  935. consumes:
  936. - application/json
  937. description: 添加区域
  938. parameters:
  939. - description: token
  940. in: header
  941. name: token
  942. required: true
  943. type: string
  944. - description: ' '
  945. in: body
  946. name: body
  947. required: true
  948. schema:
  949. $ref: '#/definitions/v1.ZoneAddBody'
  950. produces:
  951. - application/json
  952. responses:
  953. "200":
  954. description: OK
  955. schema:
  956. $ref: '#/definitions/v1.ZoneAddResponse'
  957. "500":
  958. description: Internal Server Error
  959. schema:
  960. $ref: '#/definitions/base.HTTPError'
  961. summary: 添加区域
  962. tags:
  963. - 区域
  964. put:
  965. consumes:
  966. - application/json
  967. description: 修改区域
  968. parameters:
  969. - description: token
  970. in: header
  971. name: token
  972. required: true
  973. type: string
  974. - description: ' '
  975. in: body
  976. name: body
  977. required: true
  978. schema:
  979. $ref: '#/definitions/v1.ZoneUpdateBody'
  980. produces:
  981. - application/json
  982. responses:
  983. "200":
  984. description: OK
  985. schema:
  986. $ref: '#/definitions/v1.ZoneUpdateResponse'
  987. "500":
  988. description: Internal Server Error
  989. schema:
  990. $ref: '#/definitions/base.HTTPError'
  991. summary: 修改区域
  992. tags:
  993. - 区域
  994. /api/v1/zone/{zone_code}:
  995. delete:
  996. consumes:
  997. - application/json
  998. description: 删除区域
  999. parameters:
  1000. - description: token
  1001. in: header
  1002. name: token
  1003. required: true
  1004. type: string
  1005. - description: ' '
  1006. in: path
  1007. name: zone_code
  1008. required: true
  1009. type: string
  1010. produces:
  1011. - application/json
  1012. responses:
  1013. "200":
  1014. description: OK
  1015. schema:
  1016. $ref: '#/definitions/v1.ZoneDelResponse'
  1017. "500":
  1018. description: Internal Server Error
  1019. schema:
  1020. $ref: '#/definitions/base.HTTPError'
  1021. summary: 删除区域
  1022. tags:
  1023. - 区域
  1024. /api/v1/zone/list:
  1025. get:
  1026. consumes:
  1027. - application/json
  1028. description: 区域列表
  1029. parameters:
  1030. - description: token
  1031. in: header
  1032. name: token
  1033. required: true
  1034. type: string
  1035. produces:
  1036. - application/json
  1037. responses:
  1038. "200":
  1039. description: OK
  1040. schema:
  1041. $ref: '#/definitions/v1.ZoneListResponse'
  1042. "500":
  1043. description: Internal Server Error
  1044. schema:
  1045. $ref: '#/definitions/base.HTTPError'
  1046. summary: 区域列表
  1047. tags:
  1048. - 区域
  1049. swagger: "2.0"