新增禁用理由

This commit is contained in:
wucongxing 2023-09-25 17:23:40 +08:00
parent efde711eaa
commit aedf61c31b
2 changed files with 2 additions and 0 deletions

View File

@ -30,6 +30,7 @@ type GetUserPatient struct {
Status *int `json:"status"` // 状态0:禁用 1:正常 2:删除)
Avatar string `json:"avatar"` // 头像
Mobile string `json:"mobile"` // 手机号
DisableReason string `json:"disable_reason"` // 禁用理由
PatientFamily []*patientFamilyResponse.GetUserPatient `json:"patient_family"` // 家庭成员
UserShipAddress []*userShipAddressResponse.UserShipAddress `json:"user_ship_address"` // 收货地址
CreatedAt model.LocalTime `json:"created_at"` // 创建时间

View File

@ -50,6 +50,7 @@ func (r *UserPatientService) GetUserPatient(patientId int64) (getUserPatientResp
Status: &userPatient.Status,
Avatar: utils.AddOssDomain(userPatient.Avatar),
Mobile: user.Mobile,
DisableReason: userPatient.DisableReason,
PatientFamily: patientFamilysResponse,
UserShipAddress: userShipAddress,
CreatedAt: userPatient.CreatedAt,