123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082 |
- {
- "swagger": "2.0",
- "info": {
- "title": "sws xcx api doc",
- "description": "圣卫士小程序API接口文档\n",
- "version": "1.0.0",
- "contact": {},
- "license": {
- "name": "领透科技"
- }
- },
- "basePath": "/xcx",
- "paths": {
- "/api/admin/getdevicedetail": {
- "get": {
- "tags": [
- "api/admin"
- ],
- "description": "根据设备ID获取设备详细信息\n\u003cbr\u003e",
- "operationId": "DeviceApiController.GetDeviceDetail",
- "parameters": [
- {
- "in": "query",
- "name": "deviceid",
- "description": "设备ID",
- "required": true,
- "type": "integer",
- "format": "int64"
- }
- ],
- "responses": {
- "200": {
- "description": "success",
- "schema": {
- "$ref": "#/definitions/models.Device"
- }
- },
- "500": {
- "description": "error"
- }
- },
- "security": [
- {
- "token": []
- }
- ]
- }
- },
- "/api/admin/getdevicelist": {
- "get": {
- "tags": [
- "api/admin"
- ],
- "description": "获取设备列表\n\u003cbr\u003e",
- "operationId": "DeviceApiController.GetDeviceList",
- "parameters": [
- {
- "in": "query",
- "name": "pageNum",
- "description": "当前页(从1开始)",
- "required": true,
- "type": "integer",
- "format": "int64"
- },
- {
- "in": "query",
- "name": "pageSize",
- "description": "分页大小",
- "required": true,
- "type": "integer",
- "format": "int64"
- },
- {
- "in": "query",
- "name": "deviceType",
- "description": "设备类型",
- "type": "string"
- }
- ],
- "responses": {
- "200": {
- "description": "success",
- "schema": {
- "type": "array",
- "items": {
- "$ref": "#/definitions/models.Device"
- }
- }
- },
- "500": {
- "description": "error"
- }
- }
- }
- },
- "/api/admin/login": {
- "post": {
- "tags": [
- "api/admin"
- ],
- "description": "管理员登录\n\u003cbr\u003e",
- "operationId": "LoginApiController.Admin Login",
- "parameters": [
- {
- "in": "body",
- "name": "body",
- "description": "用户登录参数",
- "required": true,
- "schema": {
- "$ref": "#/definitions/models.AdminLoginReq"
- }
- }
- ],
- "responses": {
- "200": {
- "description": "",
- "schema": {
- "$ref": "#/definitions/models.SysAdmin"
- }
- },
- "500": {
- "description": "error"
- }
- }
- }
- },
- "/api/article/getarticlebyid": {
- "get": {
- "tags": [
- "api/article"
- ],
- "description": "获取文章详情\n\u003cbr\u003e",
- "operationId": "ArticleApiController.GetArticleByID",
- "parameters": [
- {
- "in": "query",
- "name": "id",
- "description": "文章id",
- "required": true,
- "type": "integer",
- "format": "int64"
- }
- ],
- "responses": {
- "200": {
- "description": "success",
- "schema": {
- "$ref": "#/definitions/models.SyhArticlesVO"
- }
- },
- "500": {
- "description": "error"
- }
- }
- }
- },
- "/api/article/getarticlelist": {
- "get": {
- "tags": [
- "api/article"
- ],
- "description": "获取文章列表\n\u003cbr\u003e",
- "operationId": "ArticleApiController.GetArticleList",
- "parameters": [
- {
- "in": "query",
- "name": "pageNum",
- "description": "当前页(从1开始)",
- "required": true,
- "type": "integer",
- "format": "int64"
- },
- {
- "in": "query",
- "name": "pageSize",
- "description": "分页大小",
- "required": true,
- "type": "integer",
- "format": "int64"
- },
- {
- "in": "query",
- "name": "menuid",
- "description": "分类ID",
- "type": "integer",
- "format": "int64"
- },
- {
- "in": "query",
- "name": "keyword",
- "description": "搜索关键字",
- "type": "string"
- }
- ],
- "responses": {
- "200": {
- "description": "success",
- "schema": {
- "type": "array",
- "items": {
- "$ref": "#/definitions/models.SyhArticlesVO"
- }
- }
- },
- "500": {
- "description": "error"
- }
- }
- }
- },
- "/api/article/getarticlemenu": {
- "get": {
- "tags": [
- "api/article"
- ],
- "description": "获取文章分类\n\u003cbr\u003e",
- "operationId": "ArticleApiController.GetArticleMenu",
- "parameters": [
- {
- "in": "query",
- "name": "type",
- "description": "类型:0全部1主2辅",
- "required": true,
- "type": "integer",
- "format": "int64"
- }
- ],
- "responses": {
- "200": {
- "description": "success",
- "schema": {
- "type": "array",
- "items": {
- "$ref": "#/definitions/models.SyhArticlesMenu"
- }
- }
- },
- "500": {
- "description": "error"
- }
- }
- }
- },
- "/api/article/getcheckitemnews": {
- "get": {
- "tags": [
- "api/article"
- ],
- "description": "获取检测项目说明\n\u003cbr\u003e",
- "operationId": "ArticleApiController.GetCheckItemNews",
- "responses": {
- "200": {
- "description": "success",
- "schema": {
- "type": "array",
- "items": {
- "$ref": "#/definitions/models.CheckItemNewsVO"
- }
- }
- },
- "500": {
- "description": "error"
- }
- }
- }
- },
- "/api/article/getramdonarticlelist": {
- "get": {
- "tags": [
- "api/article"
- ],
- "description": "获取随机文章列表\n\u003cbr\u003e",
- "operationId": "ArticleApiController.GetRamdonArticleList",
- "parameters": [
- {
- "in": "query",
- "name": "limit",
- "description": "文章数量",
- "required": true,
- "type": "integer",
- "format": "int64"
- }
- ],
- "responses": {
- "200": {
- "description": "success",
- "schema": {
- "type": "array",
- "items": {
- "$ref": "#/definitions/models.SyhArticlesVO"
- }
- }
- },
- "500": {
- "description": "error"
- }
- }
- }
- },
- "/api/checkrecord/getcheckrecorditembyid": {
- "get": {
- "tags": [
- "api/checkrecord"
- ],
- "description": "通过检测ID查看检测结果\n\u003cbr\u003e",
- "operationId": "CheckRecordApiController.GetCheckRecordItemById",
- "parameters": [
- {
- "in": "query",
- "name": "checkid",
- "description": "检测ID",
- "required": true,
- "type": "integer",
- "format": "int64"
- }
- ],
- "responses": {
- "200": {
- "description": "success",
- "schema": {
- "$ref": "#/definitions/models.AppCheckRecordItemVO"
- }
- },
- "500": {
- "description": "error"
- }
- },
- "security": [
- {
- "token": []
- }
- ]
- }
- },
- "/api/checkrecord/getcheckrecorditemreport": {
- "get": {
- "tags": [
- "api/checkrecord"
- ],
- "description": "获取检测报告\n\u003cbr\u003e",
- "operationId": "CheckRecordApiController.GetCheckRecordItemReport",
- "parameters": [
- {
- "in": "query",
- "name": "itemnum",
- "description": "项目编号",
- "required": true,
- "type": "integer",
- "format": "int64"
- },
- {
- "in": "query",
- "name": "daymun",
- "description": "最近几天",
- "required": true,
- "type": "integer",
- "format": "int64"
- }
- ],
- "responses": {
- "200": {
- "description": "success",
- "schema": {
- "type": "array",
- "items": {
- "$ref": "#/definitions/models.AppCheckRecordItemReportVO"
- }
- }
- },
- "500": {
- "description": "error"
- }
- },
- "security": [
- {
- "token": []
- }
- ]
- }
- },
- "/api/checkrecord/getcheckrecordlist": {
- "get": {
- "tags": [
- "api/checkrecord"
- ],
- "description": "分页获取检测记录\n\u003cbr\u003e",
- "operationId": "CheckRecordApiController.GetCheckRecordList",
- "parameters": [
- {
- "in": "query",
- "name": "pageNum",
- "description": "当前页(从1开始)",
- "required": true,
- "type": "integer",
- "format": "int64"
- },
- {
- "in": "query",
- "name": "pageSize",
- "description": "分页大小",
- "required": true,
- "type": "integer",
- "format": "int64"
- }
- ],
- "responses": {
- "200": {
- "description": "success",
- "schema": {
- "type": "array",
- "items": {
- "$ref": "#/definitions/models.AppCheckRecordVO"
- }
- }
- },
- "500": {
- "description": "error"
- }
- },
- "security": [
- {
- "token": []
- }
- ]
- }
- },
- "/api/checkrecord/qrcodecheckrecord": {
- "get": {
- "tags": [
- "api/checkrecord"
- ],
- "description": "通过扫描二维码查看检测结果\n\u003cbr\u003e",
- "operationId": "CheckRecordApiController.QrCodeCheckRecord",
- "parameters": [
- {
- "in": "query",
- "name": "qrcode",
- "description": "扫描二维码的内容",
- "required": true,
- "type": "integer",
- "format": "int64"
- }
- ],
- "responses": {
- "200": {
- "description": "success",
- "schema": {
- "$ref": "#/definitions/models.AppCheckRecordItemVO"
- }
- },
- "500": {
- "description": "error"
- }
- },
- "security": [
- {
- "token": []
- }
- ]
- }
- },
- "/api/device/binddevice": {
- "post": {
- "tags": [
- "api/device"
- ],
- "description": "通过扫码绑定设备\n\u003cbr\u003e",
- "operationId": "DeviceApiController.BindDevice",
- "parameters": [
- {
- "in": "query",
- "name": "qrcode",
- "description": "设备二维码",
- "required": true,
- "type": "string"
- }
- ],
- "responses": {
- "200": {
- "description": "success"
- },
- "500": {
- "description": "error"
- }
- },
- "security": [
- {
- "token": []
- }
- ]
- }
- },
- "/api/device/binddevicebyid": {
- "post": {
- "tags": [
- "api/device"
- ],
- "description": "通过设备ID绑定设备\n\u003cbr\u003e",
- "operationId": "DeviceApiController.BindDevice",
- "parameters": [
- {
- "in": "query",
- "name": "deviceId",
- "description": "设备ID",
- "required": true,
- "type": "string"
- }
- ],
- "responses": {
- "200": {
- "description": "success"
- },
- "500": {
- "description": "error"
- }
- },
- "security": [
- {
- "token": []
- }
- ]
- }
- },
- "/api/device/getdevicedetail": {
- "get": {
- "tags": [
- "api/device"
- ],
- "description": "根据设备ID获取设备详细信息\n\u003cbr\u003e",
- "operationId": "DeviceApiController.GetDeviceDetail",
- "parameters": [
- {
- "in": "query",
- "name": "deviceid",
- "description": "设备ID",
- "required": true,
- "type": "integer",
- "format": "int64"
- }
- ],
- "responses": {
- "200": {
- "description": "success",
- "schema": {
- "$ref": "#/definitions/models.Device"
- }
- },
- "500": {
- "description": "error"
- }
- },
- "security": [
- {
- "token": []
- }
- ]
- }
- },
- "/api/device/getmydevices": {
- "get": {
- "tags": [
- "api/device"
- ],
- "description": "获取绑定的设备列表\n\u003cbr\u003e",
- "operationId": "DeviceApiController.GetMyDevices",
- "responses": {
- "200": {
- "description": "success",
- "schema": {
- "type": "array",
- "items": {
- "$ref": "#/definitions/models.Device"
- }
- }
- },
- "500": {
- "description": "error"
- }
- },
- "security": [
- {
- "token": []
- }
- ]
- }
- },
- "/api/device/unbinddevice": {
- "post": {
- "tags": [
- "api/device"
- ],
- "description": "解绑设备\n\u003cbr\u003e",
- "operationId": "DeviceApiController.UnBindDevice",
- "parameters": [
- {
- "in": "query",
- "name": "deviceid",
- "description": "设备ID",
- "required": true,
- "type": "integer",
- "format": "int64"
- }
- ],
- "responses": {
- "200": {
- "description": "success"
- },
- "500": {
- "description": "error"
- }
- },
- "security": [
- {
- "token": []
- }
- ]
- }
- },
- "/api/sysdic/getcheckitems": {
- "get": {
- "tags": [
- "api/sysdic"
- ],
- "description": "获取检测项目列表\n\u003cbr\u003e",
- "operationId": "SysDicApiController.GetCheckItems",
- "responses": {
- "200": {
- "description": "success",
- "schema": {
- "type": "array",
- "items": {
- "$ref": "#/definitions/models.CheckItem"
- }
- }
- },
- "500": {
- "description": "error"
- }
- }
- }
- },
- "/api/sysdic/getdevicetypes": {
- "get": {
- "tags": [
- "api/sysdic"
- ],
- "description": "获取设备类型列表\n\u003cbr\u003e",
- "operationId": "SysDicApiController.GetDeviceTypes",
- "responses": {
- "200": {
- "description": "success",
- "schema": {
- "type": "array",
- "items": {
- "$ref": "#/definitions/models.DicResp"
- }
- }
- },
- "500": {
- "description": "error"
- }
- }
- }
- },
- "/api/sysdic/getillness": {
- "get": {
- "tags": [
- "api/sysdic"
- ],
- "description": "获取病情字典\n\u003cbr\u003e",
- "operationId": "SysDicApiController.GetIllness",
- "responses": {
- "200": {
- "description": "success",
- "schema": {
- "type": "array",
- "items": {
- "$ref": "#/definitions/models.DicResp"
- }
- }
- },
- "500": {
- "description": "error"
- }
- }
- }
- },
- "/api/sysdic/getrenalstatus": {
- "get": {
- "tags": [
- "api/sysdic"
- ],
- "description": "获取肾功能情况列表\n\u003cbr\u003e",
- "operationId": "SysDicApiController.GetRenalStatus",
- "responses": {
- "200": {
- "description": "success",
- "schema": {
- "type": "array",
- "items": {
- "$ref": "#/definitions/models.DicResp"
- }
- }
- },
- "500": {
- "description": "error"
- }
- }
- }
- },
- "/api/user/gethealthprofile": {
- "get": {
- "tags": [
- "api/user"
- ],
- "description": "获取健康档案\n\u003cbr\u003e",
- "operationId": "UserApiController.GetHealthProfile",
- "responses": {
- "200": {
- "description": "success",
- "schema": {
- "$ref": "#/definitions/models.HealthProfileResp"
- }
- },
- "500": {
- "description": "error"
- }
- },
- "security": [
- {
- "token": []
- }
- ]
- }
- },
- "/api/user/getuserinfo": {
- "get": {
- "tags": [
- "api/user"
- ],
- "description": "获取个人中心信息\n\u003cbr\u003e",
- "operationId": "UserApiController.GetUserInfo",
- "responses": {
- "200": {
- "description": "success",
- "schema": {
- "$ref": "#/definitions/models.UserInfoResp"
- }
- },
- "500": {
- "description": "error"
- }
- },
- "security": [
- {
- "token": []
- }
- ]
- }
- },
- "/api/user/login": {
- "post": {
- "tags": [
- "api/user"
- ],
- "description": "微信小程序登录\n\u003cbr\u003e",
- "operationId": "LoginApiController.WxXcxLogin",
- "parameters": [
- {
- "in": "body",
- "name": "body",
- "description": "小程序登录code",
- "required": true,
- "schema": {
- "$ref": "#/definitions/models.WxXcxLoginReq"
- }
- }
- ],
- "responses": {
- "200": {
- "description": "",
- "schema": {
- "$ref": "#/definitions/models.WxXcxLoginResp"
- }
- },
- "500": {
- "description": "error"
- }
- }
- }
- },
- "/api/user/loginbyopenid": {
- "post": {
- "tags": [
- "api/user"
- ],
- "description": "微信小程序登录\n\u003cbr\u003e",
- "operationId": "LoginApiController.LoginByOpenId",
- "parameters": [
- {
- "in": "body",
- "name": "body",
- "description": "小程序登录openid",
- "required": true,
- "schema": {
- "$ref": "#/definitions/models.WxXcxLoginReq"
- }
- }
- ],
- "responses": {
- "200": {
- "description": "",
- "schema": {
- "$ref": "#/definitions/models.WxXcxLoginResp"
- }
- },
- "500": {
- "description": "error"
- }
- }
- }
- },
- "/api/user/savehealthprofile": {
- "post": {
- "tags": [
- "api/user"
- ],
- "description": "保存健康档案\n\u003cbr\u003e",
- "operationId": "UserApiController.SaveHealthProfile",
- "parameters": [
- {
- "in": "body",
- "name": "body",
- "description": "小程序登录请求参数",
- "required": true,
- "schema": {
- "$ref": "#/definitions/models.SaveHealthProfileReq"
- }
- }
- ],
- "responses": {
- "200": {
- "description": "success"
- },
- "500": {
- "description": "error"
- }
- },
- "security": [
- {
- "token": []
- }
- ]
- }
- },
- "/api/user/saveuserinfo": {
- "post": {
- "tags": [
- "api/user"
- ],
- "description": "个人中心保存用户信息和透析病友信息\n\u003cbr\u003e",
- "operationId": "UserApiController.SaveUserInfo",
- "parameters": [
- {
- "in": "body",
- "name": "body",
- "description": "小程序登录请求参数",
- "required": true,
- "schema": {
- "$ref": "#/definitions/models.SaveUserInfoReq"
- }
- }
- ],
- "responses": {
- "200": {
- "description": "success"
- },
- "500": {
- "description": "error"
- }
- },
- "security": [
- {
- "token": []
- }
- ]
- }
- },
- "/api/user/updatephonebycode": {
- "post": {
- "tags": [
- "api/user"
- ],
- "description": "获取小程序绑定的手机号码并更新到用户信息\n\u003cbr\u003e",
- "operationId": "UserApiController.UpdatePhoneByCode",
- "parameters": [
- {
- "in": "body",
- "name": "body",
- "description": "小程序登录请求参数",
- "required": true,
- "schema": {
- "$ref": "#/definitions/models.WxXcxLoginReq"
- }
- }
- ],
- "responses": {
- "200": {
- "description": "success",
- "schema": {
- "$ref": "#/definitions/models.XcxUser"
- }
- },
- "500": {
- "description": "error"
- }
- },
- "security": [
- {
- "token": []
- }
- ]
- }
- }
- },
- "definitions": {
- "models.AdminLoginReq": {
- "title": "AdminLoginReq",
- "type": "object",
- "properties": {
- "code": {
- "type": "string"
- },
- "password": {
- "type": "string"
- },
- "user_name": {
- "type": "string"
- },
- "uuid": {
- "type": "string"
- }
- }
- },
- "models.AppCheckRecordItemDetailsVO": {
- "title": "AppCheckRecordItemDetailsVO",
- "type": "object",
- "properties": {
- "alert": {
- "description": "true:异常,false:正常",
- "type": "boolean"
- },
- "check_item_scopes": {
- "description": "检测范围",
- "type": "array",
- "items": {
- "$ref": "#/definitions/models.CheckItemScopeVO"
- }
- },
- "describe": {
- "description": "描述",
- "type": "string"
- },
- "id": {
- "description": "id",
- "type": "integer",
- "format": "int64"
- },
- "name_cn": {
- "description": "中文名字",
- "type": "string"
- },
- "name_en": {
- "description": "英文名字",
- "type": "string"
- },
- "reference_value": {
- "description": "参考值",
- "type": "string"
- },
- "unit": {
- "description": "单位",
- "type": "string"
- },
- "value": {
- "description": "检测值",
- "type": "string"
- },
- "value_index": {
- "description": "检测值索引",
- "type": "string"
- }
- }
- },
- "models.AppCheckRecordItemReportVO": {
- "title": "AppCheckRecordItemReportVO",
- "type": "object",
- "properties": {
- "check_value_index": {
- "description": "检测值下标",
- "type": "integer",
- "format": "int64"
- },
- "date": {
- "$ref": "#/definitions/models.Time",
- "description": "检测时间"
- },
- "describe": {
- "description": "描述",
- "type": "string"
- },
- "id": {
- "description": "id",
- "type": "integer",
- "format": "int64"
- },
- "unit": {
- "description": "单位",
- "type": "string"
- },
- "value": {
- "description": "检测值",
- "type": "string"
- }
- }
- },
- "models.AppCheckRecordItemVO": {
- "title": "AppCheckRecordItemVO",
- "type": "object",
- "properties": {
- "alert_count": {
- "description": "异常数量",
- "type": "integer",
- "format": "int64"
- },
- "alert_grade": {
- "description": "风险等级 1 低 2 中 3 高",
- "type": "integer",
- "format": "int64"
- },
- "bind": {
- "description": "false 未绑定用户 true 绑定",
- "type": "boolean"
- },
- "check_date": {
- "$ref": "#/definitions/models.Time",
- "description": "检测日期"
- },
- "check_record_id": {
- "description": "检测记录id",
- "type": "integer",
- "format": "int64"
- },
- "describe": {
- "description": "描述",
- "type": "string"
- },
- "items": {
- "description": "检测详情",
- "type": "array",
- "items": {
- "$ref": "#/definitions/models.AppCheckRecordItemDetailsVO"
- }
- },
- "normal_count": {
- "description": "正常数量",
- "type": "integer",
- "format": "int64"
- },
- "status": {
- "description": "设备绑定状态(扫码查看结果时返回):1 未绑定 2设备为他人绑定 3设备为自己绑定",
- "type": "integer",
- "format": "int64"
- },
- "user_id": {
- "description": "绑定用户id 默认自己",
- "type": "integer",
- "format": "int64"
- }
- }
- },
- "models.AppCheckRecordVO": {
- "title": "AppCheckRecordVO",
- "type": "object",
- "properties": {
- "alert_count": {
- "description": "异常数量",
- "type": "integer",
- "format": "int64"
- },
- "alert_items": {
- "description": "异常项",
- "type": "array",
- "items": {
- "type": "string"
- }
- },
- "bind": {
- "description": "0 未绑定用户 1 绑定",
- "type": "integer",
- "format": "int64"
- },
- "check_date": {
- "$ref": "#/definitions/models.Time",
- "description": "检测日期"
- },
- "check_record_id": {
- "description": "检测记录id",
- "type": "integer",
- "format": "int64"
- },
- "describe": {
- "description": "描述",
- "type": "string"
- },
- "normal_count": {
- "description": "正常数量",
- "type": "integer",
- "format": "int64"
- },
- "user_id": {
- "description": "绑定用户id 默认自己",
- "type": "integer",
- "format": "int64"
- },
- "view": {
- "description": "是否查看 1 已查看 0 未查看",
- "type": "integer",
- "format": "int64"
- }
- }
- },
- "models.CheckItem": {
- "title": "CheckItem",
- "type": "object",
- "properties": {
- "check_item_number": {
- "description": "排序",
- "type": "integer",
- "format": "int64"
- },
- "check_type": {
- "description": "检测类型(试纸类型)",
- "type": "string"
- },
- "ctime": {
- "description": "创建时间",
- "type": "string",
- "format": "datetime"
- },
- "delete_flag": {
- "description": "删除标志",
- "type": "integer",
- "format": "int64"
- },
- "details": {
- "description": "描述",
- "type": "string"
- },
- "device_type": {
- "description": "设备类型",
- "type": "string"
- },
- "id": {
- "description": "检测项目ID",
- "type": "integer",
- "format": "int64"
- },
- "language": {
- "description": "cn: 中文 en 英文",
- "type": "string"
- },
- "mtime": {
- "description": "更新时间 ",
- "type": "string",
- "format": "datetime"
- },
- "name_cn": {
- "description": "检测项目中文名",
- "type": "string"
- },
- "name_en": {
- "description": "检测项目英文名",
- "type": "string"
- },
- "reference_value": {
- "description": " 参考值",
- "type": "string"
- },
- "remark": {
- "description": "备注",
- "type": "string"
- },
- "scope_list": {
- "description": "范围value 值,type =1为正常、2及以上为异 常",
- "type": "string"
- },
- "text": {
- "description": "文本",
- "type": "string"
- },
- "unit": {
- "description": "单位",
- "type": "string"
- }
- }
- },
- "models.CheckItemNewsVO": {
- "title": "CheckItemNewsVO",
- "type": "object",
- "properties": {
- "author_id": {
- "description": "新闻作者的ID",
- "type": "integer",
- "format": "int64"
- },
- "collect_count": {
- "description": "收藏数",
- "type": "integer",
- "format": "int64"
- },
- "comment_count": {
- "description": "评论数",
- "type": "integer",
- "format": "int64"
- },
- "content": {
- "description": "新闻正文内容",
- "type": "string"
- },
- "content_images": {
- "description": "存储新闻内容中的图片路径,可能为逗号分隔的字符串或JSON格式",
- "type": "string"
- },
- "create_time": {
- "$ref": "#/definitions/models.Time",
- "description": "创建时间"
- },
- "delete_flag": {
- "description": "删除标记,0表示未删除,1表示已删除",
- "type": "integer",
- "format": "int64"
- },
- "id": {
- "description": "主键,唯一标识每条记录",
- "type": "integer",
- "format": "int64"
- },
- "introduction": {
- "description": "新闻简介或摘要",
- "type": "string"
- },
- "like_count": {
- "description": "点赞数",
- "type": "integer",
- "format": "int64"
- },
- "reading_quantity": {
- "description": "阅读量",
- "type": "integer",
- "format": "int64"
- },
- "sort_in_tag": {
- "description": "在特定标签内的排序规则",
- "type": "string"
- },
- "status": {
- "description": "新闻状态(例如,草稿、已发布等)",
- "type": "integer",
- "format": "int64"
- },
- "style_type": {
- "description": "显示样式类型,可能用于控制前端展示效果",
- "type": "integer",
- "format": "int64"
- },
- "tags": {
- "description": "新闻标签,用以分类或检索",
- "type": "string"
- },
- "title": {
- "description": "新闻标题",
- "type": "string"
- },
- "update_time": {
- "$ref": "#/definitions/models.Time",
- "description": "记录最后更新的时间,自动更新"
- }
- }
- },
- "models.CheckItemScopeVO": {
- "title": "CheckItemScopeVO",
- "type": "object",
- "properties": {
- "index": {
- "type": "integer",
- "format": "int64"
- },
- "num": {
- "type": "string"
- },
- "type": {
- "type": "integer",
- "format": "int64"
- },
- "value": {
- "type": "string"
- }
- }
- },
- "models.Device": {
- "title": "Device",
- "type": "object",
- "properties": {
- "batch_number": {
- "description": "批号",
- "type": "integer",
- "format": "int64"
- },
- "ctime": {
- "description": "创建时间",
- "type": "string",
- "format": "datetime"
- },
- "delete_flag": {
- "description": "删除标志",
- "type": "integer",
- "format": "int64"
- },
- "device_name": {
- "description": "设备名称",
- "type": "string"
- },
- "device_type": {
- "description": "设备类型",
- "type": "string"
- },
- "emq_password": {
- "description": "emq密码",
- "type": "string"
- },
- "id": {
- "description": "设备ID",
- "type": "integer",
- "format": "int64"
- },
- "inform_type": {
- "description": "通知类型:0跳转小程序、1跳转网页 、默认跳转小程序",
- "type": "integer",
- "format": "int64"
- },
- "language": {
- "description": "语言",
- "type": "string"
- },
- "mac": {
- "type": "string"
- },
- "mcu": {
- "type": "string"
- },
- "mcu_type": {
- "description": "MCU芯片类型",
- "type": "string"
- },
- "mtime": {
- "description": "更新时间 ",
- "type": "string",
- "format": "datetime"
- },
- "name": {
- "description": "设备名称",
- "type": "string"
- },
- "number": {
- "description": "序号",
- "type": "integer",
- "format": "int64"
- },
- "oem_company": {
- "description": "厂商(0:自营 1:艾玛OEM)",
- "type": "integer",
- "format": "int64"
- },
- "org_id": {
- "description": "所属机构",
- "type": "integer",
- "format": "int64"
- },
- "paper_check": {
- "description": "试纸检查状态",
- "type": "integer",
- "format": "int64"
- },
- "production_date_number": {
- "description": "生产日期",
- "type": "integer",
- "format": "int64"
- },
- "qr_code": {
- "type": "string"
- },
- "sensor_mode": {
- "description": "传感放大倍数",
- "type": "string"
- },
- "serialno": {
- "description": "设备编号",
- "type": "string"
- },
- "status": {
- "description": "状态(0:未分配 1:已分配 2:包装中 3:待出厂 6:废弃 99:已出厂 100:销售中 101:已售出)",
- "type": "integer",
- "format": "int64"
- },
- "ver": {
- "description": "软件版本",
- "type": "string"
- },
- "wifi_ver": {
- "description": "WIFI版本",
- "type": "string"
- }
- }
- },
- "models.DicResp": {
- "title": "DicResp",
- "type": "object",
- "properties": {
- "name": {
- "description": "字典名称",
- "type": "string"
- },
- "type": {
- "type": "string"
- },
- "value": {
- "description": "字典值",
- "type": "integer",
- "format": "int64"
- },
- "value_str": {
- "description": "字典字符串值",
- "type": "string"
- }
- }
- },
- "models.HealthProfileResp": {
- "title": "HealthProfileResp",
- "type": "object",
- "properties": {
- "birthday": {
- "$ref": "#/definitions/models.Time",
- "description": "生日"
- },
- "blood_type": {
- "description": "血型",
- "type": "string"
- },
- "creatine_time": {
- "$ref": "#/definitions/models.Time",
- "description": "肌酐检测时间"
- },
- "creatinine": {
- "description": "血肌酐",
- "type": "number",
- "format": "double"
- },
- "creatinine_unit": {
- "description": "肌酐单位(umol/L,mg/dl)",
- "type": "string"
- },
- "ctime": {
- "$ref": "#/definitions/models.Time",
- "description": "创建时间"
- },
- "gender": {
- "description": "性别(0:未知 1:男 2:女)",
- "type": "integer",
- "format": "int64"
- },
- "height": {
- "description": "身高",
- "type": "integer",
- "format": "int64"
- },
- "id": {
- "description": "Primary Key ID",
- "type": "integer",
- "format": "int64"
- },
- "illness_state": {
- "description": "病情",
- "type": "string"
- },
- "mtime": {
- "$ref": "#/definitions/models.Time",
- "description": "更新时间 "
- },
- "renal_function_status": {
- "description": "肾功能情况(0:未透析,1: 血液透析,2:腹膜透析,3:肾脏移植)",
- "type": "integer",
- "format": "int64"
- },
- "status": {
- "description": "状态(1:有效 0:无效 )",
- "type": "integer",
- "format": "int64"
- },
- "urine_protein": {
- "description": "尿蛋白",
- "type": "number",
- "format": "double"
- },
- "urine_protein_24h": {
- "description": "24小时尿蛋白",
- "type": "number",
- "format": "double"
- },
- "urine_protein_24h_time": {
- "$ref": "#/definitions/models.Time",
- "description": "24小时尿蛋白检测时间"
- },
- "urine_protein_24h_unit": {
- "description": "24小时尿蛋白单位(g/24h,mg/24h)",
- "type": "string"
- },
- "urine_protein_time": {
- "$ref": "#/definitions/models.Time",
- "description": "尿蛋白检测时间"
- },
- "urine_protein_unit": {
- "description": "尿蛋白单位(g,mg)",
- "type": "string"
- },
- "weight": {
- "description": "体重",
- "type": "number",
- "format": "double"
- }
- }
- },
- "models.SaveHealthProfileReq": {
- "title": "SaveHealthProfileReq",
- "type": "object",
- "properties": {
- "birthday": {
- "description": "生日 yyyy-MM-dd HH:mm:ss",
- "type": "string"
- },
- "blood_type": {
- "description": "血型",
- "type": "string"
- },
- "creatine_time": {
- "description": "肌酐检测时间 yyyy-MM-dd HH:mm:ss",
- "type": "string"
- },
- "creatinine": {
- "description": "血肌酐",
- "type": "number",
- "format": "double"
- },
- "creatinine_unit": {
- "description": "肌酐单位(umol/L,mg/dl)",
- "type": "string"
- },
- "gender": {
- "description": "性别(0:未知 1:男 2:女)",
- "type": "integer",
- "format": "int64"
- },
- "height": {
- "description": "身高",
- "type": "integer",
- "format": "int64"
- },
- "illness_state": {
- "description": "病情",
- "type": "string"
- },
- "renal_function_status": {
- "description": "肾功能情况(0:未透析,1: 血液透析,2:腹膜透析,3:肾脏移植)",
- "type": "integer",
- "format": "int64"
- },
- "urine_protein": {
- "description": "尿蛋白",
- "type": "number",
- "format": "double"
- },
- "urine_protein_24h": {
- "description": "24小时尿蛋白",
- "type": "number",
- "format": "double"
- },
- "urine_protein_24h_time": {
- "description": "24小时尿蛋白检测时间 yyyy-MM-dd HH:mm:ss",
- "type": "string"
- },
- "urine_protein_24h_unit": {
- "description": "24小时尿蛋白单位(g/24h,mg/24h)",
- "type": "string"
- },
- "urine_protein_time": {
- "description": "尿蛋白检测时间 yyyy-MM-dd HH:mm:ss",
- "type": "string"
- },
- "urine_protein_unit": {
- "description": "尿蛋白单位(g,mg)",
- "type": "string"
- },
- "weight": {
- "description": "体重",
- "type": "number",
- "format": "double"
- }
- }
- },
- "models.SaveUserInfoReq": {
- "title": "SaveUserInfoReq",
- "type": "object",
- "properties": {
- "avatar": {
- "description": "头像",
- "type": "string"
- },
- "email": {
- "description": "邮件",
- "type": "string"
- },
- "id_card": {
- "description": "身份证号",
- "type": "string"
- },
- "inpatient_reg_phone": {
- "description": "住院登记手机号",
- "type": "string"
- },
- "nick_name": {
- "description": "昵称",
- "type": "string"
- },
- "phone": {
- "description": "手机号码",
- "type": "string"
- },
- "real_name": {
- "description": "真实姓名",
- "type": "string"
- },
- "verify_code": {
- "description": "手机验证码",
- "type": "string"
- }
- }
- },
- "models.SyhArticlesMenu": {
- "title": "SyhArticlesMenu",
- "type": "object",
- "properties": {
- "id": {
- "description": "自增主键ID",
- "type": "integer",
- "format": "int32"
- },
- "img": {
- "description": "图片",
- "type": "string"
- },
- "name": {
- "description": "分类名",
- "type": "string"
- },
- "order": {
- "description": "排序",
- "type": "integer",
- "format": "int32"
- },
- "status": {
- "description": "状态",
- "type": "integer",
- "format": "int32"
- },
- "summary": {
- "description": "介绍",
- "type": "string"
- },
- "type": {
- "description": "分类类型",
- "type": "integer",
- "format": "int32"
- }
- }
- },
- "models.SyhArticlesVO": {
- "title": "SyhArticlesVO",
- "type": "object",
- "properties": {
- "article_type": {
- "description": "文章类型",
- "type": "integer",
- "format": "int32"
- },
- "author": {
- "description": "作者",
- "type": "string"
- },
- "class_id": {
- "description": "主分类",
- "type": "integer",
- "format": "int32"
- },
- "comment_num": {
- "description": "评论数",
- "type": "integer",
- "format": "int32"
- },
- "content": {
- "description": "内容",
- "type": "string"
- },
- "ctime": {
- "$ref": "#/definitions/models.Time",
- "description": "创建时间"
- },
- "from_id": {
- "description": "医生/机构ID",
- "type": "integer",
- "format": "int32"
- },
- "id": {
- "description": "自增主键ID",
- "type": "integer",
- "format": "int32"
- },
- "img": {
- "description": "图片",
- "type": "string"
- },
- "is_del": {
- "description": "是否删除",
- "type": "integer",
- "format": "int32"
- },
- "menu_id": {
- "description": "辅分类",
- "type": "integer",
- "format": "int32"
- },
- "new_time": {
- "$ref": "#/definitions/models.Time",
- "description": "新建时间"
- },
- "num": {
- "description": "点击次数",
- "type": "integer",
- "format": "int32"
- },
- "org_id": {
- "description": "orgId",
- "type": "integer",
- "format": "int32"
- },
- "reason": {
- "description": "原因",
- "type": "string"
- },
- "star_num": {
- "description": "点赞数",
- "type": "integer",
- "format": "int32"
- },
- "status": {
- "description": "状态 0正在审核,1通过,2未通过,3草稿,4通过且大图显示视频",
- "type": "integer",
- "format": "int32"
- },
- "summary": {
- "description": "简介",
- "type": "string"
- },
- "t_module": {
- "description": "模块",
- "type": "string"
- },
- "tags": {
- "description": "标签",
- "type": "string"
- },
- "title": {
- "description": "标题",
- "type": "string"
- },
- "type": {
- "description": "类型'0系统1医生2机构",
- "type": "integer",
- "format": "int32"
- }
- }
- },
- "models.SysAdmin": {
- "title": "SysAdmin",
- "type": "object",
- "properties": {
- "avatar": {
- "description": "头像地址",
- "type": "string"
- },
- "ctime": {
- "description": "创建时间",
- "type": "string",
- "format": "datetime"
- },
- "del_flag": {
- "description": "删除标志(0代表存在 2代表删除)",
- "type": "string"
- },
- "dept_id": {
- "description": "部门ID",
- "type": "integer",
- "format": "int64"
- },
- "email": {
- "description": "用户邮箱",
- "type": "string"
- },
- "id": {
- "description": "用户ID",
- "type": "integer",
- "format": "int64"
- },
- "login_date": {
- "description": "最后登录时间",
- "type": "string",
- "format": "datetime"
- },
- "login_ip": {
- "description": "最后登录IP",
- "type": "string"
- },
- "mtime": {
- "description": "更新时间",
- "type": "string",
- "format": "datetime"
- },
- "nick_name": {
- "description": "用户昵称",
- "type": "string"
- },
- "password": {
- "description": "密码",
- "type": "string"
- },
- "phonenumber": {
- "description": "手机号码",
- "type": "string"
- },
- "remark": {
- "description": "备注",
- "type": "string"
- },
- "sex": {
- "description": "用户性别(0男 1女 2未知)",
- "type": "string"
- },
- "status": {
- "description": "帐号状态(0正常 1停用)",
- "type": "string"
- },
- "user_name": {
- "description": "用户账号",
- "type": "string"
- },
- "user_type": {
- "description": "用户类型(00系统用户)",
- "type": "string"
- }
- }
- },
- "models.Time": {
- "title": "Time",
- "type": "object"
- },
- "models.UserInfoResp": {
- "title": "UserInfoResp",
- "type": "object",
- "properties": {
- "avatar": {
- "description": "头像",
- "type": "string"
- },
- "ctime": {
- "$ref": "#/definitions/models.Time",
- "description": "创建时间"
- },
- "dialysis_no": {
- "description": " 透析号",
- "type": "string"
- },
- "email": {
- "description": "邮件",
- "type": "string"
- },
- "health_care_no": {
- "description": " 医保号",
- "type": "string"
- },
- "id": {
- "description": "Primary Key ID",
- "type": "integer",
- "format": "int64"
- },
- "id_card": {
- "description": "身份证号",
- "type": "string"
- },
- "inpatient_reg_phone": {
- "description": "住院登记手机号",
- "type": "string"
- },
- "mtime": {
- "$ref": "#/definitions/models.Time",
- "description": "更新时间 "
- },
- "nick_name": {
- "description": "昵称",
- "type": "string"
- },
- "open_id": {
- "description": "OpenID",
- "type": "string"
- },
- "patient_id": {
- "type": "integer",
- "format": "int64"
- },
- "phone": {
- "description": "手机号码",
- "type": "string"
- },
- "privacy_protocol_versions": {
- "description": "隐私政策版本",
- "type": "integer",
- "format": "int64"
- },
- "real_name": {
- "description": "真实姓名",
- "type": "string"
- },
- "source": {
- "description": "用户来源",
- "type": "string"
- },
- "status": {
- "description": "状态(1:有效0:无效)",
- "type": "integer",
- "format": "int64"
- },
- "union_id": {
- "description": "unionid",
- "type": "string"
- },
- "user_org_id": {
- "type": "integer",
- "format": "int64"
- }
- }
- },
- "models.WxXcxLoginReq": {
- "title": "WxXcxLoginReq",
- "type": "object",
- "properties": {
- "code": {
- "type": "string"
- }
- }
- },
- "models.WxXcxLoginResp": {
- "title": "WxXcxLoginResp",
- "type": "object",
- "properties": {
- "openid": {
- "type": "string"
- },
- "patient_id": {
- "type": "integer",
- "format": "int64"
- },
- "token": {
- "type": "string"
- },
- "user_org_id": {
- "type": "integer",
- "format": "int64"
- }
- }
- },
- "models.XcxUser": {
- "title": "XcxUser",
- "type": "object",
- "properties": {
- "avatar": {
- "description": "头像",
- "type": "string"
- },
- "ctime": {
- "description": "创建时间",
- "type": "string",
- "format": "datetime"
- },
- "email": {
- "description": "邮件",
- "type": "string"
- },
- "id": {
- "description": "Primary Key ID",
- "type": "integer",
- "format": "int64"
- },
- "mtime": {
- "description": "更新时间 ",
- "type": "string",
- "format": "datetime"
- },
- "nick_name": {
- "description": "昵称",
- "type": "string"
- },
- "open_id": {
- "description": "OpenID",
- "type": "string"
- },
- "patient_id": {
- "type": "integer",
- "format": "int64"
- },
- "phone": {
- "description": "手机号码",
- "type": "string"
- },
- "privacy_protocol_versions": {
- "description": "隐私政策版本",
- "type": "integer",
- "format": "int64"
- },
- "role_type": {
- "description": "角色类型 0或空:普通 1:管理员 2:测试",
- "type": "integer",
- "format": "int64"
- },
- "session_key": {
- "type": "string"
- },
- "source": {
- "description": "用户来源",
- "type": "string"
- },
- "status": {
- "description": "状态(1:有效 0: 无效)",
- "type": "integer",
- "format": "int64"
- },
- "union_id": {
- "description": "unionid",
- "type": "string"
- },
- "user_org_id": {
- "type": "integer",
- "format": "int64"
- }
- }
- }
- },
- "securityDefinitions": {
- "token": {
- "type": "apiKey",
- "name": "Authorization",
- "in": "header"
- }
- }
- }
|