swagger.yaml 3.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167
  1. basePath: /system
  2. definitions:
  3. response.Response:
  4. properties:
  5. code:
  6. description: 代码
  7. example: 200
  8. type: integer
  9. data:
  10. description: 数据集
  11. type: object
  12. msg:
  13. description: 消息
  14. type: string
  15. type: object
  16. sys_dept.AddParams:
  17. properties:
  18. ancestors:
  19. type: string
  20. createBy:
  21. type: string
  22. createTime:
  23. type: string
  24. delFlag:
  25. type: string
  26. deptName:
  27. type: string
  28. email:
  29. type: string
  30. leader:
  31. type: string
  32. orderNum:
  33. type: integer
  34. parentId:
  35. type: integer
  36. phone:
  37. type: string
  38. status:
  39. type: string
  40. updateBy:
  41. type: string
  42. updateTime:
  43. type: string
  44. type: object
  45. sys_dept.EditParams:
  46. properties:
  47. ancestors:
  48. type: string
  49. createBy:
  50. type: string
  51. createTime:
  52. type: string
  53. delFlag:
  54. type: string
  55. deptId:
  56. type: integer
  57. deptName:
  58. type: string
  59. email:
  60. type: string
  61. leader:
  62. type: string
  63. orderNum:
  64. type: integer
  65. parentId:
  66. type: integer
  67. phone:
  68. type: string
  69. status:
  70. type: string
  71. updateBy:
  72. type: string
  73. updateTime:
  74. type: string
  75. type: object
  76. host: localhost
  77. info:
  78. contact: {}
  79. description: gfast 在线API文档
  80. license: {}
  81. title: gfast API文档
  82. version: "1.0"
  83. paths:
  84. /system/dept/addDept:
  85. post:
  86. consumes:
  87. - application/json
  88. description: 获取JSON
  89. parameters:
  90. - description: data
  91. in: body
  92. name: data
  93. required: true
  94. schema:
  95. $ref: '#/definitions/sys_dept.AddParams'
  96. responses:
  97. "200":
  98. description: '{"code": 0, "message": "添加成功"}'
  99. schema:
  100. $ref: '#/definitions/response.Response'
  101. security:
  102. - Bearer: []
  103. summary: 添加部门
  104. tags:
  105. - 部门
  106. /system/dept/delDept/{id}:
  107. delete:
  108. description: 删除数据
  109. parameters:
  110. - description: id
  111. in: path
  112. name: id
  113. required: true
  114. type: integer
  115. responses:
  116. "200":
  117. description: '{"code": 0, "message": "删除成功"}'
  118. schema:
  119. $ref: '#/definitions/response.Response'
  120. summary: 删除部门
  121. tags:
  122. - 部门
  123. /system/dept/editDept:
  124. post:
  125. consumes:
  126. - application/json
  127. description: 获取JSON
  128. parameters:
  129. - description: data
  130. in: body
  131. name: data
  132. required: true
  133. schema:
  134. $ref: '#/definitions/sys_dept.EditParams'
  135. responses:
  136. "200":
  137. description: '{"code": 0, "message": "修改成功"}'
  138. schema:
  139. $ref: '#/definitions/response.Response'
  140. security:
  141. - Bearer: []
  142. summary: 修改部门
  143. tags:
  144. - 部门
  145. /system/dept/list:
  146. get:
  147. description: 分页列表
  148. parameters:
  149. - description: deptName
  150. in: query
  151. name: deptName
  152. type: string
  153. - description: status
  154. in: query
  155. name: status
  156. type: string
  157. responses:
  158. "0":
  159. description: '{"code": 200, "data": [...]}'
  160. schema:
  161. $ref: '#/definitions/response.Response'
  162. security:
  163. - "": []
  164. summary: 分页部门列表数据
  165. tags:
  166. - 部门
  167. swagger: "2.0"