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.
29 lines
932 B
29 lines
932 B
9 months ago
|
package model
|
||
|
|
||
|
import (
|
||
|
"encoding/json"
|
||
|
"pure/global"
|
||
|
)
|
||
|
|
||
|
type Track struct {
|
||
|
global.Pure_MODEL
|
||
|
Value json.RawMessage `gorm:"type:json" json:"value"`
|
||
|
TrackingNumber string `gorm:"type:varchar(100)" json:"tracking_number"`
|
||
|
CourierCode string `gorm:"type:varchar(50)" json:"courier_code"`
|
||
|
RelationId string `gorm:"type:varchar(100)" json:"relation_id"`
|
||
|
}
|
||
|
|
||
|
func (Track) TableName() string {
|
||
|
return "track"
|
||
|
}
|
||
|
|
||
|
type TrackValue struct {
|
||
|
|
||
|
CheckpointDate string `json:"checkpoint_date,omitempty"`
|
||
|
TrackingDetail string `json:"tracking_detail,omitempty"`
|
||
|
CheckpointDeliveryStatus string `json:"checkpoint_delivery_status"`
|
||
|
CheckpointDeliveryStatusV2 string `json:"checkpoint_delivery_status_v2,omitempty"`
|
||
|
CheckpointDeliverySubstatus string `json:"checkpoint_delivery_substatus"`
|
||
|
CheckpointDeliverySubstatusV2 string `json:"checkpoint_delivery_substatus_v2,omitempty"`
|
||
|
}
|