2023-06-19 02:12:58 +00:00
|
|
|
package gmodel
|
2023-06-16 10:52:24 +00:00
|
|
|
|
|
|
|
import (
|
|
|
|
"gorm.io/gorm"
|
|
|
|
)
|
|
|
|
|
|
|
|
// fs_cloud_receive 云仓接收工厂总单
|
|
|
|
type FsCloudReceive struct {
|
2023-06-16 11:29:48 +00:00
|
|
|
Id int64 `gorm:"primary_key;default:0;" json:"id"` //
|
|
|
|
CloudId *int64 `gorm:"index;default:0;" json:"cloud_id"` // 入库云仓id
|
|
|
|
AdminId *int64 `gorm:"index;default:0;" json:"admin_id"` // 操作员id
|
|
|
|
UserId *int64 `gorm:"index;default:0;" json:"user_id"` // 用户id
|
|
|
|
OrderId *int64 `gorm:"index;default:0;" json:"order_id"` // 入库云仓的订单
|
|
|
|
Fee *int64 `gorm:"default:0;" json:"fee"` // 运费
|
|
|
|
Delivery *string `gorm:"default:'';" json:"delivery"` // 运单号
|
|
|
|
Ctime *int64 `gorm:"default:0;" json:"ctime"` // 创建时间
|
|
|
|
Status *int64 `gorm:"default:0;" json:"status"` // 0未收到 1收到
|
2023-06-16 10:52:24 +00:00
|
|
|
}
|
|
|
|
type FsCloudReceiveModel struct{ db *gorm.DB }
|
|
|
|
|
|
|
|
func NewFsCloudReceiveModel(db *gorm.DB) *FsCloudReceiveModel { return &FsCloudReceiveModel{db} }
|