feat: 完善平台总后台模块
This commit is contained in:
17
backend/api/internal/models/delivery_track.go
Normal file
17
backend/api/internal/models/delivery_track.go
Normal file
@@ -0,0 +1,17 @@
|
||||
package models
|
||||
|
||||
import (
|
||||
"git.apinb.com/bsm-sdk/core/database"
|
||||
"time"
|
||||
)
|
||||
|
||||
// DeliveryTrack 对应 delivery_track,保存配送轨迹摘要。
|
||||
type DeliveryTrack struct {
|
||||
Entity
|
||||
DeliveryTaskID uint64 `gorm:"column:delivery_task_id;not null;index" json:"delivery_task_id"`
|
||||
StartedAt *time.Time `gorm:"column:started_at;type:timestamptz" json:"started_at"`
|
||||
CompletedAt *time.Time `gorm:"column:completed_at;type:timestamptz" json:"completed_at"`
|
||||
}
|
||||
|
||||
func init() { database.AppendMigrate(&DeliveryTrack{}) }
|
||||
func (table *DeliveryTrack) TableName() string { return "delivery_track" }
|
||||
Reference in New Issue
Block a user