新增 导出路由+提现详情医生user_id
This commit is contained in:
@@ -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
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user