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.
28 lines
933 B
28 lines
933 B
package goods
|
|
|
|
import (
|
|
"github.com/golangkit/formatime"
|
|
"github.com/shopspring/decimal"
|
|
"recook/internal/v2/lib/db"
|
|
)
|
|
|
|
type RecookSkuInvoiceModel struct {
|
|
db.BaseModel
|
|
Id uint `gorm:"column:id;primary_key" json:"id"`
|
|
SkuId uint `json:"sku_id"`
|
|
GoodsId uint `json:"goodsId"`
|
|
GoodsName string `json:"goodsName"`
|
|
TaxSn string `json:"taxSn"`
|
|
TaxName string `json:"taxName"`
|
|
Unit string `json:"unit"`
|
|
TaxRate decimal.Decimal `json:"taxRate"`
|
|
PlatformRate decimal.Decimal `json:"platformRate"`
|
|
DeductionRate decimal.Decimal `json:"deduction_rate"`
|
|
CreatedAt formatime.Second `gorm:"column:created_at" json:"createAt"`
|
|
UpdatedAt formatime.Second `gorm:"column:updated_at" json:"updatedAt"`
|
|
}
|
|
|
|
func (r *RecookSkuInvoiceModel) TableName() string {
|
|
return "recook_sku_invoice"
|
|
}
|