supplier_withdraw.go 350 B

12345678910111213141516
  1. package db
  2. import (
  3. "context"
  4. "youngee_b_api/model/gorm_model"
  5. )
  6. // CreateSupplierWithdraw 查询服务商收入列表
  7. func CreateSupplierWithdraw(ctx context.Context, supplierWithdraw []*gorm_model.YounggeeSupplierWithdraw) error {
  8. db := GetWriteDB(ctx)
  9. err := db.Create(&supplierWithdraw).Error
  10. if err != nil {
  11. return err
  12. }
  13. return nil
  14. }