swagger: "2.0"
info:
title: sws xcx api doc
description: |
圣卫士小程序API接口文档
version: 1.0.0
license:
name: 领透科技
basePath: /xcx
paths:
/api/sysdic/getillness:
get:
tags:
- api/sysdic
description: |-
获取病情字典
operationId: SysDicApiController.GetIllness
responses:
"200":
description: DicResp success
schema:
$ref: '#/definitions/models.type'
"500":
description: error
/api/sysdic/getrenalstatus:
get:
tags:
- api/sysdic
description: |-
获取肾功能情况列表
operationId: SysDicApiController.GetRenalStatus
responses:
"200":
description: DicResp success
schema:
$ref: '#/definitions/models.type'
"500":
description: error
/api/user/gethealthprofile:
get:
tags:
- api/user
description: |-
获取健康档案
operationId: UserApiController.GetHealthProfile
responses:
"200":
description: success
schema:
$ref: '#/definitions/models.HealthProfileResp'
"500":
description: error
/api/user/getuserinfo:
get:
tags:
- api/user
description: |-
获取个人中心信息
operationId: UserApiController.GetUserInfo
responses:
"200":
description: success
schema:
$ref: '#/definitions/models.UserInfoResp'
"500":
description: error
/api/user/login:
post:
tags:
- api/user
description: |-
微信小程序登录
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: |-
保存健康档案
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: |-
个人中心保存用户信息和透析病友信息
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: |-
获取小程序绑定的手机号码并更新到用户信息
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