新增数据库主键处理
This commit is contained in:
@@ -71,6 +71,14 @@ func (r *DoctorExpertiseDao) AddDoctorExpertise(tx *gorm.DB, model *model.Doctor
|
||||
return model, nil
|
||||
}
|
||||
|
||||
// AddDoctorExpertises 新增医生专长-多
|
||||
func (r *DoctorExpertiseDao) AddDoctorExpertises(tx *gorm.DB, models []model.DoctorExpertise) error {
|
||||
if err := tx.Create(&models).Error; err != nil {
|
||||
return err
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
// AddDoctorExpertiseByMap 新增医生专长-map
|
||||
func (r *DoctorExpertiseDao) AddDoctorExpertiseByMap(tx *gorm.DB, data map[string]interface{}) (*model.DoctorExpertise, error) {
|
||||
userDoctorInfo := &model.DoctorExpertise{}
|
||||
|
||||
Reference in New Issue
Block a user