新增:提现详情
This commit is contained in:
@@ -9,6 +9,15 @@ import (
|
||||
type DoctorBankCardDao struct {
|
||||
}
|
||||
|
||||
// GetDoctorBankCardById 获取医生银行卡数据-id
|
||||
func (r *DoctorBankCardDao) GetDoctorBankCardById(bankCardId int64) (m *model.DoctorBankCard, err error) {
|
||||
err = global.Db.First(&m, bankCardId).Error
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
return m, nil
|
||||
}
|
||||
|
||||
// GetDoctorBankCardByDoctorId 获取医生银行卡数据-医生id
|
||||
func (r *DoctorBankCardDao) GetDoctorBankCardByDoctorId(doctorId int64) (m *model.DoctorBankCard, err error) {
|
||||
err = global.Db.Where("doctor_id = ?", doctorId).First(&m).Error
|
||||
|
||||
Reference in New Issue
Block a user