daShangDao_psiServer/models/logistics.go
2026-06-15 13:47:39 +08:00

41 lines
2.4 KiB
Go

package models
import "time"
type Logistics struct {
Id uint64 `gorm:"primaryKey;column:id" json:"id"`
TemplateName string `gorm:"column:template_name;size:255" json:"templateName"`
DeliveryProvince string `gorm:"column:delivery_province;size:255" json:"deliveryProvince"`
DeliveryCity string `gorm:"column:delivery_city;size:255" json:"deliveryCity"`
DeliveryArea string `gorm:"column:delivery_area;size:255" json:"deliveryArea"`
DeliveryAddress string `gorm:"column:delivery_address;size:255" json:"deliveryAddress"`
PricingMethod string `gorm:"column:pricing_method;size:1;default:0" json:"pricingMethod"`
Shipping string `gorm:"column:shipping;size:1;default:0" json:"shipping"`
FirWbv float64 `gorm:"column:fir_wbv;type:double(20,2)" json:"firWbv"`
FirPrice float64 `gorm:"column:fir_price;type:decimal(10,2)" json:"firPrice"`
ContinueWbv float64 `gorm:"column:continue_wbv;type:double(20,2)" json:"continueWbv"`
ContinuePrice float64 `gorm:"column:continue_price;type:decimal(10,2)" json:"continuePrice"`
CreateBy uint64 `gorm:"column:create_by" json:"createBy"`
CreateTime *time.Time `gorm:"column:create_time" json:"createTime"`
UpdateBy uint64 `gorm:"column:update_by" json:"updateBy"`
UpdateTime *time.Time `gorm:"column:update_time" json:"updateTime"`
Status string `gorm:"column:status;size:1;default:0" json:"status"`
DelFlag string `gorm:"column:del_flag;size:1;default:0" json:"delFlag"`
TenantId string `gorm:"column:tenant_id;size:20" json:"tenantId"`
CreateDept uint64 `gorm:"column:create_dept" json:"createDept"`
ShippingRange string `gorm:"column:shipping_range;type:text" json:"shippingRange"`
WarehouseId uint64 `gorm:"column:warehouse_id" json:"warehouseId"`
Remark string `gorm:"column:remark;size:255" json:"remark"`
PhoneNumber uint64 `gorm:"column:phone_number" json:"phoneNumber"`
Contact string `gorm:"column:contact;size:14" json:"contact"`
FullAddress string `gorm:"column:full_address;size:255" json:"fullAddress"`
}
func (Logistics) TableName() string {
return "logistics"
}
func (Logistics) TableOptions() string {
return "ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COMMENT='物流模板表'"
}