swagger.json 70KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082
  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/admin/getdevicedetail": {
  15. "get": {
  16. "tags": [
  17. "api/admin"
  18. ],
  19. "description": "根据设备ID获取设备详细信息\n\u003cbr\u003e",
  20. "operationId": "DeviceApiController.GetDeviceDetail",
  21. "parameters": [
  22. {
  23. "in": "query",
  24. "name": "deviceid",
  25. "description": "设备ID",
  26. "required": true,
  27. "type": "integer",
  28. "format": "int64"
  29. }
  30. ],
  31. "responses": {
  32. "200": {
  33. "description": "success",
  34. "schema": {
  35. "$ref": "#/definitions/models.Device"
  36. }
  37. },
  38. "500": {
  39. "description": "error"
  40. }
  41. },
  42. "security": [
  43. {
  44. "token": []
  45. }
  46. ]
  47. }
  48. },
  49. "/api/admin/getdevicelist": {
  50. "get": {
  51. "tags": [
  52. "api/admin"
  53. ],
  54. "description": "获取设备列表\n\u003cbr\u003e",
  55. "operationId": "DeviceApiController.GetDeviceList",
  56. "parameters": [
  57. {
  58. "in": "query",
  59. "name": "pageNum",
  60. "description": "当前页(从1开始)",
  61. "required": true,
  62. "type": "integer",
  63. "format": "int64"
  64. },
  65. {
  66. "in": "query",
  67. "name": "pageSize",
  68. "description": "分页大小",
  69. "required": true,
  70. "type": "integer",
  71. "format": "int64"
  72. },
  73. {
  74. "in": "query",
  75. "name": "deviceType",
  76. "description": "设备类型",
  77. "type": "string"
  78. }
  79. ],
  80. "responses": {
  81. "200": {
  82. "description": "success",
  83. "schema": {
  84. "type": "array",
  85. "items": {
  86. "$ref": "#/definitions/models.Device"
  87. }
  88. }
  89. },
  90. "500": {
  91. "description": "error"
  92. }
  93. }
  94. }
  95. },
  96. "/api/admin/login": {
  97. "post": {
  98. "tags": [
  99. "api/admin"
  100. ],
  101. "description": "管理员登录\n\u003cbr\u003e",
  102. "operationId": "LoginApiController.Admin Login",
  103. "parameters": [
  104. {
  105. "in": "body",
  106. "name": "body",
  107. "description": "用户登录参数",
  108. "required": true,
  109. "schema": {
  110. "$ref": "#/definitions/models.AdminLoginReq"
  111. }
  112. }
  113. ],
  114. "responses": {
  115. "200": {
  116. "description": "",
  117. "schema": {
  118. "$ref": "#/definitions/models.SysAdmin"
  119. }
  120. },
  121. "500": {
  122. "description": "error"
  123. }
  124. }
  125. }
  126. },
  127. "/api/article/getarticlebyid": {
  128. "get": {
  129. "tags": [
  130. "api/article"
  131. ],
  132. "description": "获取文章详情\n\u003cbr\u003e",
  133. "operationId": "ArticleApiController.GetArticleByID",
  134. "parameters": [
  135. {
  136. "in": "query",
  137. "name": "id",
  138. "description": "文章id",
  139. "required": true,
  140. "type": "integer",
  141. "format": "int64"
  142. }
  143. ],
  144. "responses": {
  145. "200": {
  146. "description": "success",
  147. "schema": {
  148. "$ref": "#/definitions/models.SyhArticlesVO"
  149. }
  150. },
  151. "500": {
  152. "description": "error"
  153. }
  154. }
  155. }
  156. },
  157. "/api/article/getarticlelist": {
  158. "get": {
  159. "tags": [
  160. "api/article"
  161. ],
  162. "description": "获取文章列表\n\u003cbr\u003e",
  163. "operationId": "ArticleApiController.GetArticleList",
  164. "parameters": [
  165. {
  166. "in": "query",
  167. "name": "pageNum",
  168. "description": "当前页(从1开始)",
  169. "required": true,
  170. "type": "integer",
  171. "format": "int64"
  172. },
  173. {
  174. "in": "query",
  175. "name": "pageSize",
  176. "description": "分页大小",
  177. "required": true,
  178. "type": "integer",
  179. "format": "int64"
  180. },
  181. {
  182. "in": "query",
  183. "name": "menuid",
  184. "description": "分类ID",
  185. "type": "integer",
  186. "format": "int64"
  187. },
  188. {
  189. "in": "query",
  190. "name": "keyword",
  191. "description": "搜索关键字",
  192. "type": "string"
  193. }
  194. ],
  195. "responses": {
  196. "200": {
  197. "description": "success",
  198. "schema": {
  199. "type": "array",
  200. "items": {
  201. "$ref": "#/definitions/models.SyhArticlesVO"
  202. }
  203. }
  204. },
  205. "500": {
  206. "description": "error"
  207. }
  208. }
  209. }
  210. },
  211. "/api/article/getarticlemenu": {
  212. "get": {
  213. "tags": [
  214. "api/article"
  215. ],
  216. "description": "获取文章分类\n\u003cbr\u003e",
  217. "operationId": "ArticleApiController.GetArticleMenu",
  218. "parameters": [
  219. {
  220. "in": "query",
  221. "name": "type",
  222. "description": "类型:0全部1主2辅",
  223. "required": true,
  224. "type": "integer",
  225. "format": "int64"
  226. }
  227. ],
  228. "responses": {
  229. "200": {
  230. "description": "success",
  231. "schema": {
  232. "type": "array",
  233. "items": {
  234. "$ref": "#/definitions/models.SyhArticlesMenu"
  235. }
  236. }
  237. },
  238. "500": {
  239. "description": "error"
  240. }
  241. }
  242. }
  243. },
  244. "/api/article/getcheckitemnews": {
  245. "get": {
  246. "tags": [
  247. "api/article"
  248. ],
  249. "description": "获取检测项目说明\n\u003cbr\u003e",
  250. "operationId": "ArticleApiController.GetCheckItemNews",
  251. "responses": {
  252. "200": {
  253. "description": "success",
  254. "schema": {
  255. "type": "array",
  256. "items": {
  257. "$ref": "#/definitions/models.CheckItemNewsVO"
  258. }
  259. }
  260. },
  261. "500": {
  262. "description": "error"
  263. }
  264. }
  265. }
  266. },
  267. "/api/article/getramdonarticlelist": {
  268. "get": {
  269. "tags": [
  270. "api/article"
  271. ],
  272. "description": "获取随机文章列表\n\u003cbr\u003e",
  273. "operationId": "ArticleApiController.GetRamdonArticleList",
  274. "parameters": [
  275. {
  276. "in": "query",
  277. "name": "limit",
  278. "description": "文章数量",
  279. "required": true,
  280. "type": "integer",
  281. "format": "int64"
  282. }
  283. ],
  284. "responses": {
  285. "200": {
  286. "description": "success",
  287. "schema": {
  288. "type": "array",
  289. "items": {
  290. "$ref": "#/definitions/models.SyhArticlesVO"
  291. }
  292. }
  293. },
  294. "500": {
  295. "description": "error"
  296. }
  297. }
  298. }
  299. },
  300. "/api/checkrecord/getcheckrecorditembyid": {
  301. "get": {
  302. "tags": [
  303. "api/checkrecord"
  304. ],
  305. "description": "通过检测ID查看检测结果\n\u003cbr\u003e",
  306. "operationId": "CheckRecordApiController.GetCheckRecordItemById",
  307. "parameters": [
  308. {
  309. "in": "query",
  310. "name": "checkid",
  311. "description": "检测ID",
  312. "required": true,
  313. "type": "integer",
  314. "format": "int64"
  315. }
  316. ],
  317. "responses": {
  318. "200": {
  319. "description": "success",
  320. "schema": {
  321. "$ref": "#/definitions/models.AppCheckRecordItemVO"
  322. }
  323. },
  324. "500": {
  325. "description": "error"
  326. }
  327. },
  328. "security": [
  329. {
  330. "token": []
  331. }
  332. ]
  333. }
  334. },
  335. "/api/checkrecord/getcheckrecorditemreport": {
  336. "get": {
  337. "tags": [
  338. "api/checkrecord"
  339. ],
  340. "description": "获取检测报告\n\u003cbr\u003e",
  341. "operationId": "CheckRecordApiController.GetCheckRecordItemReport",
  342. "parameters": [
  343. {
  344. "in": "query",
  345. "name": "itemnum",
  346. "description": "项目编号",
  347. "required": true,
  348. "type": "integer",
  349. "format": "int64"
  350. },
  351. {
  352. "in": "query",
  353. "name": "daymun",
  354. "description": "最近几天",
  355. "required": true,
  356. "type": "integer",
  357. "format": "int64"
  358. }
  359. ],
  360. "responses": {
  361. "200": {
  362. "description": "success",
  363. "schema": {
  364. "type": "array",
  365. "items": {
  366. "$ref": "#/definitions/models.AppCheckRecordItemReportVO"
  367. }
  368. }
  369. },
  370. "500": {
  371. "description": "error"
  372. }
  373. },
  374. "security": [
  375. {
  376. "token": []
  377. }
  378. ]
  379. }
  380. },
  381. "/api/checkrecord/getcheckrecordlist": {
  382. "get": {
  383. "tags": [
  384. "api/checkrecord"
  385. ],
  386. "description": "分页获取检测记录\n\u003cbr\u003e",
  387. "operationId": "CheckRecordApiController.GetCheckRecordList",
  388. "parameters": [
  389. {
  390. "in": "query",
  391. "name": "pageNum",
  392. "description": "当前页(从1开始)",
  393. "required": true,
  394. "type": "integer",
  395. "format": "int64"
  396. },
  397. {
  398. "in": "query",
  399. "name": "pageSize",
  400. "description": "分页大小",
  401. "required": true,
  402. "type": "integer",
  403. "format": "int64"
  404. }
  405. ],
  406. "responses": {
  407. "200": {
  408. "description": "success",
  409. "schema": {
  410. "type": "array",
  411. "items": {
  412. "$ref": "#/definitions/models.AppCheckRecordVO"
  413. }
  414. }
  415. },
  416. "500": {
  417. "description": "error"
  418. }
  419. },
  420. "security": [
  421. {
  422. "token": []
  423. }
  424. ]
  425. }
  426. },
  427. "/api/checkrecord/qrcodecheckrecord": {
  428. "get": {
  429. "tags": [
  430. "api/checkrecord"
  431. ],
  432. "description": "通过扫描二维码查看检测结果\n\u003cbr\u003e",
  433. "operationId": "CheckRecordApiController.QrCodeCheckRecord",
  434. "parameters": [
  435. {
  436. "in": "query",
  437. "name": "qrcode",
  438. "description": "扫描二维码的内容",
  439. "required": true,
  440. "type": "integer",
  441. "format": "int64"
  442. }
  443. ],
  444. "responses": {
  445. "200": {
  446. "description": "success",
  447. "schema": {
  448. "$ref": "#/definitions/models.AppCheckRecordItemVO"
  449. }
  450. },
  451. "500": {
  452. "description": "error"
  453. }
  454. },
  455. "security": [
  456. {
  457. "token": []
  458. }
  459. ]
  460. }
  461. },
  462. "/api/device/binddevice": {
  463. "post": {
  464. "tags": [
  465. "api/device"
  466. ],
  467. "description": "通过扫码绑定设备\n\u003cbr\u003e",
  468. "operationId": "DeviceApiController.BindDevice",
  469. "parameters": [
  470. {
  471. "in": "query",
  472. "name": "qrcode",
  473. "description": "设备二维码",
  474. "required": true,
  475. "type": "string"
  476. }
  477. ],
  478. "responses": {
  479. "200": {
  480. "description": "success"
  481. },
  482. "500": {
  483. "description": "error"
  484. }
  485. },
  486. "security": [
  487. {
  488. "token": []
  489. }
  490. ]
  491. }
  492. },
  493. "/api/device/binddevicebyid": {
  494. "post": {
  495. "tags": [
  496. "api/device"
  497. ],
  498. "description": "通过设备ID绑定设备\n\u003cbr\u003e",
  499. "operationId": "DeviceApiController.BindDevice",
  500. "parameters": [
  501. {
  502. "in": "query",
  503. "name": "deviceId",
  504. "description": "设备ID",
  505. "required": true,
  506. "type": "string"
  507. }
  508. ],
  509. "responses": {
  510. "200": {
  511. "description": "success"
  512. },
  513. "500": {
  514. "description": "error"
  515. }
  516. },
  517. "security": [
  518. {
  519. "token": []
  520. }
  521. ]
  522. }
  523. },
  524. "/api/device/getdevicedetail": {
  525. "get": {
  526. "tags": [
  527. "api/device"
  528. ],
  529. "description": "根据设备ID获取设备详细信息\n\u003cbr\u003e",
  530. "operationId": "DeviceApiController.GetDeviceDetail",
  531. "parameters": [
  532. {
  533. "in": "query",
  534. "name": "deviceid",
  535. "description": "设备ID",
  536. "required": true,
  537. "type": "integer",
  538. "format": "int64"
  539. }
  540. ],
  541. "responses": {
  542. "200": {
  543. "description": "success",
  544. "schema": {
  545. "$ref": "#/definitions/models.Device"
  546. }
  547. },
  548. "500": {
  549. "description": "error"
  550. }
  551. },
  552. "security": [
  553. {
  554. "token": []
  555. }
  556. ]
  557. }
  558. },
  559. "/api/device/getmydevices": {
  560. "get": {
  561. "tags": [
  562. "api/device"
  563. ],
  564. "description": "获取绑定的设备列表\n\u003cbr\u003e",
  565. "operationId": "DeviceApiController.GetMyDevices",
  566. "responses": {
  567. "200": {
  568. "description": "success",
  569. "schema": {
  570. "type": "array",
  571. "items": {
  572. "$ref": "#/definitions/models.Device"
  573. }
  574. }
  575. },
  576. "500": {
  577. "description": "error"
  578. }
  579. },
  580. "security": [
  581. {
  582. "token": []
  583. }
  584. ]
  585. }
  586. },
  587. "/api/device/unbinddevice": {
  588. "post": {
  589. "tags": [
  590. "api/device"
  591. ],
  592. "description": "解绑设备\n\u003cbr\u003e",
  593. "operationId": "DeviceApiController.UnBindDevice",
  594. "parameters": [
  595. {
  596. "in": "query",
  597. "name": "deviceid",
  598. "description": "设备ID",
  599. "required": true,
  600. "type": "integer",
  601. "format": "int64"
  602. }
  603. ],
  604. "responses": {
  605. "200": {
  606. "description": "success"
  607. },
  608. "500": {
  609. "description": "error"
  610. }
  611. },
  612. "security": [
  613. {
  614. "token": []
  615. }
  616. ]
  617. }
  618. },
  619. "/api/sysdic/getcheckitems": {
  620. "get": {
  621. "tags": [
  622. "api/sysdic"
  623. ],
  624. "description": "获取检测项目列表\n\u003cbr\u003e",
  625. "operationId": "SysDicApiController.GetCheckItems",
  626. "responses": {
  627. "200": {
  628. "description": "success",
  629. "schema": {
  630. "type": "array",
  631. "items": {
  632. "$ref": "#/definitions/models.CheckItem"
  633. }
  634. }
  635. },
  636. "500": {
  637. "description": "error"
  638. }
  639. }
  640. }
  641. },
  642. "/api/sysdic/getdevicetypes": {
  643. "get": {
  644. "tags": [
  645. "api/sysdic"
  646. ],
  647. "description": "获取设备类型列表\n\u003cbr\u003e",
  648. "operationId": "SysDicApiController.GetDeviceTypes",
  649. "responses": {
  650. "200": {
  651. "description": "success",
  652. "schema": {
  653. "type": "array",
  654. "items": {
  655. "$ref": "#/definitions/models.DicResp"
  656. }
  657. }
  658. },
  659. "500": {
  660. "description": "error"
  661. }
  662. }
  663. }
  664. },
  665. "/api/sysdic/getillness": {
  666. "get": {
  667. "tags": [
  668. "api/sysdic"
  669. ],
  670. "description": "获取病情字典\n\u003cbr\u003e",
  671. "operationId": "SysDicApiController.GetIllness",
  672. "responses": {
  673. "200": {
  674. "description": "success",
  675. "schema": {
  676. "type": "array",
  677. "items": {
  678. "$ref": "#/definitions/models.DicResp"
  679. }
  680. }
  681. },
  682. "500": {
  683. "description": "error"
  684. }
  685. }
  686. }
  687. },
  688. "/api/sysdic/getrenalstatus": {
  689. "get": {
  690. "tags": [
  691. "api/sysdic"
  692. ],
  693. "description": "获取肾功能情况列表\n\u003cbr\u003e",
  694. "operationId": "SysDicApiController.GetRenalStatus",
  695. "responses": {
  696. "200": {
  697. "description": "success",
  698. "schema": {
  699. "type": "array",
  700. "items": {
  701. "$ref": "#/definitions/models.DicResp"
  702. }
  703. }
  704. },
  705. "500": {
  706. "description": "error"
  707. }
  708. }
  709. }
  710. },
  711. "/api/user/gethealthprofile": {
  712. "get": {
  713. "tags": [
  714. "api/user"
  715. ],
  716. "description": "获取健康档案\n\u003cbr\u003e",
  717. "operationId": "UserApiController.GetHealthProfile",
  718. "responses": {
  719. "200": {
  720. "description": "success",
  721. "schema": {
  722. "$ref": "#/definitions/models.HealthProfileResp"
  723. }
  724. },
  725. "500": {
  726. "description": "error"
  727. }
  728. },
  729. "security": [
  730. {
  731. "token": []
  732. }
  733. ]
  734. }
  735. },
  736. "/api/user/getuserinfo": {
  737. "get": {
  738. "tags": [
  739. "api/user"
  740. ],
  741. "description": "获取个人中心信息\n\u003cbr\u003e",
  742. "operationId": "UserApiController.GetUserInfo",
  743. "responses": {
  744. "200": {
  745. "description": "success",
  746. "schema": {
  747. "$ref": "#/definitions/models.UserInfoResp"
  748. }
  749. },
  750. "500": {
  751. "description": "error"
  752. }
  753. },
  754. "security": [
  755. {
  756. "token": []
  757. }
  758. ]
  759. }
  760. },
  761. "/api/user/login": {
  762. "post": {
  763. "tags": [
  764. "api/user"
  765. ],
  766. "description": "微信小程序登录\n\u003cbr\u003e",
  767. "operationId": "LoginApiController.WxXcxLogin",
  768. "parameters": [
  769. {
  770. "in": "body",
  771. "name": "body",
  772. "description": "小程序登录code",
  773. "required": true,
  774. "schema": {
  775. "$ref": "#/definitions/models.WxXcxLoginReq"
  776. }
  777. }
  778. ],
  779. "responses": {
  780. "200": {
  781. "description": "",
  782. "schema": {
  783. "$ref": "#/definitions/models.WxXcxLoginResp"
  784. }
  785. },
  786. "500": {
  787. "description": "error"
  788. }
  789. }
  790. }
  791. },
  792. "/api/user/loginbyopenid": {
  793. "post": {
  794. "tags": [
  795. "api/user"
  796. ],
  797. "description": "微信小程序登录\n\u003cbr\u003e",
  798. "operationId": "LoginApiController.LoginByOpenId",
  799. "parameters": [
  800. {
  801. "in": "body",
  802. "name": "body",
  803. "description": "小程序登录openid",
  804. "required": true,
  805. "schema": {
  806. "$ref": "#/definitions/models.WxXcxLoginReq"
  807. }
  808. }
  809. ],
  810. "responses": {
  811. "200": {
  812. "description": "",
  813. "schema": {
  814. "$ref": "#/definitions/models.WxXcxLoginResp"
  815. }
  816. },
  817. "500": {
  818. "description": "error"
  819. }
  820. }
  821. }
  822. },
  823. "/api/user/savehealthprofile": {
  824. "post": {
  825. "tags": [
  826. "api/user"
  827. ],
  828. "description": "保存健康档案\n\u003cbr\u003e",
  829. "operationId": "UserApiController.SaveHealthProfile",
  830. "parameters": [
  831. {
  832. "in": "body",
  833. "name": "body",
  834. "description": "小程序登录请求参数",
  835. "required": true,
  836. "schema": {
  837. "$ref": "#/definitions/models.SaveHealthProfileReq"
  838. }
  839. }
  840. ],
  841. "responses": {
  842. "200": {
  843. "description": "success"
  844. },
  845. "500": {
  846. "description": "error"
  847. }
  848. },
  849. "security": [
  850. {
  851. "token": []
  852. }
  853. ]
  854. }
  855. },
  856. "/api/user/saveuserinfo": {
  857. "post": {
  858. "tags": [
  859. "api/user"
  860. ],
  861. "description": "个人中心保存用户信息和透析病友信息\n\u003cbr\u003e",
  862. "operationId": "UserApiController.SaveUserInfo",
  863. "parameters": [
  864. {
  865. "in": "body",
  866. "name": "body",
  867. "description": "小程序登录请求参数",
  868. "required": true,
  869. "schema": {
  870. "$ref": "#/definitions/models.SaveUserInfoReq"
  871. }
  872. }
  873. ],
  874. "responses": {
  875. "200": {
  876. "description": "success"
  877. },
  878. "500": {
  879. "description": "error"
  880. }
  881. },
  882. "security": [
  883. {
  884. "token": []
  885. }
  886. ]
  887. }
  888. },
  889. "/api/user/updatephonebycode": {
  890. "post": {
  891. "tags": [
  892. "api/user"
  893. ],
  894. "description": "获取小程序绑定的手机号码并更新到用户信息\n\u003cbr\u003e",
  895. "operationId": "UserApiController.UpdatePhoneByCode",
  896. "parameters": [
  897. {
  898. "in": "body",
  899. "name": "body",
  900. "description": "小程序登录请求参数",
  901. "required": true,
  902. "schema": {
  903. "$ref": "#/definitions/models.WxXcxLoginReq"
  904. }
  905. }
  906. ],
  907. "responses": {
  908. "200": {
  909. "description": "success",
  910. "schema": {
  911. "$ref": "#/definitions/models.XcxUser"
  912. }
  913. },
  914. "500": {
  915. "description": "error"
  916. }
  917. },
  918. "security": [
  919. {
  920. "token": []
  921. }
  922. ]
  923. }
  924. }
  925. },
  926. "definitions": {
  927. "models.AdminLoginReq": {
  928. "title": "AdminLoginReq",
  929. "type": "object",
  930. "properties": {
  931. "code": {
  932. "type": "string"
  933. },
  934. "password": {
  935. "type": "string"
  936. },
  937. "user_name": {
  938. "type": "string"
  939. },
  940. "uuid": {
  941. "type": "string"
  942. }
  943. }
  944. },
  945. "models.AppCheckRecordItemDetailsVO": {
  946. "title": "AppCheckRecordItemDetailsVO",
  947. "type": "object",
  948. "properties": {
  949. "alert": {
  950. "description": "true:异常,false:正常",
  951. "type": "boolean"
  952. },
  953. "check_item_scopes": {
  954. "description": "检测范围",
  955. "type": "array",
  956. "items": {
  957. "$ref": "#/definitions/models.CheckItemScopeVO"
  958. }
  959. },
  960. "describe": {
  961. "description": "描述",
  962. "type": "string"
  963. },
  964. "id": {
  965. "description": "id",
  966. "type": "integer",
  967. "format": "int64"
  968. },
  969. "name_cn": {
  970. "description": "中文名字",
  971. "type": "string"
  972. },
  973. "name_en": {
  974. "description": "英文名字",
  975. "type": "string"
  976. },
  977. "reference_value": {
  978. "description": "参考值",
  979. "type": "string"
  980. },
  981. "unit": {
  982. "description": "单位",
  983. "type": "string"
  984. },
  985. "value": {
  986. "description": "检测值",
  987. "type": "string"
  988. },
  989. "value_index": {
  990. "description": "检测值索引",
  991. "type": "string"
  992. }
  993. }
  994. },
  995. "models.AppCheckRecordItemReportVO": {
  996. "title": "AppCheckRecordItemReportVO",
  997. "type": "object",
  998. "properties": {
  999. "check_value_index": {
  1000. "description": "检测值下标",
  1001. "type": "integer",
  1002. "format": "int64"
  1003. },
  1004. "date": {
  1005. "$ref": "#/definitions/models.Time",
  1006. "description": "检测时间"
  1007. },
  1008. "describe": {
  1009. "description": "描述",
  1010. "type": "string"
  1011. },
  1012. "id": {
  1013. "description": "id",
  1014. "type": "integer",
  1015. "format": "int64"
  1016. },
  1017. "unit": {
  1018. "description": "单位",
  1019. "type": "string"
  1020. },
  1021. "value": {
  1022. "description": "检测值",
  1023. "type": "string"
  1024. }
  1025. }
  1026. },
  1027. "models.AppCheckRecordItemVO": {
  1028. "title": "AppCheckRecordItemVO",
  1029. "type": "object",
  1030. "properties": {
  1031. "alert_count": {
  1032. "description": "异常数量",
  1033. "type": "integer",
  1034. "format": "int64"
  1035. },
  1036. "alert_grade": {
  1037. "description": "风险等级 1 低 2 中 3 高",
  1038. "type": "integer",
  1039. "format": "int64"
  1040. },
  1041. "bind": {
  1042. "description": "false 未绑定用户 true 绑定",
  1043. "type": "boolean"
  1044. },
  1045. "check_date": {
  1046. "$ref": "#/definitions/models.Time",
  1047. "description": "检测日期"
  1048. },
  1049. "check_record_id": {
  1050. "description": "检测记录id",
  1051. "type": "integer",
  1052. "format": "int64"
  1053. },
  1054. "describe": {
  1055. "description": "描述",
  1056. "type": "string"
  1057. },
  1058. "items": {
  1059. "description": "检测详情",
  1060. "type": "array",
  1061. "items": {
  1062. "$ref": "#/definitions/models.AppCheckRecordItemDetailsVO"
  1063. }
  1064. },
  1065. "normal_count": {
  1066. "description": "正常数量",
  1067. "type": "integer",
  1068. "format": "int64"
  1069. },
  1070. "status": {
  1071. "description": "设备绑定状态(扫码查看结果时返回):1 未绑定 2设备为他人绑定 3设备为自己绑定",
  1072. "type": "integer",
  1073. "format": "int64"
  1074. },
  1075. "user_id": {
  1076. "description": "绑定用户id 默认自己",
  1077. "type": "integer",
  1078. "format": "int64"
  1079. }
  1080. }
  1081. },
  1082. "models.AppCheckRecordVO": {
  1083. "title": "AppCheckRecordVO",
  1084. "type": "object",
  1085. "properties": {
  1086. "alert_count": {
  1087. "description": "异常数量",
  1088. "type": "integer",
  1089. "format": "int64"
  1090. },
  1091. "alert_items": {
  1092. "description": "异常项",
  1093. "type": "array",
  1094. "items": {
  1095. "type": "string"
  1096. }
  1097. },
  1098. "bind": {
  1099. "description": "0 未绑定用户 1 绑定",
  1100. "type": "integer",
  1101. "format": "int64"
  1102. },
  1103. "check_date": {
  1104. "$ref": "#/definitions/models.Time",
  1105. "description": "检测日期"
  1106. },
  1107. "check_record_id": {
  1108. "description": "检测记录id",
  1109. "type": "integer",
  1110. "format": "int64"
  1111. },
  1112. "describe": {
  1113. "description": "描述",
  1114. "type": "string"
  1115. },
  1116. "normal_count": {
  1117. "description": "正常数量",
  1118. "type": "integer",
  1119. "format": "int64"
  1120. },
  1121. "user_id": {
  1122. "description": "绑定用户id 默认自己",
  1123. "type": "integer",
  1124. "format": "int64"
  1125. },
  1126. "view": {
  1127. "description": "是否查看 1 已查看 0 未查看",
  1128. "type": "integer",
  1129. "format": "int64"
  1130. }
  1131. }
  1132. },
  1133. "models.CheckItem": {
  1134. "title": "CheckItem",
  1135. "type": "object",
  1136. "properties": {
  1137. "check_item_number": {
  1138. "description": "排序",
  1139. "type": "integer",
  1140. "format": "int64"
  1141. },
  1142. "check_type": {
  1143. "description": "检测类型(试纸类型)",
  1144. "type": "string"
  1145. },
  1146. "ctime": {
  1147. "description": "创建时间",
  1148. "type": "string",
  1149. "format": "datetime"
  1150. },
  1151. "delete_flag": {
  1152. "description": "删除标志",
  1153. "type": "integer",
  1154. "format": "int64"
  1155. },
  1156. "details": {
  1157. "description": "描述",
  1158. "type": "string"
  1159. },
  1160. "device_type": {
  1161. "description": "设备类型",
  1162. "type": "string"
  1163. },
  1164. "id": {
  1165. "description": "检测项目ID",
  1166. "type": "integer",
  1167. "format": "int64"
  1168. },
  1169. "language": {
  1170. "description": "cn: 中文 en 英文",
  1171. "type": "string"
  1172. },
  1173. "mtime": {
  1174. "description": "更新时间 ",
  1175. "type": "string",
  1176. "format": "datetime"
  1177. },
  1178. "name_cn": {
  1179. "description": "检测项目中文名",
  1180. "type": "string"
  1181. },
  1182. "name_en": {
  1183. "description": "检测项目英文名",
  1184. "type": "string"
  1185. },
  1186. "reference_value": {
  1187. "description": " 参考值",
  1188. "type": "string"
  1189. },
  1190. "remark": {
  1191. "description": "备注",
  1192. "type": "string"
  1193. },
  1194. "scope_list": {
  1195. "description": "范围value 值,type =1为正常、2及以上为异 常",
  1196. "type": "string"
  1197. },
  1198. "text": {
  1199. "description": "文本",
  1200. "type": "string"
  1201. },
  1202. "unit": {
  1203. "description": "单位",
  1204. "type": "string"
  1205. }
  1206. }
  1207. },
  1208. "models.CheckItemNewsVO": {
  1209. "title": "CheckItemNewsVO",
  1210. "type": "object",
  1211. "properties": {
  1212. "author_id": {
  1213. "description": "新闻作者的ID",
  1214. "type": "integer",
  1215. "format": "int64"
  1216. },
  1217. "collect_count": {
  1218. "description": "收藏数",
  1219. "type": "integer",
  1220. "format": "int64"
  1221. },
  1222. "comment_count": {
  1223. "description": "评论数",
  1224. "type": "integer",
  1225. "format": "int64"
  1226. },
  1227. "content": {
  1228. "description": "新闻正文内容",
  1229. "type": "string"
  1230. },
  1231. "content_images": {
  1232. "description": "存储新闻内容中的图片路径,可能为逗号分隔的字符串或JSON格式",
  1233. "type": "string"
  1234. },
  1235. "create_time": {
  1236. "$ref": "#/definitions/models.Time",
  1237. "description": "创建时间"
  1238. },
  1239. "delete_flag": {
  1240. "description": "删除标记,0表示未删除,1表示已删除",
  1241. "type": "integer",
  1242. "format": "int64"
  1243. },
  1244. "id": {
  1245. "description": "主键,唯一标识每条记录",
  1246. "type": "integer",
  1247. "format": "int64"
  1248. },
  1249. "introduction": {
  1250. "description": "新闻简介或摘要",
  1251. "type": "string"
  1252. },
  1253. "like_count": {
  1254. "description": "点赞数",
  1255. "type": "integer",
  1256. "format": "int64"
  1257. },
  1258. "reading_quantity": {
  1259. "description": "阅读量",
  1260. "type": "integer",
  1261. "format": "int64"
  1262. },
  1263. "sort_in_tag": {
  1264. "description": "在特定标签内的排序规则",
  1265. "type": "string"
  1266. },
  1267. "status": {
  1268. "description": "新闻状态(例如,草稿、已发布等)",
  1269. "type": "integer",
  1270. "format": "int64"
  1271. },
  1272. "style_type": {
  1273. "description": "显示样式类型,可能用于控制前端展示效果",
  1274. "type": "integer",
  1275. "format": "int64"
  1276. },
  1277. "tags": {
  1278. "description": "新闻标签,用以分类或检索",
  1279. "type": "string"
  1280. },
  1281. "title": {
  1282. "description": "新闻标题",
  1283. "type": "string"
  1284. },
  1285. "update_time": {
  1286. "$ref": "#/definitions/models.Time",
  1287. "description": "记录最后更新的时间,自动更新"
  1288. }
  1289. }
  1290. },
  1291. "models.CheckItemScopeVO": {
  1292. "title": "CheckItemScopeVO",
  1293. "type": "object",
  1294. "properties": {
  1295. "index": {
  1296. "type": "integer",
  1297. "format": "int64"
  1298. },
  1299. "num": {
  1300. "type": "string"
  1301. },
  1302. "type": {
  1303. "type": "integer",
  1304. "format": "int64"
  1305. },
  1306. "value": {
  1307. "type": "string"
  1308. }
  1309. }
  1310. },
  1311. "models.Device": {
  1312. "title": "Device",
  1313. "type": "object",
  1314. "properties": {
  1315. "batch_number": {
  1316. "description": "批号",
  1317. "type": "integer",
  1318. "format": "int64"
  1319. },
  1320. "ctime": {
  1321. "description": "创建时间",
  1322. "type": "string",
  1323. "format": "datetime"
  1324. },
  1325. "delete_flag": {
  1326. "description": "删除标志",
  1327. "type": "integer",
  1328. "format": "int64"
  1329. },
  1330. "device_name": {
  1331. "description": "设备名称",
  1332. "type": "string"
  1333. },
  1334. "device_type": {
  1335. "description": "设备类型",
  1336. "type": "string"
  1337. },
  1338. "emq_password": {
  1339. "description": "emq密码",
  1340. "type": "string"
  1341. },
  1342. "id": {
  1343. "description": "设备ID",
  1344. "type": "integer",
  1345. "format": "int64"
  1346. },
  1347. "inform_type": {
  1348. "description": "通知类型:0跳转小程序、1跳转网页 、默认跳转小程序",
  1349. "type": "integer",
  1350. "format": "int64"
  1351. },
  1352. "language": {
  1353. "description": "语言",
  1354. "type": "string"
  1355. },
  1356. "mac": {
  1357. "type": "string"
  1358. },
  1359. "mcu": {
  1360. "type": "string"
  1361. },
  1362. "mcu_type": {
  1363. "description": "MCU芯片类型",
  1364. "type": "string"
  1365. },
  1366. "mtime": {
  1367. "description": "更新时间 ",
  1368. "type": "string",
  1369. "format": "datetime"
  1370. },
  1371. "name": {
  1372. "description": "设备名称",
  1373. "type": "string"
  1374. },
  1375. "number": {
  1376. "description": "序号",
  1377. "type": "integer",
  1378. "format": "int64"
  1379. },
  1380. "oem_company": {
  1381. "description": "厂商(0:自营 1:艾玛OEM)",
  1382. "type": "integer",
  1383. "format": "int64"
  1384. },
  1385. "org_id": {
  1386. "description": "所属机构",
  1387. "type": "integer",
  1388. "format": "int64"
  1389. },
  1390. "paper_check": {
  1391. "description": "试纸检查状态",
  1392. "type": "integer",
  1393. "format": "int64"
  1394. },
  1395. "production_date_number": {
  1396. "description": "生产日期",
  1397. "type": "integer",
  1398. "format": "int64"
  1399. },
  1400. "qr_code": {
  1401. "type": "string"
  1402. },
  1403. "sensor_mode": {
  1404. "description": "传感放大倍数",
  1405. "type": "string"
  1406. },
  1407. "serialno": {
  1408. "description": "设备编号",
  1409. "type": "string"
  1410. },
  1411. "status": {
  1412. "description": "状态(0:未分配 1:已分配 2:包装中 3:待出厂 6:废弃 99:已出厂 100:销售中 101:已售出)",
  1413. "type": "integer",
  1414. "format": "int64"
  1415. },
  1416. "ver": {
  1417. "description": "软件版本",
  1418. "type": "string"
  1419. },
  1420. "wifi_ver": {
  1421. "description": "WIFI版本",
  1422. "type": "string"
  1423. }
  1424. }
  1425. },
  1426. "models.DicResp": {
  1427. "title": "DicResp",
  1428. "type": "object",
  1429. "properties": {
  1430. "name": {
  1431. "description": "字典名称",
  1432. "type": "string"
  1433. },
  1434. "type": {
  1435. "type": "string"
  1436. },
  1437. "value": {
  1438. "description": "字典值",
  1439. "type": "integer",
  1440. "format": "int64"
  1441. },
  1442. "value_str": {
  1443. "description": "字典字符串值",
  1444. "type": "string"
  1445. }
  1446. }
  1447. },
  1448. "models.HealthProfileResp": {
  1449. "title": "HealthProfileResp",
  1450. "type": "object",
  1451. "properties": {
  1452. "birthday": {
  1453. "$ref": "#/definitions/models.Time",
  1454. "description": "生日"
  1455. },
  1456. "blood_type": {
  1457. "description": "血型",
  1458. "type": "string"
  1459. },
  1460. "creatine_time": {
  1461. "$ref": "#/definitions/models.Time",
  1462. "description": "肌酐检测时间"
  1463. },
  1464. "creatinine": {
  1465. "description": "血肌酐",
  1466. "type": "number",
  1467. "format": "double"
  1468. },
  1469. "creatinine_unit": {
  1470. "description": "肌酐单位(umol/L,mg/dl)",
  1471. "type": "string"
  1472. },
  1473. "ctime": {
  1474. "$ref": "#/definitions/models.Time",
  1475. "description": "创建时间"
  1476. },
  1477. "gender": {
  1478. "description": "性别(0:未知 1:男 2:女)",
  1479. "type": "integer",
  1480. "format": "int64"
  1481. },
  1482. "height": {
  1483. "description": "身高",
  1484. "type": "integer",
  1485. "format": "int64"
  1486. },
  1487. "id": {
  1488. "description": "Primary Key ID",
  1489. "type": "integer",
  1490. "format": "int64"
  1491. },
  1492. "illness_state": {
  1493. "description": "病情",
  1494. "type": "string"
  1495. },
  1496. "mtime": {
  1497. "$ref": "#/definitions/models.Time",
  1498. "description": "更新时间 "
  1499. },
  1500. "renal_function_status": {
  1501. "description": "肾功能情况(0:未透析,1: 血液透析,2:腹膜透析,3:肾脏移植)",
  1502. "type": "integer",
  1503. "format": "int64"
  1504. },
  1505. "status": {
  1506. "description": "状态(1:有效 0:无效 )",
  1507. "type": "integer",
  1508. "format": "int64"
  1509. },
  1510. "urine_protein": {
  1511. "description": "尿蛋白",
  1512. "type": "number",
  1513. "format": "double"
  1514. },
  1515. "urine_protein_24h": {
  1516. "description": "24小时尿蛋白",
  1517. "type": "number",
  1518. "format": "double"
  1519. },
  1520. "urine_protein_24h_time": {
  1521. "$ref": "#/definitions/models.Time",
  1522. "description": "24小时尿蛋白检测时间"
  1523. },
  1524. "urine_protein_24h_unit": {
  1525. "description": "24小时尿蛋白单位(g/24h,mg/24h)",
  1526. "type": "string"
  1527. },
  1528. "urine_protein_time": {
  1529. "$ref": "#/definitions/models.Time",
  1530. "description": "尿蛋白检测时间"
  1531. },
  1532. "urine_protein_unit": {
  1533. "description": "尿蛋白单位(g,mg)",
  1534. "type": "string"
  1535. },
  1536. "weight": {
  1537. "description": "体重",
  1538. "type": "number",
  1539. "format": "double"
  1540. }
  1541. }
  1542. },
  1543. "models.SaveHealthProfileReq": {
  1544. "title": "SaveHealthProfileReq",
  1545. "type": "object",
  1546. "properties": {
  1547. "birthday": {
  1548. "description": "生日 yyyy-MM-dd HH:mm:ss",
  1549. "type": "string"
  1550. },
  1551. "blood_type": {
  1552. "description": "血型",
  1553. "type": "string"
  1554. },
  1555. "creatine_time": {
  1556. "description": "肌酐检测时间 yyyy-MM-dd HH:mm:ss",
  1557. "type": "string"
  1558. },
  1559. "creatinine": {
  1560. "description": "血肌酐",
  1561. "type": "number",
  1562. "format": "double"
  1563. },
  1564. "creatinine_unit": {
  1565. "description": "肌酐单位(umol/L,mg/dl)",
  1566. "type": "string"
  1567. },
  1568. "gender": {
  1569. "description": "性别(0:未知 1:男 2:女)",
  1570. "type": "integer",
  1571. "format": "int64"
  1572. },
  1573. "height": {
  1574. "description": "身高",
  1575. "type": "integer",
  1576. "format": "int64"
  1577. },
  1578. "illness_state": {
  1579. "description": "病情",
  1580. "type": "string"
  1581. },
  1582. "renal_function_status": {
  1583. "description": "肾功能情况(0:未透析,1: 血液透析,2:腹膜透析,3:肾脏移植)",
  1584. "type": "integer",
  1585. "format": "int64"
  1586. },
  1587. "urine_protein": {
  1588. "description": "尿蛋白",
  1589. "type": "number",
  1590. "format": "double"
  1591. },
  1592. "urine_protein_24h": {
  1593. "description": "24小时尿蛋白",
  1594. "type": "number",
  1595. "format": "double"
  1596. },
  1597. "urine_protein_24h_time": {
  1598. "description": "24小时尿蛋白检测时间 yyyy-MM-dd HH:mm:ss",
  1599. "type": "string"
  1600. },
  1601. "urine_protein_24h_unit": {
  1602. "description": "24小时尿蛋白单位(g/24h,mg/24h)",
  1603. "type": "string"
  1604. },
  1605. "urine_protein_time": {
  1606. "description": "尿蛋白检测时间 yyyy-MM-dd HH:mm:ss",
  1607. "type": "string"
  1608. },
  1609. "urine_protein_unit": {
  1610. "description": "尿蛋白单位(g,mg)",
  1611. "type": "string"
  1612. },
  1613. "weight": {
  1614. "description": "体重",
  1615. "type": "number",
  1616. "format": "double"
  1617. }
  1618. }
  1619. },
  1620. "models.SaveUserInfoReq": {
  1621. "title": "SaveUserInfoReq",
  1622. "type": "object",
  1623. "properties": {
  1624. "avatar": {
  1625. "description": "头像",
  1626. "type": "string"
  1627. },
  1628. "email": {
  1629. "description": "邮件",
  1630. "type": "string"
  1631. },
  1632. "id_card": {
  1633. "description": "身份证号",
  1634. "type": "string"
  1635. },
  1636. "inpatient_reg_phone": {
  1637. "description": "住院登记手机号",
  1638. "type": "string"
  1639. },
  1640. "nick_name": {
  1641. "description": "昵称",
  1642. "type": "string"
  1643. },
  1644. "phone": {
  1645. "description": "手机号码",
  1646. "type": "string"
  1647. },
  1648. "real_name": {
  1649. "description": "真实姓名",
  1650. "type": "string"
  1651. },
  1652. "verify_code": {
  1653. "description": "手机验证码",
  1654. "type": "string"
  1655. }
  1656. }
  1657. },
  1658. "models.SyhArticlesMenu": {
  1659. "title": "SyhArticlesMenu",
  1660. "type": "object",
  1661. "properties": {
  1662. "id": {
  1663. "description": "自增主键ID",
  1664. "type": "integer",
  1665. "format": "int32"
  1666. },
  1667. "img": {
  1668. "description": "图片",
  1669. "type": "string"
  1670. },
  1671. "name": {
  1672. "description": "分类名",
  1673. "type": "string"
  1674. },
  1675. "order": {
  1676. "description": "排序",
  1677. "type": "integer",
  1678. "format": "int32"
  1679. },
  1680. "status": {
  1681. "description": "状态",
  1682. "type": "integer",
  1683. "format": "int32"
  1684. },
  1685. "summary": {
  1686. "description": "介绍",
  1687. "type": "string"
  1688. },
  1689. "type": {
  1690. "description": "分类类型",
  1691. "type": "integer",
  1692. "format": "int32"
  1693. }
  1694. }
  1695. },
  1696. "models.SyhArticlesVO": {
  1697. "title": "SyhArticlesVO",
  1698. "type": "object",
  1699. "properties": {
  1700. "article_type": {
  1701. "description": "文章类型",
  1702. "type": "integer",
  1703. "format": "int32"
  1704. },
  1705. "author": {
  1706. "description": "作者",
  1707. "type": "string"
  1708. },
  1709. "class_id": {
  1710. "description": "主分类",
  1711. "type": "integer",
  1712. "format": "int32"
  1713. },
  1714. "comment_num": {
  1715. "description": "评论数",
  1716. "type": "integer",
  1717. "format": "int32"
  1718. },
  1719. "content": {
  1720. "description": "内容",
  1721. "type": "string"
  1722. },
  1723. "ctime": {
  1724. "$ref": "#/definitions/models.Time",
  1725. "description": "创建时间"
  1726. },
  1727. "from_id": {
  1728. "description": "医生/机构ID",
  1729. "type": "integer",
  1730. "format": "int32"
  1731. },
  1732. "id": {
  1733. "description": "自增主键ID",
  1734. "type": "integer",
  1735. "format": "int32"
  1736. },
  1737. "img": {
  1738. "description": "图片",
  1739. "type": "string"
  1740. },
  1741. "is_del": {
  1742. "description": "是否删除",
  1743. "type": "integer",
  1744. "format": "int32"
  1745. },
  1746. "menu_id": {
  1747. "description": "辅分类",
  1748. "type": "integer",
  1749. "format": "int32"
  1750. },
  1751. "new_time": {
  1752. "$ref": "#/definitions/models.Time",
  1753. "description": "新建时间"
  1754. },
  1755. "num": {
  1756. "description": "点击次数",
  1757. "type": "integer",
  1758. "format": "int32"
  1759. },
  1760. "org_id": {
  1761. "description": "orgId",
  1762. "type": "integer",
  1763. "format": "int32"
  1764. },
  1765. "reason": {
  1766. "description": "原因",
  1767. "type": "string"
  1768. },
  1769. "star_num": {
  1770. "description": "点赞数",
  1771. "type": "integer",
  1772. "format": "int32"
  1773. },
  1774. "status": {
  1775. "description": "状态 0正在审核,1通过,2未通过,3草稿,4通过且大图显示视频",
  1776. "type": "integer",
  1777. "format": "int32"
  1778. },
  1779. "summary": {
  1780. "description": "简介",
  1781. "type": "string"
  1782. },
  1783. "t_module": {
  1784. "description": "模块",
  1785. "type": "string"
  1786. },
  1787. "tags": {
  1788. "description": "标签",
  1789. "type": "string"
  1790. },
  1791. "title": {
  1792. "description": "标题",
  1793. "type": "string"
  1794. },
  1795. "type": {
  1796. "description": "类型'0系统1医生2机构",
  1797. "type": "integer",
  1798. "format": "int32"
  1799. }
  1800. }
  1801. },
  1802. "models.SysAdmin": {
  1803. "title": "SysAdmin",
  1804. "type": "object",
  1805. "properties": {
  1806. "avatar": {
  1807. "description": "头像地址",
  1808. "type": "string"
  1809. },
  1810. "ctime": {
  1811. "description": "创建时间",
  1812. "type": "string",
  1813. "format": "datetime"
  1814. },
  1815. "del_flag": {
  1816. "description": "删除标志(0代表存在 2代表删除)",
  1817. "type": "string"
  1818. },
  1819. "dept_id": {
  1820. "description": "部门ID",
  1821. "type": "integer",
  1822. "format": "int64"
  1823. },
  1824. "email": {
  1825. "description": "用户邮箱",
  1826. "type": "string"
  1827. },
  1828. "id": {
  1829. "description": "用户ID",
  1830. "type": "integer",
  1831. "format": "int64"
  1832. },
  1833. "login_date": {
  1834. "description": "最后登录时间",
  1835. "type": "string",
  1836. "format": "datetime"
  1837. },
  1838. "login_ip": {
  1839. "description": "最后登录IP",
  1840. "type": "string"
  1841. },
  1842. "mtime": {
  1843. "description": "更新时间",
  1844. "type": "string",
  1845. "format": "datetime"
  1846. },
  1847. "nick_name": {
  1848. "description": "用户昵称",
  1849. "type": "string"
  1850. },
  1851. "password": {
  1852. "description": "密码",
  1853. "type": "string"
  1854. },
  1855. "phonenumber": {
  1856. "description": "手机号码",
  1857. "type": "string"
  1858. },
  1859. "remark": {
  1860. "description": "备注",
  1861. "type": "string"
  1862. },
  1863. "sex": {
  1864. "description": "用户性别(0男 1女 2未知)",
  1865. "type": "string"
  1866. },
  1867. "status": {
  1868. "description": "帐号状态(0正常 1停用)",
  1869. "type": "string"
  1870. },
  1871. "user_name": {
  1872. "description": "用户账号",
  1873. "type": "string"
  1874. },
  1875. "user_type": {
  1876. "description": "用户类型(00系统用户)",
  1877. "type": "string"
  1878. }
  1879. }
  1880. },
  1881. "models.Time": {
  1882. "title": "Time",
  1883. "type": "object"
  1884. },
  1885. "models.UserInfoResp": {
  1886. "title": "UserInfoResp",
  1887. "type": "object",
  1888. "properties": {
  1889. "avatar": {
  1890. "description": "头像",
  1891. "type": "string"
  1892. },
  1893. "ctime": {
  1894. "$ref": "#/definitions/models.Time",
  1895. "description": "创建时间"
  1896. },
  1897. "dialysis_no": {
  1898. "description": " 透析号",
  1899. "type": "string"
  1900. },
  1901. "email": {
  1902. "description": "邮件",
  1903. "type": "string"
  1904. },
  1905. "health_care_no": {
  1906. "description": " 医保号",
  1907. "type": "string"
  1908. },
  1909. "id": {
  1910. "description": "Primary Key ID",
  1911. "type": "integer",
  1912. "format": "int64"
  1913. },
  1914. "id_card": {
  1915. "description": "身份证号",
  1916. "type": "string"
  1917. },
  1918. "inpatient_reg_phone": {
  1919. "description": "住院登记手机号",
  1920. "type": "string"
  1921. },
  1922. "mtime": {
  1923. "$ref": "#/definitions/models.Time",
  1924. "description": "更新时间 "
  1925. },
  1926. "nick_name": {
  1927. "description": "昵称",
  1928. "type": "string"
  1929. },
  1930. "open_id": {
  1931. "description": "OpenID",
  1932. "type": "string"
  1933. },
  1934. "patient_id": {
  1935. "type": "integer",
  1936. "format": "int64"
  1937. },
  1938. "phone": {
  1939. "description": "手机号码",
  1940. "type": "string"
  1941. },
  1942. "privacy_protocol_versions": {
  1943. "description": "隐私政策版本",
  1944. "type": "integer",
  1945. "format": "int64"
  1946. },
  1947. "real_name": {
  1948. "description": "真实姓名",
  1949. "type": "string"
  1950. },
  1951. "source": {
  1952. "description": "用户来源",
  1953. "type": "string"
  1954. },
  1955. "status": {
  1956. "description": "状态(1:有效0:无效)",
  1957. "type": "integer",
  1958. "format": "int64"
  1959. },
  1960. "union_id": {
  1961. "description": "unionid",
  1962. "type": "string"
  1963. },
  1964. "user_org_id": {
  1965. "type": "integer",
  1966. "format": "int64"
  1967. }
  1968. }
  1969. },
  1970. "models.WxXcxLoginReq": {
  1971. "title": "WxXcxLoginReq",
  1972. "type": "object",
  1973. "properties": {
  1974. "code": {
  1975. "type": "string"
  1976. }
  1977. }
  1978. },
  1979. "models.WxXcxLoginResp": {
  1980. "title": "WxXcxLoginResp",
  1981. "type": "object",
  1982. "properties": {
  1983. "openid": {
  1984. "type": "string"
  1985. },
  1986. "patient_id": {
  1987. "type": "integer",
  1988. "format": "int64"
  1989. },
  1990. "token": {
  1991. "type": "string"
  1992. },
  1993. "user_org_id": {
  1994. "type": "integer",
  1995. "format": "int64"
  1996. }
  1997. }
  1998. },
  1999. "models.XcxUser": {
  2000. "title": "XcxUser",
  2001. "type": "object",
  2002. "properties": {
  2003. "avatar": {
  2004. "description": "头像",
  2005. "type": "string"
  2006. },
  2007. "ctime": {
  2008. "description": "创建时间",
  2009. "type": "string",
  2010. "format": "datetime"
  2011. },
  2012. "email": {
  2013. "description": "邮件",
  2014. "type": "string"
  2015. },
  2016. "id": {
  2017. "description": "Primary Key ID",
  2018. "type": "integer",
  2019. "format": "int64"
  2020. },
  2021. "mtime": {
  2022. "description": "更新时间 ",
  2023. "type": "string",
  2024. "format": "datetime"
  2025. },
  2026. "nick_name": {
  2027. "description": "昵称",
  2028. "type": "string"
  2029. },
  2030. "open_id": {
  2031. "description": "OpenID",
  2032. "type": "string"
  2033. },
  2034. "patient_id": {
  2035. "type": "integer",
  2036. "format": "int64"
  2037. },
  2038. "phone": {
  2039. "description": "手机号码",
  2040. "type": "string"
  2041. },
  2042. "privacy_protocol_versions": {
  2043. "description": "隐私政策版本",
  2044. "type": "integer",
  2045. "format": "int64"
  2046. },
  2047. "role_type": {
  2048. "description": "角色类型 0或空:普通 1:管理员 2:测试",
  2049. "type": "integer",
  2050. "format": "int64"
  2051. },
  2052. "session_key": {
  2053. "type": "string"
  2054. },
  2055. "source": {
  2056. "description": "用户来源",
  2057. "type": "string"
  2058. },
  2059. "status": {
  2060. "description": "状态(1:有效 0: 无效)",
  2061. "type": "integer",
  2062. "format": "int64"
  2063. },
  2064. "union_id": {
  2065. "description": "unionid",
  2066. "type": "string"
  2067. },
  2068. "user_org_id": {
  2069. "type": "integer",
  2070. "format": "int64"
  2071. }
  2072. }
  2073. }
  2074. },
  2075. "securityDefinitions": {
  2076. "token": {
  2077. "type": "apiKey",
  2078. "name": "Authorization",
  2079. "in": "header"
  2080. }
  2081. }
  2082. }