fusenapi/model/gmodel/fs_factory_ship_tmp_gen.go

29 lines
1.4 KiB
Go
Raw 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_factory_ship_tmp
type FsFactoryShipTmp struct {
2023-06-19 10:27:31 +00:00
Id int64 `gorm:"primary_key;default:0;auto_increment;" json:"id"` //
2023-08-23 07:08:45 +00:00
Sn *string `gorm:"default:'';" json:"sn"` //
2023-06-19 10:27:31 +00:00
FactoryId *int64 `gorm:"default:0;" json:"factory_id"` // 工厂ID
2023-08-23 07:08:45 +00:00
OrderDetailTemplateSn *string `gorm:"default:'';" json:"order_detail_template_sn"` //
UserId *int64 `gorm:"default:0;" json:"user_id"` // 用户ID
2023-06-19 10:27:31 +00:00
AddressSent *string `gorm:"default:'';" json:"address_sent"` // 发货地址
AddressTo *string `gorm:"default:'';" json:"address_to"` // 收获地址 始终是货代公司
Num *int64 `gorm:"default:0;" json:"num"` // 发货数量
Fee *int64 `gorm:"default:0;" json:"fee"` // 运费
Ctime *int64 `gorm:"default:0;" json:"ctime"` // 添加时间
Status *int64 `gorm:"default:0;" json:"status"` // 状态位 是否到达 是否通知货代公司 是否是发到云仓
2023-06-16 11:04:13 +00:00
}
type FsFactoryShipTmpModel struct {
db *gorm.DB
name string
}
2023-06-16 11:04:13 +00:00
func NewFsFactoryShipTmpModel(db *gorm.DB) *FsFactoryShipTmpModel {
return &FsFactoryShipTmpModel{db: db, name: "fs_factory_ship_tmp"}
}