swagger.json 7.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259
  1. {
  2. "swagger": "2.0",
  3. "info": {
  4. "description": "gfast 在线API文档",
  5. "title": "gfast API文档",
  6. "contact": {},
  7. "license": {},
  8. "version": "1.0"
  9. },
  10. "host": "localhost",
  11. "basePath": "/system",
  12. "paths": {
  13. "/system/dept/addDept": {
  14. "post": {
  15. "security": [
  16. {
  17. "Bearer": []
  18. }
  19. ],
  20. "description": "获取JSON",
  21. "consumes": [
  22. "application/json"
  23. ],
  24. "tags": [
  25. "部门"
  26. ],
  27. "summary": "添加部门",
  28. "parameters": [
  29. {
  30. "description": "data",
  31. "name": "data",
  32. "in": "body",
  33. "required": true,
  34. "schema": {
  35. "$ref": "#/definitions/sys_dept.AddParams"
  36. }
  37. }
  38. ],
  39. "responses": {
  40. "200": {
  41. "description": "{\"code\": 0, \"message\": \"添加成功\"}",
  42. "schema": {
  43. "$ref": "#/definitions/response.Response"
  44. }
  45. }
  46. }
  47. }
  48. },
  49. "/system/dept/delDept/{id}": {
  50. "delete": {
  51. "description": "删除数据",
  52. "tags": [
  53. "部门"
  54. ],
  55. "summary": "删除部门",
  56. "parameters": [
  57. {
  58. "type": "integer",
  59. "description": "id",
  60. "name": "id",
  61. "in": "path",
  62. "required": true
  63. }
  64. ],
  65. "responses": {
  66. "200": {
  67. "description": "{\"code\": 0, \"message\": \"删除成功\"}",
  68. "schema": {
  69. "$ref": "#/definitions/response.Response"
  70. }
  71. }
  72. }
  73. }
  74. },
  75. "/system/dept/editDept": {
  76. "post": {
  77. "security": [
  78. {
  79. "Bearer": []
  80. }
  81. ],
  82. "description": "获取JSON",
  83. "consumes": [
  84. "application/json"
  85. ],
  86. "tags": [
  87. "部门"
  88. ],
  89. "summary": "修改部门",
  90. "parameters": [
  91. {
  92. "description": "data",
  93. "name": "data",
  94. "in": "body",
  95. "required": true,
  96. "schema": {
  97. "$ref": "#/definitions/sys_dept.EditParams"
  98. }
  99. }
  100. ],
  101. "responses": {
  102. "200": {
  103. "description": "{\"code\": 0, \"message\": \"修改成功\"}",
  104. "schema": {
  105. "$ref": "#/definitions/response.Response"
  106. }
  107. }
  108. }
  109. }
  110. },
  111. "/system/dept/list": {
  112. "get": {
  113. "security": [
  114. {
  115. "": []
  116. }
  117. ],
  118. "description": "分页列表",
  119. "tags": [
  120. "部门"
  121. ],
  122. "summary": "分页部门列表数据",
  123. "parameters": [
  124. {
  125. "type": "string",
  126. "description": "deptName",
  127. "name": "deptName",
  128. "in": "query"
  129. },
  130. {
  131. "type": "string",
  132. "description": "status",
  133. "name": "status",
  134. "in": "query"
  135. }
  136. ],
  137. "responses": {
  138. "0": {
  139. "description": "{\"code\": 200, \"data\": [...]}",
  140. "schema": {
  141. "$ref": "#/definitions/response.Response"
  142. }
  143. }
  144. }
  145. }
  146. }
  147. },
  148. "definitions": {
  149. "response.Response": {
  150. "type": "object",
  151. "properties": {
  152. "code": {
  153. "description": "代码",
  154. "type": "integer",
  155. "example": 200
  156. },
  157. "data": {
  158. "description": "数据集",
  159. "type": "object"
  160. },
  161. "msg": {
  162. "description": "消息",
  163. "type": "string"
  164. }
  165. }
  166. },
  167. "sys_dept.AddParams": {
  168. "type": "object",
  169. "properties": {
  170. "ancestors": {
  171. "type": "string"
  172. },
  173. "createBy": {
  174. "type": "string"
  175. },
  176. "createTime": {
  177. "type": "string"
  178. },
  179. "delFlag": {
  180. "type": "string"
  181. },
  182. "deptName": {
  183. "type": "string"
  184. },
  185. "email": {
  186. "type": "string"
  187. },
  188. "leader": {
  189. "type": "string"
  190. },
  191. "orderNum": {
  192. "type": "integer"
  193. },
  194. "parentId": {
  195. "type": "integer"
  196. },
  197. "phone": {
  198. "type": "string"
  199. },
  200. "status": {
  201. "type": "string"
  202. },
  203. "updateBy": {
  204. "type": "string"
  205. },
  206. "updateTime": {
  207. "type": "string"
  208. }
  209. }
  210. },
  211. "sys_dept.EditParams": {
  212. "type": "object",
  213. "properties": {
  214. "ancestors": {
  215. "type": "string"
  216. },
  217. "createBy": {
  218. "type": "string"
  219. },
  220. "createTime": {
  221. "type": "string"
  222. },
  223. "delFlag": {
  224. "type": "string"
  225. },
  226. "deptId": {
  227. "type": "integer"
  228. },
  229. "deptName": {
  230. "type": "string"
  231. },
  232. "email": {
  233. "type": "string"
  234. },
  235. "leader": {
  236. "type": "string"
  237. },
  238. "orderNum": {
  239. "type": "integer"
  240. },
  241. "parentId": {
  242. "type": "integer"
  243. },
  244. "phone": {
  245. "type": "string"
  246. },
  247. "status": {
  248. "type": "string"
  249. },
  250. "updateBy": {
  251. "type": "string"
  252. },
  253. "updateTime": {
  254. "type": "string"
  255. }
  256. }
  257. }
  258. }
  259. }