feat: 完善平台总后台模块
This commit is contained in:
14
backend/api/internal/models/delivery_task.go
Normal file
14
backend/api/internal/models/delivery_task.go
Normal file
@@ -0,0 +1,14 @@
|
||||
package models
|
||||
|
||||
import "git.apinb.com/bsm-sdk/core/database"
|
||||
|
||||
// DeliveryTask 对应 delivery_task,保存配送履约任务。
|
||||
type DeliveryTask struct {
|
||||
Entity
|
||||
EcOrderID uint64 `gorm:"column:ec_order_id;not null;index" json:"ec_order_id"`
|
||||
StaffAccountID uint64 `gorm:"column:staff_account_id;not null;default:0;index" json:"staff_account_id"`
|
||||
DeliveryPointID uint64 `gorm:"column:delivery_point_id;not null;index" json:"delivery_point_id"`
|
||||
}
|
||||
|
||||
func init() { database.AppendMigrate(&DeliveryTask{}) }
|
||||
func (table *DeliveryTask) TableName() string { return "delivery_task" }
|
||||
Reference in New Issue
Block a user