新增 导出路由+提现详情医生user_id

This commit is contained in:
2023-11-02 11:46:37 +08:00
parent 5113fab527
commit ca3bbaf77b
3 changed files with 26 additions and 0 deletions
+9
View File
@@ -30,6 +30,7 @@ type DoctorWithdrawalDto struct {
DoctorWithdrawalBank *DoctorWithdrawalBankDto `json:"doctor_withdrawal_bank"` // 医生提现表-关联银行
BankName string `json:"bank_name"` // 提现银行名称
BankCity string `json:"bank_city"` // 提现银行开户行城市
DoctorUserId string `json:"doctor_user_id"` // 医生user_id
}
func GetDoctorWithdrawalDto(m *model.DoctorWithdrawal) *DoctorWithdrawalDto {
@@ -186,3 +187,11 @@ func (r *DoctorWithdrawalDto) LoadBasicBank(m *model.BasicBank) *DoctorWithdrawa
}
return r
}
// LoadDoctorUserId 加载医生user_id
func (r *DoctorWithdrawalDto) LoadDoctorUserId(m *model.User) *DoctorWithdrawalDto {
if m != nil {
r.DoctorUserId = fmt.Sprintf("%d", m.UserId)
}
return r
}