fusenapi/model/gmodel/fs_cloud_receive_gen.go

27 lines
1.1 KiB
Go
Raw Permalink Normal View History

2023-06-19 01:53:35 +00:00
package gmodel
2023-06-16 11:04:13 +00:00
import (
"gorm.io/gorm"
)
// fs_cloud_receive 云仓接收工厂总单
type FsCloudReceive struct {
2023-06-19 10:27:31 +00:00
Id int64 `gorm:"primary_key;default:0;auto_increment;" 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 11:04:13 +00:00
}
type FsCloudReceiveModel struct {
db *gorm.DB
name string
}
2023-06-16 11:04:13 +00:00
func NewFsCloudReceiveModel(db *gorm.DB) *FsCloudReceiveModel {
return &FsCloudReceiveModel{db: db, name: "fs_cloud_receive"}
}