excel-export/data/batch.go

18 lines
345 B
Go

package data
type Batch struct {
BatchId string `gorm:"primaryKey;column:batch_id"`
Customer string
Price float32
DingTalkSn string
Remark string
Success int
Fail int
ResellerId int
Reseller Reseller `gorm:"foreignkey:id;references:reseller_id"`
}
func (b Batch) TableName() string {
return "batch_direct"
}