123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523 |
- {
- "swagger": "2.0",
- "info": {
- "title": "sws xcx api doc",
- "description": "圣卫士小程序API接口文档\n",
- "version": "1.0.0",
- "contact": {},
- "license": {
- "name": "领透科技"
- }
- },
- "basePath": "/xcx",
- "paths": {
- "/api/sysdic/getillness": {
- "get": {
- "tags": [
- "api/sysdic"
- ],
- "description": "获取病情字典\n\u003cbr\u003e",
- "operationId": "SysDicApiController.GetIllness",
- "responses": {
- "200": {
- "description": "DicResp success",
- "schema": {
- "$ref": "#/definitions/models.type"
- }
- },
- "500": {
- "description": "error"
- }
- }
- }
- },
- "/api/sysdic/getrenalstatus": {
- "get": {
- "tags": [
- "api/sysdic"
- ],
- "description": "获取肾功能情况列表\n\u003cbr\u003e",
- "operationId": "SysDicApiController.GetRenalStatus",
- "responses": {
- "200": {
- "description": "DicResp success",
- "schema": {
- "$ref": "#/definitions/models.type"
- }
- },
- "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"
- }
- }
- }
- },
- "/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"
- }
- }
- }
- },
- "/api/user/login": {
- "post": {
- "tags": [
- "api/user"
- ],
- "description": "微信小程序登录\n\u003cbr\u003e",
- "operationId": "LoginApiController.WxXcxLogin",
- "parameters": [
- {
- "in": "body",
- "name": "body",
- "description": "小程序登录请求参数",
- "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"
- }
- }
- }
- },
- "/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"
- }
- }
- }
- },
- "/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"
- }
- }
- }
- }
- },
- "definitions": {
- "models.HealthProfileResp": {
- "title": "HealthProfileResp",
- "type": "object",
- "properties": {
- "birthday": {
- "type": "string",
- "format": "datetime"
- },
- "blood_type": {
- "type": "string"
- },
- "creatine_time": {
- "type": "string",
- "format": "datetime"
- },
- "creatinine": {
- "type": "integer",
- "format": "int64"
- },
- "creatinine_unit": {
- "type": "string"
- },
- "ctime": {
- "type": "string",
- "format": "datetime"
- },
- "gender": {
- "type": "integer",
- "format": "int64"
- },
- "height": {
- "type": "integer",
- "format": "int64"
- },
- "id": {
- "type": "integer",
- "format": "int64"
- },
- "illness_state": {
- "type": "string"
- },
- "mtime": {
- "type": "string",
- "format": "datetime"
- },
- "renal_function_status": {
- "type": "integer",
- "format": "int64"
- },
- "status": {
- "type": "integer",
- "format": "int64"
- },
- "urine_protein": {
- "type": "integer",
- "format": "int64"
- },
- "urine_protein_24h": {
- "type": "integer",
- "format": "int64"
- },
- "urine_protein_24h_time": {
- "type": "string",
- "format": "datetime"
- },
- "urine_protein_24h_unit": {
- "type": "string"
- },
- "urine_protein_time": {
- "type": "string",
- "format": "datetime"
- },
- "urine_protein_unit": {
- "type": "string"
- },
- "weight": {
- "type": "integer",
- "format": "int64"
- }
- }
- },
- "models.SaveHealthProfileReq": {
- "title": "SaveHealthProfileReq",
- "type": "object",
- "properties": {
- "birthday": {
- "type": "string",
- "format": "datetime"
- },
- "blood_type": {
- "type": "string"
- },
- "creatine_time": {
- "type": "string",
- "format": "datetime"
- },
- "creatinine": {
- "type": "integer",
- "format": "int64"
- },
- "creatinine_unit": {
- "type": "string"
- },
- "gender": {
- "type": "integer",
- "format": "int64"
- },
- "height": {
- "type": "integer",
- "format": "int64"
- },
- "illness_state": {
- "type": "string"
- },
- "renal_function_status": {
- "type": "integer",
- "format": "int64"
- },
- "urine_protein": {
- "type": "integer",
- "format": "int64"
- },
- "urine_protein_24h": {
- "type": "integer",
- "format": "int64"
- },
- "urine_protein_24h_time": {
- "type": "string",
- "format": "datetime"
- },
- "urine_protein_24h_unit": {
- "type": "string"
- },
- "urine_protein_time": {
- "type": "string",
- "format": "datetime"
- },
- "urine_protein_unit": {
- "type": "string"
- },
- "weight": {
- "type": "integer",
- "format": "int64"
- }
- }
- },
- "models.SaveUserInfoReq": {
- "title": "SaveUserInfoReq",
- "type": "object",
- "properties": {
- "avatar": {
- "type": "string"
- },
- "email": {
- "type": "string"
- },
- "id_card": {
- "type": "string"
- },
- "inpatient_reg_phone": {
- "type": "string"
- },
- "nick_name": {
- "type": "string"
- },
- "phone": {
- "type": "string"
- },
- "real_name": {
- "type": "string"
- }
- }
- },
- "models.UserInfoResp": {
- "title": "UserInfoResp",
- "type": "object",
- "properties": {
- "avatar": {
- "type": "string"
- },
- "ctime": {
- "type": "string",
- "format": "datetime"
- },
- "email": {
- "type": "string"
- },
- "id": {
- "type": "integer",
- "format": "int64"
- },
- "id_card": {
- "type": "string"
- },
- "inpatient_reg_phone": {
- "type": "string"
- },
- "mtime": {
- "type": "string",
- "format": "datetime"
- },
- "nick_name": {
- "type": "string"
- },
- "open_id": {
- "type": "string"
- },
- "phone": {
- "type": "string"
- },
- "privacy_protocol_versions": {
- "type": "integer",
- "format": "int64"
- },
- "real_name": {
- "type": "string"
- },
- "source": {
- "type": "string"
- },
- "status": {
- "type": "integer",
- "format": "int64"
- },
- "union_id": {
- "type": "string"
- }
- }
- },
- "models.WxXcxLoginReq": {
- "title": "WxXcxLoginReq",
- "type": "object",
- "properties": {
- "code": {
- "type": "string"
- }
- }
- },
- "models.WxXcxLoginResp": {
- "title": "WxXcxLoginResp",
- "type": "object",
- "properties": {
- "openid": {
- "type": "string"
- },
- "token": {
- "type": "string"
- }
- }
- },
- "models.XcxUser": {
- "title": "XcxUser",
- "type": "object",
- "properties": {
- "avatar": {
- "type": "string"
- },
- "ctime": {
- "type": "string",
- "format": "datetime"
- },
- "email": {
- "type": "string"
- },
- "id": {
- "type": "integer",
- "format": "int64"
- },
- "mtime": {
- "type": "string",
- "format": "datetime"
- },
- "nick_name": {
- "type": "string"
- },
- "open_id": {
- "type": "string"
- },
- "phone": {
- "type": "string"
- },
- "privacy_protocol_versions": {
- "type": "integer",
- "format": "int64"
- },
- "role_type": {
- "type": "integer",
- "format": "int64"
- },
- "session_key": {
- "type": "string"
- },
- "source": {
- "type": "string"
- },
- "status": {
- "type": "integer",
- "format": "int64"
- },
- "union_id": {
- "type": "string"
- }
- }
- },
- "models.type": {
- "title": "type",
- "type": "object"
- }
- }
- }
|