123456789101112131415161718192021222324252627282930313233 |
- package model
- import model2 "cold-logistics/common/model"
- // 仓库
- type Warehouse struct {
- model2.Model
- Name string `json:"name" gorm:"size:128"` // 商品名称
- Sn string `json:"sn" gorm:"size:128"` // sn
- Address string `json:"address" gorm:"size:255;"` // 地址
- Status string `json:"status" gorm:"size:4;not null;default:'2';comment:状态"` // 1-停用 2-启用
- UserId int `json:"userId" gorm:"size:255;"` // 仓管id
- HistorySn model2.StringList `json:"historySn"` // 历史绑定的sn
- User SysUserOmit `json:"user"`
- model2.ControlBy
- model2.ModelTime
- model2.DeptBy
- }
- type WarehouseOmit struct {
- Id int `json:"id,omitempty"` // 主键编码
- Name string `json:"name,omitempty"` // 名称
- Sn string `json:"sn,omitempty"` // sn
- UserId int `json:"userId,omitempty"` // 仓管id
- User SysUserOmit `json:"user,omitempty"`
- }
- func (Warehouse) TableName() string {
- return "warehouse"
- }
- func (WarehouseOmit) TableName() string {
- return "warehouse"
- }
|