swagger.json 34KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019
  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/device/binddevice": {
  15. "post": {
  16. "tags": [
  17. "api/device"
  18. ],
  19. "description": "绑定设备\n\u003cbr\u003e",
  20. "operationId": "DeviceApiController.BindDevice",
  21. "parameters": [
  22. {
  23. "in": "query",
  24. "name": "qrcode",
  25. "description": "设备二维码",
  26. "required": true,
  27. "type": "string"
  28. }
  29. ],
  30. "responses": {
  31. "200": {
  32. "description": "success"
  33. },
  34. "500": {
  35. "description": "error"
  36. }
  37. },
  38. "security": [
  39. {
  40. "token": []
  41. }
  42. ]
  43. }
  44. },
  45. "/api/device/getdevicedetail": {
  46. "get": {
  47. "tags": [
  48. "api/device"
  49. ],
  50. "description": "根据设备ID获取设备详细信息\n\u003cbr\u003e",
  51. "operationId": "DeviceApiController.GetDeviceDetail",
  52. "parameters": [
  53. {
  54. "in": "query",
  55. "name": "deviceid",
  56. "description": "设备ID",
  57. "required": true,
  58. "type": "integer",
  59. "format": "int64"
  60. }
  61. ],
  62. "responses": {
  63. "200": {
  64. "description": "success",
  65. "schema": {
  66. "$ref": "#/definitions/models.Device"
  67. }
  68. },
  69. "500": {
  70. "description": "error"
  71. }
  72. },
  73. "security": [
  74. {
  75. "token": []
  76. }
  77. ]
  78. }
  79. },
  80. "/api/device/getmydevices": {
  81. "get": {
  82. "tags": [
  83. "api/device"
  84. ],
  85. "description": "获取绑定的设备列表\n\u003cbr\u003e",
  86. "operationId": "DeviceApiController.GetMyDevices",
  87. "responses": {
  88. "200": {
  89. "description": "success",
  90. "schema": {
  91. "type": "array",
  92. "items": {
  93. "$ref": "#/definitions/models.Device"
  94. }
  95. }
  96. },
  97. "500": {
  98. "description": "error"
  99. }
  100. },
  101. "security": [
  102. {
  103. "token": []
  104. }
  105. ]
  106. }
  107. },
  108. "/api/device/unbinddevice": {
  109. "post": {
  110. "tags": [
  111. "api/device"
  112. ],
  113. "description": "解绑设备\n\u003cbr\u003e",
  114. "operationId": "DeviceApiController.UnBindDevice",
  115. "parameters": [
  116. {
  117. "in": "query",
  118. "name": "deviceid",
  119. "description": "设备ID",
  120. "required": true,
  121. "type": "integer",
  122. "format": "int64"
  123. }
  124. ],
  125. "responses": {
  126. "200": {
  127. "description": "success"
  128. },
  129. "500": {
  130. "description": "error"
  131. }
  132. },
  133. "security": [
  134. {
  135. "token": []
  136. }
  137. ]
  138. }
  139. },
  140. "/api/sysdic/getcheckitems": {
  141. "get": {
  142. "tags": [
  143. "api/sysdic"
  144. ],
  145. "description": "获取检测项目列表\n\u003cbr\u003e",
  146. "operationId": "SysDicApiController.GetCheckItems",
  147. "responses": {
  148. "200": {
  149. "description": "success",
  150. "schema": {
  151. "type": "array",
  152. "items": {
  153. "$ref": "#/definitions/models.CheckItem"
  154. }
  155. }
  156. },
  157. "500": {
  158. "description": "error"
  159. }
  160. }
  161. }
  162. },
  163. "/api/sysdic/getdevicetypes": {
  164. "get": {
  165. "tags": [
  166. "api/sysdic"
  167. ],
  168. "description": "获取设备类型列表\n\u003cbr\u003e",
  169. "operationId": "SysDicApiController.GetDeviceTypes",
  170. "responses": {
  171. "200": {
  172. "description": "success",
  173. "schema": {
  174. "type": "array",
  175. "items": {
  176. "$ref": "#/definitions/models.DicResp"
  177. }
  178. }
  179. },
  180. "500": {
  181. "description": "error"
  182. }
  183. }
  184. }
  185. },
  186. "/api/sysdic/getillness": {
  187. "get": {
  188. "tags": [
  189. "api/sysdic"
  190. ],
  191. "description": "获取病情字典\n\u003cbr\u003e",
  192. "operationId": "SysDicApiController.GetIllness",
  193. "responses": {
  194. "200": {
  195. "description": "success",
  196. "schema": {
  197. "type": "array",
  198. "items": {
  199. "$ref": "#/definitions/models.DicResp"
  200. }
  201. }
  202. },
  203. "500": {
  204. "description": "error"
  205. }
  206. }
  207. }
  208. },
  209. "/api/sysdic/getrenalstatus": {
  210. "get": {
  211. "tags": [
  212. "api/sysdic"
  213. ],
  214. "description": "获取肾功能情况列表\n\u003cbr\u003e",
  215. "operationId": "SysDicApiController.GetRenalStatus",
  216. "responses": {
  217. "200": {
  218. "description": "success",
  219. "schema": {
  220. "type": "array",
  221. "items": {
  222. "$ref": "#/definitions/models.DicResp"
  223. }
  224. }
  225. },
  226. "500": {
  227. "description": "error"
  228. }
  229. }
  230. }
  231. },
  232. "/api/user/gethealthprofile": {
  233. "get": {
  234. "tags": [
  235. "api/user"
  236. ],
  237. "description": "获取健康档案\n\u003cbr\u003e",
  238. "operationId": "UserApiController.GetHealthProfile",
  239. "responses": {
  240. "200": {
  241. "description": "success",
  242. "schema": {
  243. "$ref": "#/definitions/models.HealthProfileResp"
  244. }
  245. },
  246. "500": {
  247. "description": "error"
  248. }
  249. },
  250. "security": [
  251. {
  252. "token": []
  253. }
  254. ]
  255. }
  256. },
  257. "/api/user/getuserinfo": {
  258. "get": {
  259. "tags": [
  260. "api/user"
  261. ],
  262. "description": "获取个人中心信息\n\u003cbr\u003e",
  263. "operationId": "UserApiController.GetUserInfo",
  264. "responses": {
  265. "200": {
  266. "description": "success",
  267. "schema": {
  268. "$ref": "#/definitions/models.UserInfoResp"
  269. }
  270. },
  271. "500": {
  272. "description": "error"
  273. }
  274. },
  275. "security": [
  276. {
  277. "token": []
  278. }
  279. ]
  280. }
  281. },
  282. "/api/user/login": {
  283. "post": {
  284. "tags": [
  285. "api/user"
  286. ],
  287. "description": "微信小程序登录\n\u003cbr\u003e",
  288. "operationId": "LoginApiController.WxXcxLogin",
  289. "parameters": [
  290. {
  291. "in": "body",
  292. "name": "body",
  293. "description": "小程序登录请求参数",
  294. "required": true,
  295. "schema": {
  296. "$ref": "#/definitions/models.WxXcxLoginReq"
  297. }
  298. }
  299. ],
  300. "responses": {
  301. "200": {
  302. "description": "",
  303. "schema": {
  304. "$ref": "#/definitions/models.WxXcxLoginResp"
  305. }
  306. },
  307. "500": {
  308. "description": "error"
  309. }
  310. }
  311. }
  312. },
  313. "/api/user/savehealthprofile": {
  314. "post": {
  315. "tags": [
  316. "api/user"
  317. ],
  318. "description": "保存健康档案\n\u003cbr\u003e",
  319. "operationId": "UserApiController.SaveHealthProfile",
  320. "parameters": [
  321. {
  322. "in": "body",
  323. "name": "body",
  324. "description": "小程序登录请求参数",
  325. "required": true,
  326. "schema": {
  327. "$ref": "#/definitions/models.SaveHealthProfileReq"
  328. }
  329. }
  330. ],
  331. "responses": {
  332. "200": {
  333. "description": "success"
  334. },
  335. "500": {
  336. "description": "error"
  337. }
  338. },
  339. "security": [
  340. {
  341. "token": []
  342. }
  343. ]
  344. }
  345. },
  346. "/api/user/saveuserinfo": {
  347. "post": {
  348. "tags": [
  349. "api/user"
  350. ],
  351. "description": "个人中心保存用户信息和透析病友信息\n\u003cbr\u003e",
  352. "operationId": "UserApiController.SaveUserInfo",
  353. "parameters": [
  354. {
  355. "in": "body",
  356. "name": "body",
  357. "description": "小程序登录请求参数",
  358. "required": true,
  359. "schema": {
  360. "$ref": "#/definitions/models.SaveUserInfoReq"
  361. }
  362. }
  363. ],
  364. "responses": {
  365. "200": {
  366. "description": "success"
  367. },
  368. "500": {
  369. "description": "error"
  370. }
  371. },
  372. "security": [
  373. {
  374. "token": []
  375. }
  376. ]
  377. }
  378. },
  379. "/api/user/updatephonebycode": {
  380. "post": {
  381. "tags": [
  382. "api/user"
  383. ],
  384. "description": "获取小程序绑定的手机号码并更新到用户信息\n\u003cbr\u003e",
  385. "operationId": "UserApiController.UpdatePhoneByCode",
  386. "parameters": [
  387. {
  388. "in": "body",
  389. "name": "body",
  390. "description": "小程序登录请求参数",
  391. "required": true,
  392. "schema": {
  393. "$ref": "#/definitions/models.WxXcxLoginReq"
  394. }
  395. }
  396. ],
  397. "responses": {
  398. "200": {
  399. "description": "success",
  400. "schema": {
  401. "$ref": "#/definitions/models.XcxUser"
  402. }
  403. },
  404. "500": {
  405. "description": "error"
  406. }
  407. },
  408. "security": [
  409. {
  410. "token": []
  411. }
  412. ]
  413. }
  414. }
  415. },
  416. "definitions": {
  417. "models.CheckItem": {
  418. "title": "CheckItem",
  419. "type": "object",
  420. "properties": {
  421. "check_item_number": {
  422. "description": "排序",
  423. "type": "integer",
  424. "format": "int64"
  425. },
  426. "check_type": {
  427. "description": "检测类型(试纸类型)",
  428. "type": "string"
  429. },
  430. "ctime": {
  431. "description": "创建时间",
  432. "type": "string",
  433. "format": "datetime"
  434. },
  435. "delete_flag": {
  436. "description": "删除标志",
  437. "type": "integer",
  438. "format": "int64"
  439. },
  440. "details": {
  441. "description": "描述",
  442. "type": "string"
  443. },
  444. "device_type": {
  445. "description": "设备类型",
  446. "type": "string"
  447. },
  448. "id": {
  449. "description": "检测项目ID",
  450. "type": "integer",
  451. "format": "int64"
  452. },
  453. "language": {
  454. "description": "cn: 中文 en 英文",
  455. "type": "string"
  456. },
  457. "mtime": {
  458. "description": "更新时间 ",
  459. "type": "string",
  460. "format": "datetime"
  461. },
  462. "name_cn": {
  463. "description": "检测项目中文名",
  464. "type": "string"
  465. },
  466. "name_en": {
  467. "description": "检测项目英文名",
  468. "type": "string"
  469. },
  470. "reference_value": {
  471. "description": " 参考值",
  472. "type": "string"
  473. },
  474. "remark": {
  475. "description": "备注",
  476. "type": "string"
  477. },
  478. "scope_list": {
  479. "description": "范围value 值,type =1为正常、2及以上为异 常",
  480. "type": "string"
  481. },
  482. "text": {
  483. "description": "文本",
  484. "type": "string"
  485. },
  486. "unit": {
  487. "description": "单位",
  488. "type": "string"
  489. }
  490. }
  491. },
  492. "models.Device": {
  493. "title": "Device",
  494. "type": "object",
  495. "properties": {
  496. "batch_number": {
  497. "description": "批号",
  498. "type": "integer",
  499. "format": "int64"
  500. },
  501. "ctime": {
  502. "description": "创建时间",
  503. "type": "string",
  504. "format": "datetime"
  505. },
  506. "delete_flag": {
  507. "description": "删除标志",
  508. "type": "integer",
  509. "format": "int64"
  510. },
  511. "device_name": {
  512. "description": "设备名称",
  513. "type": "string"
  514. },
  515. "device_type": {
  516. "description": "设备类型",
  517. "type": "string"
  518. },
  519. "emq_password": {
  520. "description": "emq密码",
  521. "type": "string"
  522. },
  523. "id": {
  524. "description": "设备ID",
  525. "type": "integer",
  526. "format": "int64"
  527. },
  528. "inform_type": {
  529. "description": "通知类型:0跳转小程序、1跳转网页 、默认跳转小程序",
  530. "type": "integer",
  531. "format": "int64"
  532. },
  533. "language": {
  534. "description": "语言",
  535. "type": "string"
  536. },
  537. "mac": {
  538. "type": "string"
  539. },
  540. "mcu": {
  541. "type": "string"
  542. },
  543. "mcu_type": {
  544. "description": "MCU芯片类型",
  545. "type": "string"
  546. },
  547. "mtime": {
  548. "description": "更新时间 ",
  549. "type": "string",
  550. "format": "datetime"
  551. },
  552. "name": {
  553. "description": "设备名称",
  554. "type": "string"
  555. },
  556. "number": {
  557. "description": "序号",
  558. "type": "integer",
  559. "format": "int64"
  560. },
  561. "oem_company": {
  562. "description": "厂商(0:自营 1:艾玛OEM)",
  563. "type": "integer",
  564. "format": "int64"
  565. },
  566. "paper_check": {
  567. "description": "试纸检查状态",
  568. "type": "integer",
  569. "format": "int64"
  570. },
  571. "production_date_number": {
  572. "description": "生产日期",
  573. "type": "integer",
  574. "format": "int64"
  575. },
  576. "qr_code": {
  577. "type": "string"
  578. },
  579. "sensor_mode": {
  580. "description": "传感放大倍数",
  581. "type": "string"
  582. },
  583. "serialno": {
  584. "description": "设备编号",
  585. "type": "string"
  586. },
  587. "status": {
  588. "description": "状态(0:未分配 1:已分配 2:包装中 3:待出厂 6:废弃 99:已出厂 100:销售中 101:已售出)",
  589. "type": "integer",
  590. "format": "int64"
  591. },
  592. "ver": {
  593. "description": "软件版本",
  594. "type": "string"
  595. },
  596. "wifi_ver": {
  597. "description": "WIFI版本",
  598. "type": "string"
  599. }
  600. }
  601. },
  602. "models.DicResp": {
  603. "title": "DicResp",
  604. "type": "object",
  605. "properties": {
  606. "name": {
  607. "description": "字典名称",
  608. "type": "string"
  609. },
  610. "type": {
  611. "type": "string"
  612. },
  613. "value": {
  614. "description": "字典值",
  615. "type": "integer",
  616. "format": "int64"
  617. }
  618. }
  619. },
  620. "models.HealthProfileResp": {
  621. "title": "HealthProfileResp",
  622. "type": "object",
  623. "properties": {
  624. "birthday": {
  625. "$ref": "#/definitions/models.Time",
  626. "description": "生日"
  627. },
  628. "blood_type": {
  629. "description": "血型",
  630. "type": "string"
  631. },
  632. "creatine_time": {
  633. "$ref": "#/definitions/models.Time",
  634. "description": "肌酐检测时间"
  635. },
  636. "creatinine": {
  637. "description": "血肌酐",
  638. "type": "integer",
  639. "format": "int64"
  640. },
  641. "creatinine_unit": {
  642. "description": "肌酐单位(umol/L,mg/dl)",
  643. "type": "string"
  644. },
  645. "ctime": {
  646. "$ref": "#/definitions/models.Time",
  647. "description": "创建时间"
  648. },
  649. "gender": {
  650. "description": "性别(0:未知 1:男 2:女)",
  651. "type": "integer",
  652. "format": "int64"
  653. },
  654. "height": {
  655. "description": "身高",
  656. "type": "integer",
  657. "format": "int64"
  658. },
  659. "id": {
  660. "description": "Primary Key ID",
  661. "type": "integer",
  662. "format": "int64"
  663. },
  664. "illness_state": {
  665. "description": "病情",
  666. "type": "string"
  667. },
  668. "mtime": {
  669. "$ref": "#/definitions/models.Time",
  670. "description": "更新时间 "
  671. },
  672. "renal_function_status": {
  673. "description": "肾功能情况(0:未透析,1: 血液透析,2:腹膜透析,3:肾脏移植)",
  674. "type": "integer",
  675. "format": "int64"
  676. },
  677. "status": {
  678. "description": "状态(1:有效 0:无效 )",
  679. "type": "integer",
  680. "format": "int64"
  681. },
  682. "urine_protein": {
  683. "description": "尿蛋白",
  684. "type": "integer",
  685. "format": "int64"
  686. },
  687. "urine_protein_24h": {
  688. "description": "24小时尿蛋白",
  689. "type": "integer",
  690. "format": "int64"
  691. },
  692. "urine_protein_24h_time": {
  693. "$ref": "#/definitions/models.Time",
  694. "description": "24小时尿蛋白检测时间"
  695. },
  696. "urine_protein_24h_unit": {
  697. "description": "24小时尿蛋白单位(g/24h,mg/24h)",
  698. "type": "string"
  699. },
  700. "urine_protein_time": {
  701. "$ref": "#/definitions/models.Time",
  702. "description": "尿蛋白检测时间"
  703. },
  704. "urine_protein_unit": {
  705. "description": "尿蛋白单位(g,mg)",
  706. "type": "string"
  707. },
  708. "weight": {
  709. "description": "体重",
  710. "type": "integer",
  711. "format": "int64"
  712. }
  713. }
  714. },
  715. "models.SaveHealthProfileReq": {
  716. "title": "SaveHealthProfileReq",
  717. "type": "object",
  718. "properties": {
  719. "birthday": {
  720. "description": "生日 yyyy-MM-dd HH:mm:ss",
  721. "type": "string"
  722. },
  723. "blood_type": {
  724. "description": "血型",
  725. "type": "string"
  726. },
  727. "creatine_time": {
  728. "description": "肌酐检测时间 yyyy-MM-dd HH:mm:ss",
  729. "type": "string"
  730. },
  731. "creatinine": {
  732. "description": "血肌酐",
  733. "type": "integer",
  734. "format": "int64"
  735. },
  736. "creatinine_unit": {
  737. "description": "肌酐单位(umol/L,mg/dl)",
  738. "type": "string"
  739. },
  740. "gender": {
  741. "description": "性别(0:未知 1:男 2:女)",
  742. "type": "integer",
  743. "format": "int64"
  744. },
  745. "height": {
  746. "description": "身高",
  747. "type": "integer",
  748. "format": "int64"
  749. },
  750. "illness_state": {
  751. "description": "病情",
  752. "type": "string"
  753. },
  754. "renal_function_status": {
  755. "description": "肾功能情况(0:未透析,1: 血液透析,2:腹膜透析,3:肾脏移植)",
  756. "type": "integer",
  757. "format": "int64"
  758. },
  759. "urine_protein": {
  760. "description": "尿蛋白",
  761. "type": "integer",
  762. "format": "int64"
  763. },
  764. "urine_protein_24h": {
  765. "description": "24小时尿蛋白",
  766. "type": "integer",
  767. "format": "int64"
  768. },
  769. "urine_protein_24h_time": {
  770. "description": "24小时尿蛋白检测时间 yyyy-MM-dd HH:mm:ss",
  771. "type": "string"
  772. },
  773. "urine_protein_24h_unit": {
  774. "description": "24小时尿蛋白单位(g/24h,mg/24h)",
  775. "type": "string"
  776. },
  777. "urine_protein_time": {
  778. "description": "尿蛋白检测时间 yyyy-MM-dd HH:mm:ss",
  779. "type": "string"
  780. },
  781. "urine_protein_unit": {
  782. "description": "尿蛋白单位(g,mg)",
  783. "type": "string"
  784. },
  785. "weight": {
  786. "description": "体重",
  787. "type": "integer",
  788. "format": "int64"
  789. }
  790. }
  791. },
  792. "models.SaveUserInfoReq": {
  793. "title": "SaveUserInfoReq",
  794. "type": "object",
  795. "properties": {
  796. "avatar": {
  797. "description": "头像",
  798. "type": "string"
  799. },
  800. "email": {
  801. "description": "邮件",
  802. "type": "string"
  803. },
  804. "id_card": {
  805. "description": "身份证号",
  806. "type": "string"
  807. },
  808. "inpatient_reg_phone": {
  809. "description": "住院登记手机号",
  810. "type": "string"
  811. },
  812. "nick_name": {
  813. "description": "昵称",
  814. "type": "string"
  815. },
  816. "phone": {
  817. "description": "手机号码",
  818. "type": "string"
  819. },
  820. "real_name": {
  821. "description": "真实姓名",
  822. "type": "string"
  823. }
  824. }
  825. },
  826. "models.Time": {
  827. "title": "Time",
  828. "type": "object"
  829. },
  830. "models.UserInfoResp": {
  831. "title": "UserInfoResp",
  832. "type": "object",
  833. "properties": {
  834. "avatar": {
  835. "description": "头像",
  836. "type": "string"
  837. },
  838. "ctime": {
  839. "$ref": "#/definitions/models.Time",
  840. "description": "创建时间"
  841. },
  842. "email": {
  843. "description": "邮件",
  844. "type": "string"
  845. },
  846. "id": {
  847. "description": "Primary Key ID",
  848. "type": "integer",
  849. "format": "int64"
  850. },
  851. "id_card": {
  852. "description": "身份证号",
  853. "type": "string"
  854. },
  855. "inpatient_reg_phone": {
  856. "description": "住院登记手机号",
  857. "type": "string"
  858. },
  859. "mtime": {
  860. "$ref": "#/definitions/models.Time",
  861. "description": "更新时间 "
  862. },
  863. "nick_name": {
  864. "description": "昵称",
  865. "type": "string"
  866. },
  867. "open_id": {
  868. "description": "OpenID",
  869. "type": "string"
  870. },
  871. "patient_id": {
  872. "type": "integer",
  873. "format": "int64"
  874. },
  875. "phone": {
  876. "description": "手机号码",
  877. "type": "string"
  878. },
  879. "privacy_protocol_versions": {
  880. "description": "隐私政策版本",
  881. "type": "integer",
  882. "format": "int64"
  883. },
  884. "real_name": {
  885. "description": "真实姓名",
  886. "type": "string"
  887. },
  888. "source": {
  889. "description": "用户来源",
  890. "type": "string"
  891. },
  892. "status": {
  893. "description": "状态(1:有效0:无效)",
  894. "type": "integer",
  895. "format": "int64"
  896. },
  897. "union_id": {
  898. "description": "unionid",
  899. "type": "string"
  900. },
  901. "user_org_id": {
  902. "type": "integer",
  903. "format": "int64"
  904. }
  905. }
  906. },
  907. "models.WxXcxLoginReq": {
  908. "title": "WxXcxLoginReq",
  909. "type": "object",
  910. "properties": {
  911. "code": {
  912. "type": "string"
  913. }
  914. }
  915. },
  916. "models.WxXcxLoginResp": {
  917. "title": "WxXcxLoginResp",
  918. "type": "object",
  919. "properties": {
  920. "openid": {
  921. "type": "string"
  922. },
  923. "patient_id": {
  924. "type": "integer",
  925. "format": "int64"
  926. },
  927. "token": {
  928. "type": "string"
  929. },
  930. "user_org_id": {
  931. "type": "integer",
  932. "format": "int64"
  933. }
  934. }
  935. },
  936. "models.XcxUser": {
  937. "title": "XcxUser",
  938. "type": "object",
  939. "properties": {
  940. "avatar": {
  941. "description": "头像",
  942. "type": "string"
  943. },
  944. "ctime": {
  945. "description": "创建时间",
  946. "type": "string",
  947. "format": "datetime"
  948. },
  949. "email": {
  950. "description": "邮件",
  951. "type": "string"
  952. },
  953. "id": {
  954. "description": "Primary Key ID",
  955. "type": "integer",
  956. "format": "int64"
  957. },
  958. "mtime": {
  959. "description": "更新时间 ",
  960. "type": "string",
  961. "format": "datetime"
  962. },
  963. "nick_name": {
  964. "description": "昵称",
  965. "type": "string"
  966. },
  967. "open_id": {
  968. "description": "OpenID",
  969. "type": "string"
  970. },
  971. "patient_id": {
  972. "type": "integer",
  973. "format": "int64"
  974. },
  975. "phone": {
  976. "description": "手机号码",
  977. "type": "string"
  978. },
  979. "privacy_protocol_versions": {
  980. "description": "隐私政策版本",
  981. "type": "integer",
  982. "format": "int64"
  983. },
  984. "role_type": {
  985. "description": "角色类型 0或空:普通 1:管理员 2:测试",
  986. "type": "integer",
  987. "format": "int64"
  988. },
  989. "session_key": {
  990. "type": "string"
  991. },
  992. "source": {
  993. "description": "用户来源",
  994. "type": "string"
  995. },
  996. "status": {
  997. "description": "状态(1:有效 0: 无效)",
  998. "type": "integer",
  999. "format": "int64"
  1000. },
  1001. "union_id": {
  1002. "description": "unionid",
  1003. "type": "string"
  1004. },
  1005. "user_org_id": {
  1006. "type": "integer",
  1007. "format": "int64"
  1008. }
  1009. }
  1010. }
  1011. },
  1012. "securityDefinitions": {
  1013. "token": {
  1014. "type": "apiKey",
  1015. "name": "Authorization",
  1016. "in": "header"
  1017. }
  1018. }
  1019. }