swagger.yml 8.1KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374
  1. swagger: "2.0"
  2. info:
  3. title: sws xcx api doc
  4. description: |
  5. 圣卫士小程序API接口文档
  6. version: 1.0.0
  7. license:
  8. name: 领透科技
  9. basePath: /xcx
  10. paths:
  11. /api/sysdic/getillness:
  12. get:
  13. tags:
  14. - api/sysdic
  15. description: |-
  16. 获取病情字典
  17. <br>
  18. operationId: SysDicApiController.GetIllness
  19. responses:
  20. "200":
  21. description: DicResp success
  22. schema:
  23. $ref: '#/definitions/models.type'
  24. "500":
  25. description: error
  26. /api/sysdic/getrenalstatus:
  27. get:
  28. tags:
  29. - api/sysdic
  30. description: |-
  31. 获取肾功能情况列表
  32. <br>
  33. operationId: SysDicApiController.GetRenalStatus
  34. responses:
  35. "200":
  36. description: DicResp success
  37. schema:
  38. $ref: '#/definitions/models.type'
  39. "500":
  40. description: error
  41. /api/user/gethealthprofile:
  42. get:
  43. tags:
  44. - api/user
  45. description: |-
  46. 获取健康档案
  47. <br>
  48. operationId: UserApiController.GetHealthProfile
  49. responses:
  50. "200":
  51. description: success
  52. schema:
  53. $ref: '#/definitions/models.HealthProfileResp'
  54. "500":
  55. description: error
  56. /api/user/getuserinfo:
  57. get:
  58. tags:
  59. - api/user
  60. description: |-
  61. 获取个人中心信息
  62. <br>
  63. operationId: UserApiController.GetUserInfo
  64. responses:
  65. "200":
  66. description: success
  67. schema:
  68. $ref: '#/definitions/models.UserInfoResp'
  69. "500":
  70. description: error
  71. /api/user/login:
  72. post:
  73. tags:
  74. - api/user
  75. description: |-
  76. 微信小程序登录
  77. <br>
  78. operationId: LoginApiController.WxXcxLogin
  79. parameters:
  80. - in: body
  81. name: body
  82. description: 小程序登录请求参数
  83. required: true
  84. schema:
  85. $ref: '#/definitions/models.WxXcxLoginReq'
  86. responses:
  87. "200":
  88. description: ""
  89. schema:
  90. $ref: '#/definitions/models.WxXcxLoginResp'
  91. "500":
  92. description: error
  93. /api/user/savehealthprofile:
  94. post:
  95. tags:
  96. - api/user
  97. description: |-
  98. 保存健康档案
  99. <br>
  100. operationId: UserApiController.SaveHealthProfile
  101. parameters:
  102. - in: body
  103. name: body
  104. description: 小程序登录请求参数
  105. required: true
  106. schema:
  107. $ref: '#/definitions/models.SaveHealthProfileReq'
  108. responses:
  109. "200":
  110. description: success
  111. "500":
  112. description: error
  113. /api/user/saveuserinfo:
  114. post:
  115. tags:
  116. - api/user
  117. description: |-
  118. 个人中心保存用户信息和透析病友信息
  119. <br>
  120. operationId: UserApiController.SaveUserInfo
  121. parameters:
  122. - in: body
  123. name: body
  124. description: 小程序登录请求参数
  125. required: true
  126. schema:
  127. $ref: '#/definitions/models.SaveUserInfoReq'
  128. responses:
  129. "200":
  130. description: success
  131. "500":
  132. description: error
  133. /api/user/updatephonebycode:
  134. post:
  135. tags:
  136. - api/user
  137. description: |-
  138. 获取小程序绑定的手机号码并更新到用户信息
  139. <br>
  140. operationId: UserApiController.UpdatePhoneByCode
  141. parameters:
  142. - in: body
  143. name: body
  144. description: 小程序登录请求参数
  145. required: true
  146. schema:
  147. $ref: '#/definitions/models.WxXcxLoginReq'
  148. responses:
  149. "200":
  150. description: success
  151. schema:
  152. $ref: '#/definitions/models.XcxUser'
  153. "500":
  154. description: error
  155. definitions:
  156. models.HealthProfileResp:
  157. title: HealthProfileResp
  158. type: object
  159. properties:
  160. birthday:
  161. type: string
  162. format: datetime
  163. blood_type:
  164. type: string
  165. creatine_time:
  166. type: string
  167. format: datetime
  168. creatinine:
  169. type: integer
  170. format: int64
  171. creatinine_unit:
  172. type: string
  173. ctime:
  174. type: string
  175. format: datetime
  176. gender:
  177. type: integer
  178. format: int64
  179. height:
  180. type: integer
  181. format: int64
  182. id:
  183. type: integer
  184. format: int64
  185. illness_state:
  186. type: string
  187. mtime:
  188. type: string
  189. format: datetime
  190. renal_function_status:
  191. type: integer
  192. format: int64
  193. status:
  194. type: integer
  195. format: int64
  196. urine_protein:
  197. type: integer
  198. format: int64
  199. urine_protein_24h:
  200. type: integer
  201. format: int64
  202. urine_protein_24h_time:
  203. type: string
  204. format: datetime
  205. urine_protein_24h_unit:
  206. type: string
  207. urine_protein_time:
  208. type: string
  209. format: datetime
  210. urine_protein_unit:
  211. type: string
  212. weight:
  213. type: integer
  214. format: int64
  215. models.SaveHealthProfileReq:
  216. title: SaveHealthProfileReq
  217. type: object
  218. properties:
  219. birthday:
  220. type: string
  221. format: datetime
  222. blood_type:
  223. type: string
  224. creatine_time:
  225. type: string
  226. format: datetime
  227. creatinine:
  228. type: integer
  229. format: int64
  230. creatinine_unit:
  231. type: string
  232. gender:
  233. type: integer
  234. format: int64
  235. height:
  236. type: integer
  237. format: int64
  238. illness_state:
  239. type: string
  240. renal_function_status:
  241. type: integer
  242. format: int64
  243. urine_protein:
  244. type: integer
  245. format: int64
  246. urine_protein_24h:
  247. type: integer
  248. format: int64
  249. urine_protein_24h_time:
  250. type: string
  251. format: datetime
  252. urine_protein_24h_unit:
  253. type: string
  254. urine_protein_time:
  255. type: string
  256. format: datetime
  257. urine_protein_unit:
  258. type: string
  259. weight:
  260. type: integer
  261. format: int64
  262. models.SaveUserInfoReq:
  263. title: SaveUserInfoReq
  264. type: object
  265. properties:
  266. avatar:
  267. type: string
  268. email:
  269. type: string
  270. id_card:
  271. type: string
  272. inpatient_reg_phone:
  273. type: string
  274. nick_name:
  275. type: string
  276. phone:
  277. type: string
  278. real_name:
  279. type: string
  280. models.UserInfoResp:
  281. title: UserInfoResp
  282. type: object
  283. properties:
  284. avatar:
  285. type: string
  286. ctime:
  287. type: string
  288. format: datetime
  289. email:
  290. type: string
  291. id:
  292. type: integer
  293. format: int64
  294. id_card:
  295. type: string
  296. inpatient_reg_phone:
  297. type: string
  298. mtime:
  299. type: string
  300. format: datetime
  301. nick_name:
  302. type: string
  303. open_id:
  304. type: string
  305. phone:
  306. type: string
  307. privacy_protocol_versions:
  308. type: integer
  309. format: int64
  310. real_name:
  311. type: string
  312. source:
  313. type: string
  314. status:
  315. type: integer
  316. format: int64
  317. union_id:
  318. type: string
  319. models.WxXcxLoginReq:
  320. title: WxXcxLoginReq
  321. type: object
  322. properties:
  323. code:
  324. type: string
  325. models.WxXcxLoginResp:
  326. title: WxXcxLoginResp
  327. type: object
  328. properties:
  329. openid:
  330. type: string
  331. token:
  332. type: string
  333. models.XcxUser:
  334. title: XcxUser
  335. type: object
  336. properties:
  337. avatar:
  338. type: string
  339. ctime:
  340. type: string
  341. format: datetime
  342. email:
  343. type: string
  344. id:
  345. type: integer
  346. format: int64
  347. mtime:
  348. type: string
  349. format: datetime
  350. nick_name:
  351. type: string
  352. open_id:
  353. type: string
  354. phone:
  355. type: string
  356. privacy_protocol_versions:
  357. type: integer
  358. format: int64
  359. role_type:
  360. type: integer
  361. format: int64
  362. session_key:
  363. type: string
  364. source:
  365. type: string
  366. status:
  367. type: integer
  368. format: int64
  369. union_id:
  370. type: string
  371. models.type:
  372. title: type
  373. type: object