智慧水务管理系统 - 精河县供水工程综合管理平台

openapi.yaml 4.6KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186
  1. openapi: 3.0.1
  2. info:
  3. title: 智慧水务管理系统 API
  4. description: 智慧水务管理系统 API 文档,包含收费管理、生产管理、DMA管理等模块的 API 接口。
  5. version: 1.0.0
  6. contact:
  7. name: 开发团队
  8. email: dev@water-management.com
  9. servers:
  10. - url: http://localhost:8081/api/revenue
  11. description: 收费管理服务
  12. - url: http://localhost:8082/api/production
  13. description: 生产管理服务
  14. - url: http://localhost:8083/api/data
  15. description: 数据引擎服务
  16. - url: http://localhost:8084/api/dma
  17. description: DMA管理服务
  18. - url: http://localhost:8085/api/mobile
  19. description: 移动应用服务
  20. paths:
  21. /revenue/users:
  22. get:
  23. tags:
  24. - 收费管理
  25. summary: 获取用户列表
  26. description: 获取所有用户的列表信息
  27. operationId: getUsers
  28. responses:
  29. '200':
  30. description: 成功获取用户列表
  31. content:
  32. application/json:
  33. schema:
  34. type: object
  35. properties:
  36. code:
  37. type: integer
  38. example: 200
  39. message:
  40. type: string
  41. example: success
  42. data:
  43. type: array
  44. items:
  45. $ref: '#/components/schemas/User'
  46. /revenue/bills:
  47. get:
  48. tags:
  49. - 收费管理
  50. summary: 获取账单列表
  51. description: 获取用户的账单列表
  52. operationId: getBills
  53. parameters:
  54. - name: userId
  55. in: query
  56. description: 用户ID
  57. required: false
  58. schema:
  59. type: integer
  60. responses:
  61. '200':
  62. description: 成功获取账单列表
  63. content:
  64. application/json:
  65. schema:
  66. type: object
  67. properties:
  68. code:
  69. type: integer
  70. example: 200
  71. message:
  72. type: string
  73. example: success
  74. data:
  75. type: array
  76. items:
  77. $ref: '#/components/schemas/Bill'
  78. components:
  79. schemas:
  80. User:
  81. type: object
  82. properties:
  83. userId:
  84. type: integer
  85. example: 1
  86. username:
  87. type: string
  88. example: user001
  89. realName:
  90. type: string
  91. example: 张三
  92. email:
  93. type: string
  94. example: user@example.com
  95. phone:
  96. type: string
  97. example: 13800138000
  98. userType:
  99. type: string
  100. enum: [PERSONAL, ENTERPRISE]
  101. example: PERSONAL
  102. status:
  103. type: string
  104. enum: [ACTIVE, INACTIVE]
  105. example: ACTIVE
  106. createdAt:
  107. type: string
  108. format: date-time
  109. example: "2024-01-01T00:00:00Z"
  110. Bill:
  111. type: object
  112. properties:
  113. billId:
  114. type: integer
  115. example: 1
  116. billNumber:
  117. type: string
  118. example: BILL20240101001
  119. billType:
  120. type: string
  121. enum: [WATER, SEWER, FEE]
  122. example: WATER
  123. billingPeriod:
  124. type: string
  125. format: date
  126. example: "2024-01-01"
  127. previousReading:
  128. type: number
  129. example: 100.0
  130. currentReading:
  131. type: number
  132. example: 150.0
  133. usageAmount:
  134. type: number
  135. example: 50.0
  136. unitPrice:
  137. type: number
  138. example: 3.5
  139. totalAmount:
  140. type: number
  141. example: 175.0
  142. dueDate:
  143. type: string
  144. format: date
  145. example: "2024-01-15"
  146. paymentStatus:
  147. type: string
  148. enum: [UNPAID, PARTIAL, PAID, OVERDUE]
  149. example: UNPAID
  150. createdAt:
  151. type: string
  152. format: date-time
  153. example: "2024-01-01T00:00:00Z"
  154. Result:
  155. type: object
  156. properties:
  157. code:
  158. type: integer
  159. example: 200
  160. message:
  161. type: string
  162. example: success
  163. data:
  164. type: object
  165. timestamp:
  166. type: string
  167. format: date-time
  168. example: "2024-01-01T00:00:00Z"
  169. tags:
  170. - name: 收费管理
  171. description: 收费管理相关API
  172. - name: 生产管理
  173. description: 生产管理相关API
  174. - name: DMA管理
  175. description: DMA管理相关API
  176. - name: 数据引擎
  177. description: 数据引擎相关API
  178. - name: 移动应用
  179. description: 移动应用相关API