recruit_strategy.go 284 B

123456789101112131415
  1. package db
  2. import (
  3. "context"
  4. "youngee_b_api/model/gorm_model"
  5. )
  6. func CreateRecruitStrategy(ctx context.Context, recruitStrategys []gorm_model.RecruitStrategy) error {
  7. db := GetReadDB(ctx)
  8. err := db.Create(&recruitStrategys).Error
  9. if err != nil {
  10. return err
  11. }
  12. return nil
  13. }