18 lines
1.2 KiB
Go
18 lines
1.2 KiB
Go
package dao
|
|
|
|
type DeliveryHistoryCreate struct {
|
|
Id int `gorm:"column:id;type:int(11);primary_key;AUTO_INCREMENT;comment:ID" json:"id"`
|
|
DeliverId int `gorm:"column:deliver_id;type:int(11);comment:对像id" json:"deliver_id"`
|
|
TransitName string `gorm:"column:transit_name;type:varchar(50);comment:快递公司" json:"transit_name"`
|
|
TransitInfo string `gorm:"column:transit_info;type:text;comment:快递详情" json:"transit_info"`
|
|
TransitContent string `gorm:"column:transit_content;type:text;comment:发快递时的结果" json:"transit_content"`
|
|
TransitType uint8 `gorm:"column:transit_type;type:tinyint(1);default:1;comment:快递公司,1为顺丰,2为京东,3..。" json:"transit_type"`
|
|
OrderSn string `gorm:"column:order_sn;type:varchar(255);comment:订单SN" json:"order_sn"`
|
|
Type uint8 `gorm:"column:type;type:tinyint(1);default:1;comment:类型,1为发货,2为取消;NOT NULL" json:"type"`
|
|
}
|
|
|
|
type DeliveryHistory struct {
|
|
Id int `gorm:"column:id;type:int(11);primary_key;AUTO_INCREMENT;comment:ID" json:"id"`
|
|
DeliverId int `gorm:"column:deliver_id;type:int(11);comment:对像id" json:"deliver_id"`
|
|
}
|