swagger.json 16KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523
  1. {
  2. "swagger": "2.0",
  3. "info": {
  4. "title": "sws xcx api doc",
  5. "description": "圣卫士小程序API接口文档\n",
  6. "version": "1.0.0",
  7. "contact": {},
  8. "license": {
  9. "name": "领透科技"
  10. }
  11. },
  12. "basePath": "/xcx",
  13. "paths": {
  14. "/api/sysdic/getillness": {
  15. "get": {
  16. "tags": [
  17. "api/sysdic"
  18. ],
  19. "description": "获取病情字典\n\u003cbr\u003e",
  20. "operationId": "SysDicApiController.GetIllness",
  21. "responses": {
  22. "200": {
  23. "description": "DicResp success",
  24. "schema": {
  25. "$ref": "#/definitions/models.type"
  26. }
  27. },
  28. "500": {
  29. "description": "error"
  30. }
  31. }
  32. }
  33. },
  34. "/api/sysdic/getrenalstatus": {
  35. "get": {
  36. "tags": [
  37. "api/sysdic"
  38. ],
  39. "description": "获取肾功能情况列表\n\u003cbr\u003e",
  40. "operationId": "SysDicApiController.GetRenalStatus",
  41. "responses": {
  42. "200": {
  43. "description": "DicResp success",
  44. "schema": {
  45. "$ref": "#/definitions/models.type"
  46. }
  47. },
  48. "500": {
  49. "description": "error"
  50. }
  51. }
  52. }
  53. },
  54. "/api/user/gethealthprofile": {
  55. "get": {
  56. "tags": [
  57. "api/user"
  58. ],
  59. "description": "获取健康档案\n\u003cbr\u003e",
  60. "operationId": "UserApiController.GetHealthProfile",
  61. "responses": {
  62. "200": {
  63. "description": "success",
  64. "schema": {
  65. "$ref": "#/definitions/models.HealthProfileResp"
  66. }
  67. },
  68. "500": {
  69. "description": "error"
  70. }
  71. }
  72. }
  73. },
  74. "/api/user/getuserinfo": {
  75. "get": {
  76. "tags": [
  77. "api/user"
  78. ],
  79. "description": "获取个人中心信息\n\u003cbr\u003e",
  80. "operationId": "UserApiController.GetUserInfo",
  81. "responses": {
  82. "200": {
  83. "description": "success",
  84. "schema": {
  85. "$ref": "#/definitions/models.UserInfoResp"
  86. }
  87. },
  88. "500": {
  89. "description": "error"
  90. }
  91. }
  92. }
  93. },
  94. "/api/user/login": {
  95. "post": {
  96. "tags": [
  97. "api/user"
  98. ],
  99. "description": "微信小程序登录\n\u003cbr\u003e",
  100. "operationId": "LoginApiController.WxXcxLogin",
  101. "parameters": [
  102. {
  103. "in": "body",
  104. "name": "body",
  105. "description": "小程序登录请求参数",
  106. "required": true,
  107. "schema": {
  108. "$ref": "#/definitions/models.WxXcxLoginReq"
  109. }
  110. }
  111. ],
  112. "responses": {
  113. "200": {
  114. "description": "",
  115. "schema": {
  116. "$ref": "#/definitions/models.WxXcxLoginResp"
  117. }
  118. },
  119. "500": {
  120. "description": "error"
  121. }
  122. }
  123. }
  124. },
  125. "/api/user/savehealthprofile": {
  126. "post": {
  127. "tags": [
  128. "api/user"
  129. ],
  130. "description": "保存健康档案\n\u003cbr\u003e",
  131. "operationId": "UserApiController.SaveHealthProfile",
  132. "parameters": [
  133. {
  134. "in": "body",
  135. "name": "body",
  136. "description": "小程序登录请求参数",
  137. "required": true,
  138. "schema": {
  139. "$ref": "#/definitions/models.SaveHealthProfileReq"
  140. }
  141. }
  142. ],
  143. "responses": {
  144. "200": {
  145. "description": "success"
  146. },
  147. "500": {
  148. "description": "error"
  149. }
  150. }
  151. }
  152. },
  153. "/api/user/saveuserinfo": {
  154. "post": {
  155. "tags": [
  156. "api/user"
  157. ],
  158. "description": "个人中心保存用户信息和透析病友信息\n\u003cbr\u003e",
  159. "operationId": "UserApiController.SaveUserInfo",
  160. "parameters": [
  161. {
  162. "in": "body",
  163. "name": "body",
  164. "description": "小程序登录请求参数",
  165. "required": true,
  166. "schema": {
  167. "$ref": "#/definitions/models.SaveUserInfoReq"
  168. }
  169. }
  170. ],
  171. "responses": {
  172. "200": {
  173. "description": "success"
  174. },
  175. "500": {
  176. "description": "error"
  177. }
  178. }
  179. }
  180. },
  181. "/api/user/updatephonebycode": {
  182. "post": {
  183. "tags": [
  184. "api/user"
  185. ],
  186. "description": "获取小程序绑定的手机号码并更新到用户信息\n\u003cbr\u003e",
  187. "operationId": "UserApiController.UpdatePhoneByCode",
  188. "parameters": [
  189. {
  190. "in": "body",
  191. "name": "body",
  192. "description": "小程序登录请求参数",
  193. "required": true,
  194. "schema": {
  195. "$ref": "#/definitions/models.WxXcxLoginReq"
  196. }
  197. }
  198. ],
  199. "responses": {
  200. "200": {
  201. "description": "success",
  202. "schema": {
  203. "$ref": "#/definitions/models.XcxUser"
  204. }
  205. },
  206. "500": {
  207. "description": "error"
  208. }
  209. }
  210. }
  211. }
  212. },
  213. "definitions": {
  214. "models.HealthProfileResp": {
  215. "title": "HealthProfileResp",
  216. "type": "object",
  217. "properties": {
  218. "birthday": {
  219. "type": "string",
  220. "format": "datetime"
  221. },
  222. "blood_type": {
  223. "type": "string"
  224. },
  225. "creatine_time": {
  226. "type": "string",
  227. "format": "datetime"
  228. },
  229. "creatinine": {
  230. "type": "integer",
  231. "format": "int64"
  232. },
  233. "creatinine_unit": {
  234. "type": "string"
  235. },
  236. "ctime": {
  237. "type": "string",
  238. "format": "datetime"
  239. },
  240. "gender": {
  241. "type": "integer",
  242. "format": "int64"
  243. },
  244. "height": {
  245. "type": "integer",
  246. "format": "int64"
  247. },
  248. "id": {
  249. "type": "integer",
  250. "format": "int64"
  251. },
  252. "illness_state": {
  253. "type": "string"
  254. },
  255. "mtime": {
  256. "type": "string",
  257. "format": "datetime"
  258. },
  259. "renal_function_status": {
  260. "type": "integer",
  261. "format": "int64"
  262. },
  263. "status": {
  264. "type": "integer",
  265. "format": "int64"
  266. },
  267. "urine_protein": {
  268. "type": "integer",
  269. "format": "int64"
  270. },
  271. "urine_protein_24h": {
  272. "type": "integer",
  273. "format": "int64"
  274. },
  275. "urine_protein_24h_time": {
  276. "type": "string",
  277. "format": "datetime"
  278. },
  279. "urine_protein_24h_unit": {
  280. "type": "string"
  281. },
  282. "urine_protein_time": {
  283. "type": "string",
  284. "format": "datetime"
  285. },
  286. "urine_protein_unit": {
  287. "type": "string"
  288. },
  289. "weight": {
  290. "type": "integer",
  291. "format": "int64"
  292. }
  293. }
  294. },
  295. "models.SaveHealthProfileReq": {
  296. "title": "SaveHealthProfileReq",
  297. "type": "object",
  298. "properties": {
  299. "birthday": {
  300. "type": "string",
  301. "format": "datetime"
  302. },
  303. "blood_type": {
  304. "type": "string"
  305. },
  306. "creatine_time": {
  307. "type": "string",
  308. "format": "datetime"
  309. },
  310. "creatinine": {
  311. "type": "integer",
  312. "format": "int64"
  313. },
  314. "creatinine_unit": {
  315. "type": "string"
  316. },
  317. "gender": {
  318. "type": "integer",
  319. "format": "int64"
  320. },
  321. "height": {
  322. "type": "integer",
  323. "format": "int64"
  324. },
  325. "illness_state": {
  326. "type": "string"
  327. },
  328. "renal_function_status": {
  329. "type": "integer",
  330. "format": "int64"
  331. },
  332. "urine_protein": {
  333. "type": "integer",
  334. "format": "int64"
  335. },
  336. "urine_protein_24h": {
  337. "type": "integer",
  338. "format": "int64"
  339. },
  340. "urine_protein_24h_time": {
  341. "type": "string",
  342. "format": "datetime"
  343. },
  344. "urine_protein_24h_unit": {
  345. "type": "string"
  346. },
  347. "urine_protein_time": {
  348. "type": "string",
  349. "format": "datetime"
  350. },
  351. "urine_protein_unit": {
  352. "type": "string"
  353. },
  354. "weight": {
  355. "type": "integer",
  356. "format": "int64"
  357. }
  358. }
  359. },
  360. "models.SaveUserInfoReq": {
  361. "title": "SaveUserInfoReq",
  362. "type": "object",
  363. "properties": {
  364. "avatar": {
  365. "type": "string"
  366. },
  367. "email": {
  368. "type": "string"
  369. },
  370. "id_card": {
  371. "type": "string"
  372. },
  373. "inpatient_reg_phone": {
  374. "type": "string"
  375. },
  376. "nick_name": {
  377. "type": "string"
  378. },
  379. "phone": {
  380. "type": "string"
  381. },
  382. "real_name": {
  383. "type": "string"
  384. }
  385. }
  386. },
  387. "models.UserInfoResp": {
  388. "title": "UserInfoResp",
  389. "type": "object",
  390. "properties": {
  391. "avatar": {
  392. "type": "string"
  393. },
  394. "ctime": {
  395. "type": "string",
  396. "format": "datetime"
  397. },
  398. "email": {
  399. "type": "string"
  400. },
  401. "id": {
  402. "type": "integer",
  403. "format": "int64"
  404. },
  405. "id_card": {
  406. "type": "string"
  407. },
  408. "inpatient_reg_phone": {
  409. "type": "string"
  410. },
  411. "mtime": {
  412. "type": "string",
  413. "format": "datetime"
  414. },
  415. "nick_name": {
  416. "type": "string"
  417. },
  418. "open_id": {
  419. "type": "string"
  420. },
  421. "phone": {
  422. "type": "string"
  423. },
  424. "privacy_protocol_versions": {
  425. "type": "integer",
  426. "format": "int64"
  427. },
  428. "real_name": {
  429. "type": "string"
  430. },
  431. "source": {
  432. "type": "string"
  433. },
  434. "status": {
  435. "type": "integer",
  436. "format": "int64"
  437. },
  438. "union_id": {
  439. "type": "string"
  440. }
  441. }
  442. },
  443. "models.WxXcxLoginReq": {
  444. "title": "WxXcxLoginReq",
  445. "type": "object",
  446. "properties": {
  447. "code": {
  448. "type": "string"
  449. }
  450. }
  451. },
  452. "models.WxXcxLoginResp": {
  453. "title": "WxXcxLoginResp",
  454. "type": "object",
  455. "properties": {
  456. "openid": {
  457. "type": "string"
  458. },
  459. "token": {
  460. "type": "string"
  461. }
  462. }
  463. },
  464. "models.XcxUser": {
  465. "title": "XcxUser",
  466. "type": "object",
  467. "properties": {
  468. "avatar": {
  469. "type": "string"
  470. },
  471. "ctime": {
  472. "type": "string",
  473. "format": "datetime"
  474. },
  475. "email": {
  476. "type": "string"
  477. },
  478. "id": {
  479. "type": "integer",
  480. "format": "int64"
  481. },
  482. "mtime": {
  483. "type": "string",
  484. "format": "datetime"
  485. },
  486. "nick_name": {
  487. "type": "string"
  488. },
  489. "open_id": {
  490. "type": "string"
  491. },
  492. "phone": {
  493. "type": "string"
  494. },
  495. "privacy_protocol_versions": {
  496. "type": "integer",
  497. "format": "int64"
  498. },
  499. "role_type": {
  500. "type": "integer",
  501. "format": "int64"
  502. },
  503. "session_key": {
  504. "type": "string"
  505. },
  506. "source": {
  507. "type": "string"
  508. },
  509. "status": {
  510. "type": "integer",
  511. "format": "int64"
  512. },
  513. "union_id": {
  514. "type": "string"
  515. }
  516. }
  517. },
  518. "models.type": {
  519. "title": "type",
  520. "type": "object"
  521. }
  522. }
  523. }