swagger.yml 37KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524
  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/admin/getdevicedetail:
  12. get:
  13. tags:
  14. - api/admin
  15. description: |-
  16. 根据设备ID获取设备详细信息
  17. <br>
  18. operationId: DeviceApiController.GetDeviceDetail
  19. parameters:
  20. - in: query
  21. name: deviceid
  22. description: 设备ID
  23. required: true
  24. type: integer
  25. format: int64
  26. responses:
  27. "200":
  28. description: success
  29. schema:
  30. $ref: '#/definitions/models.Device'
  31. "500":
  32. description: error
  33. security:
  34. - token: []
  35. /api/admin/getdevicelist:
  36. get:
  37. tags:
  38. - api/admin
  39. description: |-
  40. 获取设备列表
  41. <br>
  42. operationId: DeviceApiController.GetDeviceList
  43. parameters:
  44. - in: query
  45. name: pageNum
  46. description: 当前页(从1开始)
  47. required: true
  48. type: integer
  49. format: int64
  50. - in: query
  51. name: pageSize
  52. description: 分页大小
  53. required: true
  54. type: integer
  55. format: int64
  56. - in: query
  57. name: deviceType
  58. description: 设备类型
  59. type: string
  60. responses:
  61. "200":
  62. description: success
  63. schema:
  64. type: array
  65. items:
  66. $ref: '#/definitions/models.Device'
  67. "500":
  68. description: error
  69. /api/admin/login:
  70. post:
  71. tags:
  72. - api/admin
  73. description: |-
  74. 管理员登录
  75. <br>
  76. operationId: LoginApiController.Admin Login
  77. parameters:
  78. - in: body
  79. name: body
  80. description: 用户登录参数
  81. required: true
  82. schema:
  83. $ref: '#/definitions/models.AdminLoginReq'
  84. responses:
  85. "200":
  86. description: ""
  87. schema:
  88. $ref: '#/definitions/models.SysAdmin'
  89. "500":
  90. description: error
  91. /api/article/getarticlebyid:
  92. get:
  93. tags:
  94. - api/article
  95. description: |-
  96. 获取文章详情
  97. <br>
  98. operationId: ArticleApiController.GetArticleByID
  99. parameters:
  100. - in: query
  101. name: id
  102. description: 文章id
  103. required: true
  104. type: integer
  105. format: int64
  106. responses:
  107. "200":
  108. description: success
  109. schema:
  110. $ref: '#/definitions/models.SyhArticlesVO'
  111. "500":
  112. description: error
  113. /api/article/getarticlelist:
  114. get:
  115. tags:
  116. - api/article
  117. description: |-
  118. 获取文章列表
  119. <br>
  120. operationId: ArticleApiController.GetArticleList
  121. parameters:
  122. - in: query
  123. name: pageNum
  124. description: 当前页(从1开始)
  125. required: true
  126. type: integer
  127. format: int64
  128. - in: query
  129. name: pageSize
  130. description: 分页大小
  131. required: true
  132. type: integer
  133. format: int64
  134. - in: query
  135. name: menuid
  136. description: 分类ID
  137. type: integer
  138. format: int64
  139. - in: query
  140. name: keyword
  141. description: 搜索关键字
  142. type: string
  143. responses:
  144. "200":
  145. description: success
  146. schema:
  147. type: array
  148. items:
  149. $ref: '#/definitions/models.SyhArticlesVO'
  150. "500":
  151. description: error
  152. /api/article/getarticlemenu:
  153. get:
  154. tags:
  155. - api/article
  156. description: |-
  157. 获取文章分类
  158. <br>
  159. operationId: ArticleApiController.GetArticleMenu
  160. parameters:
  161. - in: query
  162. name: type
  163. description: 类型:0全部1主2辅
  164. required: true
  165. type: integer
  166. format: int64
  167. responses:
  168. "200":
  169. description: success
  170. schema:
  171. type: array
  172. items:
  173. $ref: '#/definitions/models.SyhArticlesMenu'
  174. "500":
  175. description: error
  176. /api/article/getcheckitemnews:
  177. get:
  178. tags:
  179. - api/article
  180. description: |-
  181. 获取检测项目说明
  182. <br>
  183. operationId: ArticleApiController.GetCheckItemNews
  184. responses:
  185. "200":
  186. description: success
  187. schema:
  188. type: array
  189. items:
  190. $ref: '#/definitions/models.CheckItemNewsVO'
  191. "500":
  192. description: error
  193. /api/article/getramdonarticlelist:
  194. get:
  195. tags:
  196. - api/article
  197. description: |-
  198. 获取随机文章列表
  199. <br>
  200. operationId: ArticleApiController.GetRamdonArticleList
  201. parameters:
  202. - in: query
  203. name: limit
  204. description: 文章数量
  205. required: true
  206. type: integer
  207. format: int64
  208. responses:
  209. "200":
  210. description: success
  211. schema:
  212. type: array
  213. items:
  214. $ref: '#/definitions/models.SyhArticlesVO'
  215. "500":
  216. description: error
  217. /api/checkrecord/getcheckrecorditembyid:
  218. get:
  219. tags:
  220. - api/checkrecord
  221. description: |-
  222. 通过检测ID查看检测结果
  223. <br>
  224. operationId: CheckRecordApiController.GetCheckRecordItemById
  225. parameters:
  226. - in: query
  227. name: checkid
  228. description: 检测ID
  229. required: true
  230. type: integer
  231. format: int64
  232. responses:
  233. "200":
  234. description: success
  235. schema:
  236. $ref: '#/definitions/models.AppCheckRecordItemVO'
  237. "500":
  238. description: error
  239. security:
  240. - token: []
  241. /api/checkrecord/getcheckrecorditemreport:
  242. get:
  243. tags:
  244. - api/checkrecord
  245. description: |-
  246. 获取检测报告
  247. <br>
  248. operationId: CheckRecordApiController.GetCheckRecordItemReport
  249. parameters:
  250. - in: query
  251. name: itemnum
  252. description: 项目编号
  253. required: true
  254. type: integer
  255. format: int64
  256. - in: query
  257. name: daymun
  258. description: 最近几天
  259. required: true
  260. type: integer
  261. format: int64
  262. responses:
  263. "200":
  264. description: success
  265. schema:
  266. type: array
  267. items:
  268. $ref: '#/definitions/models.AppCheckRecordItemReportVO'
  269. "500":
  270. description: error
  271. security:
  272. - token: []
  273. /api/checkrecord/getcheckrecordlist:
  274. get:
  275. tags:
  276. - api/checkrecord
  277. description: |-
  278. 分页获取检测记录
  279. <br>
  280. operationId: CheckRecordApiController.GetCheckRecordList
  281. parameters:
  282. - in: query
  283. name: pageNum
  284. description: 当前页(从1开始)
  285. required: true
  286. type: integer
  287. format: int64
  288. - in: query
  289. name: pageSize
  290. description: 分页大小
  291. required: true
  292. type: integer
  293. format: int64
  294. responses:
  295. "200":
  296. description: success
  297. schema:
  298. type: array
  299. items:
  300. $ref: '#/definitions/models.AppCheckRecordVO'
  301. "500":
  302. description: error
  303. security:
  304. - token: []
  305. /api/checkrecord/qrcodecheckrecord:
  306. get:
  307. tags:
  308. - api/checkrecord
  309. description: |-
  310. 通过扫描二维码查看检测结果
  311. <br>
  312. operationId: CheckRecordApiController.QrCodeCheckRecord
  313. parameters:
  314. - in: query
  315. name: qrcode
  316. description: 扫描二维码的内容
  317. required: true
  318. type: integer
  319. format: int64
  320. responses:
  321. "200":
  322. description: success
  323. schema:
  324. $ref: '#/definitions/models.AppCheckRecordItemVO'
  325. "500":
  326. description: error
  327. security:
  328. - token: []
  329. /api/device/binddevice:
  330. post:
  331. tags:
  332. - api/device
  333. description: |-
  334. 通过扫码绑定设备
  335. <br>
  336. operationId: DeviceApiController.BindDevice
  337. parameters:
  338. - in: query
  339. name: qrcode
  340. description: 设备二维码
  341. required: true
  342. type: string
  343. responses:
  344. "200":
  345. description: success
  346. "500":
  347. description: error
  348. security:
  349. - token: []
  350. /api/device/binddevicebyid:
  351. post:
  352. tags:
  353. - api/device
  354. description: |-
  355. 通过设备ID绑定设备
  356. <br>
  357. operationId: DeviceApiController.BindDevice
  358. parameters:
  359. - in: query
  360. name: deviceId
  361. description: 设备ID
  362. required: true
  363. type: string
  364. responses:
  365. "200":
  366. description: success
  367. "500":
  368. description: error
  369. security:
  370. - token: []
  371. /api/device/getdevicedetail:
  372. get:
  373. tags:
  374. - api/device
  375. description: |-
  376. 根据设备ID获取设备详细信息
  377. <br>
  378. operationId: DeviceApiController.GetDeviceDetail
  379. parameters:
  380. - in: query
  381. name: deviceid
  382. description: 设备ID
  383. required: true
  384. type: integer
  385. format: int64
  386. responses:
  387. "200":
  388. description: success
  389. schema:
  390. $ref: '#/definitions/models.Device'
  391. "500":
  392. description: error
  393. security:
  394. - token: []
  395. /api/device/getmydevices:
  396. get:
  397. tags:
  398. - api/device
  399. description: |-
  400. 获取绑定的设备列表
  401. <br>
  402. operationId: DeviceApiController.GetMyDevices
  403. responses:
  404. "200":
  405. description: success
  406. schema:
  407. type: array
  408. items:
  409. $ref: '#/definitions/models.Device'
  410. "500":
  411. description: error
  412. security:
  413. - token: []
  414. /api/device/unbinddevice:
  415. post:
  416. tags:
  417. - api/device
  418. description: |-
  419. 解绑设备
  420. <br>
  421. operationId: DeviceApiController.UnBindDevice
  422. parameters:
  423. - in: query
  424. name: deviceid
  425. description: 设备ID
  426. required: true
  427. type: integer
  428. format: int64
  429. responses:
  430. "200":
  431. description: success
  432. "500":
  433. description: error
  434. security:
  435. - token: []
  436. /api/sysdic/getcheckitems:
  437. get:
  438. tags:
  439. - api/sysdic
  440. description: |-
  441. 获取检测项目列表
  442. <br>
  443. operationId: SysDicApiController.GetCheckItems
  444. responses:
  445. "200":
  446. description: success
  447. schema:
  448. type: array
  449. items:
  450. $ref: '#/definitions/models.CheckItem'
  451. "500":
  452. description: error
  453. /api/sysdic/getdevicetypes:
  454. get:
  455. tags:
  456. - api/sysdic
  457. description: |-
  458. 获取设备类型列表
  459. <br>
  460. operationId: SysDicApiController.GetDeviceTypes
  461. responses:
  462. "200":
  463. description: success
  464. schema:
  465. type: array
  466. items:
  467. $ref: '#/definitions/models.DicResp'
  468. "500":
  469. description: error
  470. /api/sysdic/getillness:
  471. get:
  472. tags:
  473. - api/sysdic
  474. description: |-
  475. 获取病情字典
  476. <br>
  477. operationId: SysDicApiController.GetIllness
  478. responses:
  479. "200":
  480. description: success
  481. schema:
  482. type: array
  483. items:
  484. $ref: '#/definitions/models.DicResp'
  485. "500":
  486. description: error
  487. /api/sysdic/getrenalstatus:
  488. get:
  489. tags:
  490. - api/sysdic
  491. description: |-
  492. 获取肾功能情况列表
  493. <br>
  494. operationId: SysDicApiController.GetRenalStatus
  495. responses:
  496. "200":
  497. description: success
  498. schema:
  499. type: array
  500. items:
  501. $ref: '#/definitions/models.DicResp'
  502. "500":
  503. description: error
  504. /api/user/gethealthprofile:
  505. get:
  506. tags:
  507. - api/user
  508. description: |-
  509. 获取健康档案
  510. <br>
  511. operationId: UserApiController.GetHealthProfile
  512. responses:
  513. "200":
  514. description: success
  515. schema:
  516. $ref: '#/definitions/models.HealthProfileResp'
  517. "500":
  518. description: error
  519. security:
  520. - token: []
  521. /api/user/getuserinfo:
  522. get:
  523. tags:
  524. - api/user
  525. description: |-
  526. 获取个人中心信息
  527. <br>
  528. operationId: UserApiController.GetUserInfo
  529. responses:
  530. "200":
  531. description: success
  532. schema:
  533. $ref: '#/definitions/models.UserInfoResp'
  534. "500":
  535. description: error
  536. security:
  537. - token: []
  538. /api/user/login:
  539. post:
  540. tags:
  541. - api/user
  542. description: |-
  543. 微信小程序登录
  544. <br>
  545. operationId: LoginApiController.WxXcxLogin
  546. parameters:
  547. - in: body
  548. name: body
  549. description: 小程序登录code
  550. required: true
  551. schema:
  552. $ref: '#/definitions/models.WxXcxLoginReq'
  553. responses:
  554. "200":
  555. description: ""
  556. schema:
  557. $ref: '#/definitions/models.WxXcxLoginResp'
  558. "500":
  559. description: error
  560. /api/user/loginbyopenid:
  561. post:
  562. tags:
  563. - api/user
  564. description: |-
  565. 微信小程序登录
  566. <br>
  567. operationId: LoginApiController.LoginByOpenId
  568. parameters:
  569. - in: body
  570. name: body
  571. description: 小程序登录openid
  572. required: true
  573. schema:
  574. $ref: '#/definitions/models.WxXcxLoginReq'
  575. responses:
  576. "200":
  577. description: ""
  578. schema:
  579. $ref: '#/definitions/models.WxXcxLoginResp'
  580. "500":
  581. description: error
  582. /api/user/savehealthprofile:
  583. post:
  584. tags:
  585. - api/user
  586. description: |-
  587. 保存健康档案
  588. <br>
  589. operationId: UserApiController.SaveHealthProfile
  590. parameters:
  591. - in: body
  592. name: body
  593. description: 小程序登录请求参数
  594. required: true
  595. schema:
  596. $ref: '#/definitions/models.SaveHealthProfileReq'
  597. responses:
  598. "200":
  599. description: success
  600. "500":
  601. description: error
  602. security:
  603. - token: []
  604. /api/user/saveuserinfo:
  605. post:
  606. tags:
  607. - api/user
  608. description: |-
  609. 个人中心保存用户信息和透析病友信息
  610. <br>
  611. operationId: UserApiController.SaveUserInfo
  612. parameters:
  613. - in: body
  614. name: body
  615. description: 小程序登录请求参数
  616. required: true
  617. schema:
  618. $ref: '#/definitions/models.SaveUserInfoReq'
  619. responses:
  620. "200":
  621. description: success
  622. "500":
  623. description: error
  624. security:
  625. - token: []
  626. /api/user/updatephonebycode:
  627. post:
  628. tags:
  629. - api/user
  630. description: |-
  631. 获取小程序绑定的手机号码并更新到用户信息
  632. <br>
  633. operationId: UserApiController.UpdatePhoneByCode
  634. parameters:
  635. - in: body
  636. name: body
  637. description: 小程序登录请求参数
  638. required: true
  639. schema:
  640. $ref: '#/definitions/models.WxXcxLoginReq'
  641. responses:
  642. "200":
  643. description: success
  644. schema:
  645. $ref: '#/definitions/models.XcxUser'
  646. "500":
  647. description: error
  648. security:
  649. - token: []
  650. definitions:
  651. models.AdminLoginReq:
  652. title: AdminLoginReq
  653. type: object
  654. properties:
  655. code:
  656. type: string
  657. password:
  658. type: string
  659. user_name:
  660. type: string
  661. uuid:
  662. type: string
  663. models.AppCheckRecordItemDetailsVO:
  664. title: AppCheckRecordItemDetailsVO
  665. type: object
  666. properties:
  667. alert:
  668. description: true:异常,false:正常
  669. type: boolean
  670. check_item_scopes:
  671. description: 检测范围
  672. type: array
  673. items:
  674. $ref: '#/definitions/models.CheckItemScopeVO'
  675. describe:
  676. description: 描述
  677. type: string
  678. id:
  679. description: id
  680. type: integer
  681. format: int64
  682. name_cn:
  683. description: 中文名字
  684. type: string
  685. name_en:
  686. description: 英文名字
  687. type: string
  688. reference_value:
  689. description: 参考值
  690. type: string
  691. unit:
  692. description: 单位
  693. type: string
  694. value:
  695. description: 检测值
  696. type: string
  697. value_index:
  698. description: 检测值索引
  699. type: string
  700. models.AppCheckRecordItemReportVO:
  701. title: AppCheckRecordItemReportVO
  702. type: object
  703. properties:
  704. check_value_index:
  705. description: 检测值下标
  706. type: integer
  707. format: int64
  708. date:
  709. $ref: '#/definitions/models.Time'
  710. description: 检测时间
  711. describe:
  712. description: 描述
  713. type: string
  714. id:
  715. description: id
  716. type: integer
  717. format: int64
  718. unit:
  719. description: 单位
  720. type: string
  721. value:
  722. description: 检测值
  723. type: string
  724. models.AppCheckRecordItemVO:
  725. title: AppCheckRecordItemVO
  726. type: object
  727. properties:
  728. alert_count:
  729. description: 异常数量
  730. type: integer
  731. format: int64
  732. alert_grade:
  733. description: 风险等级 1 低 2 中 3 高
  734. type: integer
  735. format: int64
  736. bind:
  737. description: false 未绑定用户 true 绑定
  738. type: boolean
  739. check_date:
  740. $ref: '#/definitions/models.Time'
  741. description: 检测日期
  742. check_record_id:
  743. description: 检测记录id
  744. type: integer
  745. format: int64
  746. describe:
  747. description: 描述
  748. type: string
  749. items:
  750. description: 检测详情
  751. type: array
  752. items:
  753. $ref: '#/definitions/models.AppCheckRecordItemDetailsVO'
  754. normal_count:
  755. description: 正常数量
  756. type: integer
  757. format: int64
  758. status:
  759. description: 设备绑定状态(扫码查看结果时返回):1 未绑定 2设备为他人绑定 3设备为自己绑定
  760. type: integer
  761. format: int64
  762. user_id:
  763. description: 绑定用户id 默认自己
  764. type: integer
  765. format: int64
  766. models.AppCheckRecordVO:
  767. title: AppCheckRecordVO
  768. type: object
  769. properties:
  770. alert_count:
  771. description: 异常数量
  772. type: integer
  773. format: int64
  774. alert_items:
  775. description: 异常项
  776. type: array
  777. items:
  778. type: string
  779. bind:
  780. description: 0 未绑定用户 1 绑定
  781. type: integer
  782. format: int64
  783. check_date:
  784. $ref: '#/definitions/models.Time'
  785. description: 检测日期
  786. check_record_id:
  787. description: 检测记录id
  788. type: integer
  789. format: int64
  790. describe:
  791. description: 描述
  792. type: string
  793. normal_count:
  794. description: 正常数量
  795. type: integer
  796. format: int64
  797. user_id:
  798. description: 绑定用户id 默认自己
  799. type: integer
  800. format: int64
  801. view:
  802. description: 是否查看 1 已查看 0 未查看
  803. type: integer
  804. format: int64
  805. models.CheckItem:
  806. title: CheckItem
  807. type: object
  808. properties:
  809. check_item_number:
  810. description: 排序
  811. type: integer
  812. format: int64
  813. check_type:
  814. description: 检测类型(试纸类型)
  815. type: string
  816. ctime:
  817. description: 创建时间
  818. type: string
  819. format: datetime
  820. delete_flag:
  821. description: 删除标志
  822. type: integer
  823. format: int64
  824. details:
  825. description: 描述
  826. type: string
  827. device_type:
  828. description: 设备类型
  829. type: string
  830. id:
  831. description: 检测项目ID
  832. type: integer
  833. format: int64
  834. language:
  835. description: 'cn: 中文 en 英文'
  836. type: string
  837. mtime:
  838. description: '更新时间 '
  839. type: string
  840. format: datetime
  841. name_cn:
  842. description: 检测项目中文名
  843. type: string
  844. name_en:
  845. description: 检测项目英文名
  846. type: string
  847. reference_value:
  848. description: ' 参考值'
  849. type: string
  850. remark:
  851. description: 备注
  852. type: string
  853. scope_list:
  854. description: 范围value 值,type =1为正常、2及以上为异 常
  855. type: string
  856. text:
  857. description: 文本
  858. type: string
  859. unit:
  860. description: 单位
  861. type: string
  862. models.CheckItemNewsVO:
  863. title: CheckItemNewsVO
  864. type: object
  865. properties:
  866. author_id:
  867. description: 新闻作者的ID
  868. type: integer
  869. format: int64
  870. collect_count:
  871. description: 收藏数
  872. type: integer
  873. format: int64
  874. comment_count:
  875. description: 评论数
  876. type: integer
  877. format: int64
  878. content:
  879. description: 新闻正文内容
  880. type: string
  881. content_images:
  882. description: 存储新闻内容中的图片路径,可能为逗号分隔的字符串或JSON格式
  883. type: string
  884. create_time:
  885. $ref: '#/definitions/models.Time'
  886. description: 创建时间
  887. delete_flag:
  888. description: 删除标记,0表示未删除,1表示已删除
  889. type: integer
  890. format: int64
  891. id:
  892. description: 主键,唯一标识每条记录
  893. type: integer
  894. format: int64
  895. introduction:
  896. description: 新闻简介或摘要
  897. type: string
  898. like_count:
  899. description: 点赞数
  900. type: integer
  901. format: int64
  902. reading_quantity:
  903. description: 阅读量
  904. type: integer
  905. format: int64
  906. sort_in_tag:
  907. description: 在特定标签内的排序规则
  908. type: string
  909. status:
  910. description: 新闻状态(例如,草稿、已发布等)
  911. type: integer
  912. format: int64
  913. style_type:
  914. description: 显示样式类型,可能用于控制前端展示效果
  915. type: integer
  916. format: int64
  917. tags:
  918. description: 新闻标签,用以分类或检索
  919. type: string
  920. title:
  921. description: 新闻标题
  922. type: string
  923. update_time:
  924. $ref: '#/definitions/models.Time'
  925. description: 记录最后更新的时间,自动更新
  926. models.CheckItemScopeVO:
  927. title: CheckItemScopeVO
  928. type: object
  929. properties:
  930. index:
  931. type: integer
  932. format: int64
  933. num:
  934. type: string
  935. type:
  936. type: integer
  937. format: int64
  938. value:
  939. type: string
  940. models.Device:
  941. title: Device
  942. type: object
  943. properties:
  944. batch_number:
  945. description: 批号
  946. type: integer
  947. format: int64
  948. ctime:
  949. description: 创建时间
  950. type: string
  951. format: datetime
  952. delete_flag:
  953. description: 删除标志
  954. type: integer
  955. format: int64
  956. device_name:
  957. description: 设备名称
  958. type: string
  959. device_type:
  960. description: 设备类型
  961. type: string
  962. emq_password:
  963. description: emq密码
  964. type: string
  965. id:
  966. description: 设备ID
  967. type: integer
  968. format: int64
  969. inform_type:
  970. description: 通知类型:0跳转小程序、1跳转网页 、默认跳转小程序
  971. type: integer
  972. format: int64
  973. language:
  974. description: 语言
  975. type: string
  976. mac:
  977. type: string
  978. mcu:
  979. type: string
  980. mcu_type:
  981. description: MCU芯片类型
  982. type: string
  983. mtime:
  984. description: '更新时间 '
  985. type: string
  986. format: datetime
  987. name:
  988. description: 设备名称
  989. type: string
  990. number:
  991. description: 序号
  992. type: integer
  993. format: int64
  994. oem_company:
  995. description: 厂商(0:自营 1:艾玛OEM)
  996. type: integer
  997. format: int64
  998. org_id:
  999. description: 所属机构
  1000. type: integer
  1001. format: int64
  1002. paper_check:
  1003. description: 试纸检查状态
  1004. type: integer
  1005. format: int64
  1006. production_date_number:
  1007. description: 生产日期
  1008. type: integer
  1009. format: int64
  1010. qr_code:
  1011. type: string
  1012. sensor_mode:
  1013. description: 传感放大倍数
  1014. type: string
  1015. serialno:
  1016. description: 设备编号
  1017. type: string
  1018. status:
  1019. description: 状态(0:未分配 1:已分配 2:包装中 3:待出厂 6:废弃 99:已出厂 100:销售中 101:已售出)
  1020. type: integer
  1021. format: int64
  1022. ver:
  1023. description: 软件版本
  1024. type: string
  1025. wifi_ver:
  1026. description: WIFI版本
  1027. type: string
  1028. models.DicResp:
  1029. title: DicResp
  1030. type: object
  1031. properties:
  1032. name:
  1033. description: 字典名称
  1034. type: string
  1035. type:
  1036. type: string
  1037. value:
  1038. description: 字典值
  1039. type: integer
  1040. format: int64
  1041. value_str:
  1042. description: 字典字符串值
  1043. type: string
  1044. models.HealthProfileResp:
  1045. title: HealthProfileResp
  1046. type: object
  1047. properties:
  1048. birthday:
  1049. $ref: '#/definitions/models.Time'
  1050. description: 生日
  1051. blood_type:
  1052. description: 血型
  1053. type: string
  1054. creatine_time:
  1055. $ref: '#/definitions/models.Time'
  1056. description: 肌酐检测时间
  1057. creatinine:
  1058. description: 血肌酐
  1059. type: number
  1060. format: double
  1061. creatinine_unit:
  1062. description: 肌酐单位(umol/L,mg/dl)
  1063. type: string
  1064. ctime:
  1065. $ref: '#/definitions/models.Time'
  1066. description: 创建时间
  1067. gender:
  1068. description: 性别(0:未知 1:男 2:女)
  1069. type: integer
  1070. format: int64
  1071. height:
  1072. description: 身高
  1073. type: integer
  1074. format: int64
  1075. id:
  1076. description: Primary Key ID
  1077. type: integer
  1078. format: int64
  1079. illness_state:
  1080. description: 病情
  1081. type: string
  1082. mtime:
  1083. $ref: '#/definitions/models.Time'
  1084. description: '更新时间 '
  1085. renal_function_status:
  1086. description: '肾功能情况(0:未透析,1: 血液透析,2:腹膜透析,3:肾脏移植)'
  1087. type: integer
  1088. format: int64
  1089. status:
  1090. description: 状态(1:有效 0:无效 )
  1091. type: integer
  1092. format: int64
  1093. urine_protein:
  1094. description: 尿蛋白
  1095. type: number
  1096. format: double
  1097. urine_protein_24h:
  1098. description: 24小时尿蛋白
  1099. type: number
  1100. format: double
  1101. urine_protein_24h_time:
  1102. $ref: '#/definitions/models.Time'
  1103. description: 24小时尿蛋白检测时间
  1104. urine_protein_24h_unit:
  1105. description: 24小时尿蛋白单位(g/24h,mg/24h)
  1106. type: string
  1107. urine_protein_time:
  1108. $ref: '#/definitions/models.Time'
  1109. description: 尿蛋白检测时间
  1110. urine_protein_unit:
  1111. description: 尿蛋白单位(g,mg)
  1112. type: string
  1113. weight:
  1114. description: 体重
  1115. type: number
  1116. format: double
  1117. models.SaveHealthProfileReq:
  1118. title: SaveHealthProfileReq
  1119. type: object
  1120. properties:
  1121. birthday:
  1122. description: 生日 yyyy-MM-dd HH:mm:ss
  1123. type: string
  1124. blood_type:
  1125. description: 血型
  1126. type: string
  1127. creatine_time:
  1128. description: 肌酐检测时间 yyyy-MM-dd HH:mm:ss
  1129. type: string
  1130. creatinine:
  1131. description: 血肌酐
  1132. type: number
  1133. format: double
  1134. creatinine_unit:
  1135. description: 肌酐单位(umol/L,mg/dl)
  1136. type: string
  1137. gender:
  1138. description: 性别(0:未知 1:男 2:女)
  1139. type: integer
  1140. format: int64
  1141. height:
  1142. description: 身高
  1143. type: integer
  1144. format: int64
  1145. illness_state:
  1146. description: 病情
  1147. type: string
  1148. renal_function_status:
  1149. description: '肾功能情况(0:未透析,1: 血液透析,2:腹膜透析,3:肾脏移植)'
  1150. type: integer
  1151. format: int64
  1152. urine_protein:
  1153. description: 尿蛋白
  1154. type: number
  1155. format: double
  1156. urine_protein_24h:
  1157. description: 24小时尿蛋白
  1158. type: number
  1159. format: double
  1160. urine_protein_24h_time:
  1161. description: 24小时尿蛋白检测时间 yyyy-MM-dd HH:mm:ss
  1162. type: string
  1163. urine_protein_24h_unit:
  1164. description: 24小时尿蛋白单位(g/24h,mg/24h)
  1165. type: string
  1166. urine_protein_time:
  1167. description: 尿蛋白检测时间 yyyy-MM-dd HH:mm:ss
  1168. type: string
  1169. urine_protein_unit:
  1170. description: 尿蛋白单位(g,mg)
  1171. type: string
  1172. weight:
  1173. description: 体重
  1174. type: number
  1175. format: double
  1176. models.SaveUserInfoReq:
  1177. title: SaveUserInfoReq
  1178. type: object
  1179. properties:
  1180. avatar:
  1181. description: 头像
  1182. type: string
  1183. email:
  1184. description: 邮件
  1185. type: string
  1186. id_card:
  1187. description: 身份证号
  1188. type: string
  1189. inpatient_reg_phone:
  1190. description: 住院登记手机号
  1191. type: string
  1192. nick_name:
  1193. description: 昵称
  1194. type: string
  1195. phone:
  1196. description: 手机号码
  1197. type: string
  1198. real_name:
  1199. description: 真实姓名
  1200. type: string
  1201. verify_code:
  1202. description: 手机验证码
  1203. type: string
  1204. models.SyhArticlesMenu:
  1205. title: SyhArticlesMenu
  1206. type: object
  1207. properties:
  1208. id:
  1209. description: 自增主键ID
  1210. type: integer
  1211. format: int32
  1212. img:
  1213. description: 图片
  1214. type: string
  1215. name:
  1216. description: 分类名
  1217. type: string
  1218. order:
  1219. description: 排序
  1220. type: integer
  1221. format: int32
  1222. status:
  1223. description: 状态
  1224. type: integer
  1225. format: int32
  1226. summary:
  1227. description: 介绍
  1228. type: string
  1229. type:
  1230. description: 分类类型
  1231. type: integer
  1232. format: int32
  1233. models.SyhArticlesVO:
  1234. title: SyhArticlesVO
  1235. type: object
  1236. properties:
  1237. article_type:
  1238. description: 文章类型
  1239. type: integer
  1240. format: int32
  1241. author:
  1242. description: 作者
  1243. type: string
  1244. class_id:
  1245. description: 主分类
  1246. type: integer
  1247. format: int32
  1248. comment_num:
  1249. description: 评论数
  1250. type: integer
  1251. format: int32
  1252. content:
  1253. description: 内容
  1254. type: string
  1255. ctime:
  1256. $ref: '#/definitions/models.Time'
  1257. description: 创建时间
  1258. from_id:
  1259. description: 医生/机构ID
  1260. type: integer
  1261. format: int32
  1262. id:
  1263. description: 自增主键ID
  1264. type: integer
  1265. format: int32
  1266. img:
  1267. description: 图片
  1268. type: string
  1269. is_del:
  1270. description: 是否删除
  1271. type: integer
  1272. format: int32
  1273. menu_id:
  1274. description: 辅分类
  1275. type: integer
  1276. format: int32
  1277. new_time:
  1278. $ref: '#/definitions/models.Time'
  1279. description: 新建时间
  1280. num:
  1281. description: 点击次数
  1282. type: integer
  1283. format: int32
  1284. org_id:
  1285. description: orgId
  1286. type: integer
  1287. format: int32
  1288. reason:
  1289. description: 原因
  1290. type: string
  1291. star_num:
  1292. description: 点赞数
  1293. type: integer
  1294. format: int32
  1295. status:
  1296. description: 状态 0正在审核,1通过,2未通过,3草稿,4通过且大图显示视频
  1297. type: integer
  1298. format: int32
  1299. summary:
  1300. description: 简介
  1301. type: string
  1302. t_module:
  1303. description: 模块
  1304. type: string
  1305. tags:
  1306. description: 标签
  1307. type: string
  1308. title:
  1309. description: 标题
  1310. type: string
  1311. type:
  1312. description: 类型'0系统1医生2机构
  1313. type: integer
  1314. format: int32
  1315. models.SysAdmin:
  1316. title: SysAdmin
  1317. type: object
  1318. properties:
  1319. avatar:
  1320. description: 头像地址
  1321. type: string
  1322. ctime:
  1323. description: 创建时间
  1324. type: string
  1325. format: datetime
  1326. del_flag:
  1327. description: 删除标志(0代表存在 2代表删除)
  1328. type: string
  1329. dept_id:
  1330. description: 部门ID
  1331. type: integer
  1332. format: int64
  1333. email:
  1334. description: 用户邮箱
  1335. type: string
  1336. id:
  1337. description: 用户ID
  1338. type: integer
  1339. format: int64
  1340. login_date:
  1341. description: 最后登录时间
  1342. type: string
  1343. format: datetime
  1344. login_ip:
  1345. description: 最后登录IP
  1346. type: string
  1347. mtime:
  1348. description: 更新时间
  1349. type: string
  1350. format: datetime
  1351. nick_name:
  1352. description: 用户昵称
  1353. type: string
  1354. password:
  1355. description: 密码
  1356. type: string
  1357. phonenumber:
  1358. description: 手机号码
  1359. type: string
  1360. remark:
  1361. description: 备注
  1362. type: string
  1363. sex:
  1364. description: 用户性别(0男 1女 2未知)
  1365. type: string
  1366. status:
  1367. description: 帐号状态(0正常 1停用)
  1368. type: string
  1369. user_name:
  1370. description: 用户账号
  1371. type: string
  1372. user_type:
  1373. description: 用户类型(00系统用户)
  1374. type: string
  1375. models.Time:
  1376. title: Time
  1377. type: object
  1378. models.UserInfoResp:
  1379. title: UserInfoResp
  1380. type: object
  1381. properties:
  1382. avatar:
  1383. description: 头像
  1384. type: string
  1385. ctime:
  1386. $ref: '#/definitions/models.Time'
  1387. description: 创建时间
  1388. dialysis_no:
  1389. description: ' 透析号'
  1390. type: string
  1391. email:
  1392. description: 邮件
  1393. type: string
  1394. health_care_no:
  1395. description: ' 医保号'
  1396. type: string
  1397. id:
  1398. description: Primary Key ID
  1399. type: integer
  1400. format: int64
  1401. id_card:
  1402. description: 身份证号
  1403. type: string
  1404. inpatient_reg_phone:
  1405. description: 住院登记手机号
  1406. type: string
  1407. mtime:
  1408. $ref: '#/definitions/models.Time'
  1409. description: '更新时间 '
  1410. nick_name:
  1411. description: 昵称
  1412. type: string
  1413. open_id:
  1414. description: OpenID
  1415. type: string
  1416. patient_id:
  1417. type: integer
  1418. format: int64
  1419. phone:
  1420. description: 手机号码
  1421. type: string
  1422. privacy_protocol_versions:
  1423. description: 隐私政策版本
  1424. type: integer
  1425. format: int64
  1426. real_name:
  1427. description: 真实姓名
  1428. type: string
  1429. source:
  1430. description: 用户来源
  1431. type: string
  1432. status:
  1433. description: 状态(1:有效0:无效)
  1434. type: integer
  1435. format: int64
  1436. union_id:
  1437. description: unionid
  1438. type: string
  1439. user_org_id:
  1440. type: integer
  1441. format: int64
  1442. models.WxXcxLoginReq:
  1443. title: WxXcxLoginReq
  1444. type: object
  1445. properties:
  1446. code:
  1447. type: string
  1448. models.WxXcxLoginResp:
  1449. title: WxXcxLoginResp
  1450. type: object
  1451. properties:
  1452. openid:
  1453. type: string
  1454. patient_id:
  1455. type: integer
  1456. format: int64
  1457. token:
  1458. type: string
  1459. user_org_id:
  1460. type: integer
  1461. format: int64
  1462. models.XcxUser:
  1463. title: XcxUser
  1464. type: object
  1465. properties:
  1466. avatar:
  1467. description: 头像
  1468. type: string
  1469. ctime:
  1470. description: 创建时间
  1471. type: string
  1472. format: datetime
  1473. email:
  1474. description: 邮件
  1475. type: string
  1476. id:
  1477. description: Primary Key ID
  1478. type: integer
  1479. format: int64
  1480. mtime:
  1481. description: '更新时间 '
  1482. type: string
  1483. format: datetime
  1484. nick_name:
  1485. description: 昵称
  1486. type: string
  1487. open_id:
  1488. description: OpenID
  1489. type: string
  1490. patient_id:
  1491. type: integer
  1492. format: int64
  1493. phone:
  1494. description: 手机号码
  1495. type: string
  1496. privacy_protocol_versions:
  1497. description: 隐私政策版本
  1498. type: integer
  1499. format: int64
  1500. role_type:
  1501. description: 角色类型 0或空:普通 1:管理员 2:测试
  1502. type: integer
  1503. format: int64
  1504. session_key:
  1505. type: string
  1506. source:
  1507. description: 用户来源
  1508. type: string
  1509. status:
  1510. description: 状态(1:有效 0: 无效)
  1511. type: integer
  1512. format: int64
  1513. union_id:
  1514. description: unionid
  1515. type: string
  1516. user_org_id:
  1517. type: integer
  1518. format: int64
  1519. securityDefinitions:
  1520. token:
  1521. type: apiKey
  1522. name: Authorization
  1523. in: header