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.
55 lines
3.0 KiB
55 lines
3.0 KiB
6 months ago
|
package model
|
||
|
|
||
|
import (
|
||
|
"time"
|
||
|
|
||
|
"bkb-seller/global"
|
||
|
)
|
||
|
|
||
|
type MissionClaimOrder struct { // 任务领取sku订单
|
||
|
global.MG_MODEL
|
||
|
OrderID string `gorm:"size:50;index" json:"order_id"` // 订单号
|
||
|
MissionClaimId uint `gorm:"type:int(11)" json:"mission_claim_id"` // 领取任务id
|
||
|
SpuNo string `gorm:"type:varchar(60);" json:"spu_no"` // spu编号
|
||
|
SkuNo string `gorm:"type:varchar(60);" json:"sku_no"` // sku编号
|
||
|
Number int `gorm:"type:int(10)" json:"number"` // 数量
|
||
|
CreateBy string `gorm:"size:64" json:"create_by"` // 创建人
|
||
|
Status int `gorm:"type:int(1)" json:"status"` // 订单状态 2:待发货 3:已发货
|
||
|
SendTime *time.Time `gorm:"" json:"send_time"` // 发货时间
|
||
|
Courier string `gorm:"size:50" json:"courier"` // 快递公司
|
||
|
CourierUrl string `gorm:"size:255" json:"courier_url"` // 快递查询地址
|
||
|
CourierNumber string `gorm:"size:50" json:"courier_number"` // 快递单号
|
||
|
TrackId uint `json:"track_id"` // track表id
|
||
|
ConfirmTime *time.Time `gorm:"" json:"confirm_time"` // 收货时间
|
||
|
}
|
||
|
|
||
|
type MissionClaimOrderDetail struct {
|
||
|
MissionClaimOrder
|
||
|
Goods MissionClaimOrderGoods `gorm:"ForeignKey:OrderID;References:OrderID" json:"goods"` // 任务订单商品
|
||
|
Address MissionClaimAddress `gorm:"ForeignKey:OrderID;References:OrderID" json:"address"` // 任务订单地址
|
||
|
MissionClaim MissionClaimDetail `gorm:"ForeignKey:MissionClaimId;References:ID" json:"mission_claim"` // 任务领取记录
|
||
|
}
|
||
|
|
||
|
type MissionClaimOrderInfo struct {
|
||
|
OrderID string `json:"order_id"` // 订单号
|
||
|
MissionClaimId uint `json:"mission_claim_id"` // 领取任务id
|
||
|
Status int `json:"status"` // 订单状态 2:待发货 3:已发货
|
||
|
Courier string `json:"courier"` // 快递公司
|
||
|
CourierUrl string `json:"courier_url"` // 快递查询地址
|
||
|
CourierNumber string `json:"courier_number"` // 快递单号
|
||
|
SendTime *time.Time `gorm:"send_time" json:"send_time"` // 发货时间
|
||
|
OrderGoods MissionClaimOrderGoods `gorm:"ForeignKey:OrderID;references:OrderID;" json:"order_goods"` // 订单商品信息
|
||
|
}
|
||
|
|
||
|
func (MissionClaimOrder) TableName() string {
|
||
|
return "mission_claim_order"
|
||
|
}
|
||
|
|
||
|
func (MissionClaimOrderDetail) TableName() string {
|
||
|
return "mission_claim_order"
|
||
|
}
|
||
|
|
||
|
func (MissionClaimOrderInfo) TableName() string {
|
||
|
return "mission_claim_order"
|
||
|
}
|