You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

31 lines
1.3 KiB

package order
import (
"github.com/golangkit/formatime"
"github.com/shopspring/decimal"
)
type Bill struct {
ID uint `gorm:"column:id;primary_key" json:"id"`
UID uint `gorm:"column:uid;" json:"uid"`
Fpqqlsh string `gorm:"column:fpqqlsh;" json:"fpqqlsh"`
Status int `gorm:"column:status;" json:"status"`
Buyername string `gorm:"column:buyername;" json:"buyername"`
Taxnum string `gorm:"column:taxnum;" json:"taxnum"`
Address string `gorm:"column:address;" json:"address"`
Telephone string `gorm:"column:telephone;" json:"telephone"`
Phone string `gorm:"column:phone;" json:"phone"`
Email string `gorm:"column:email;" json:"email"`
Account string `gorm:"column:account;" json:"account"`
Content string `gorm:"column:content;" json:"content"`
Message string `gorm:"column:message;" json:"message"`
Ctime formatime.Second `gorm:"column:ctime;" json:"ctime"`
Price decimal.Decimal `gorm:"column:price;" json:"pice"`
Fail string `gorm:"column:fail;" json:"fail"`
}
// TableName sets the insert table name for this struct type
func (r *Bill) TableName() string {
return "recook_order_goods_bill"
}