diff --git a/api/responses/userPatientResponse/userPatient.go b/api/responses/userPatientResponse/userPatient.go index 1408b9f..7fcdce1 100644 --- a/api/responses/userPatientResponse/userPatient.go +++ b/api/responses/userPatientResponse/userPatient.go @@ -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"` // 创建时间 diff --git a/api/service/userPatient.go b/api/service/userPatient.go index 86e5478..89e52c7 100644 --- a/api/service/userPatient.go +++ b/api/service/userPatient.go @@ -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,