package model import model2 "cold-logistics/common/model" // 仓库 type CoolerBox struct { model2.Model Name string `json:"name" gorm:"size:128"` // 保温箱名称 Sn string `json:"sn" gorm:"size:128"` // sn Status string `json:"status" gorm:"size:4;not null;default:'2';comment:状态"` // 1-停用 2-启用 HistorySn model2.StringList `json:"historySn"` // 历史绑定的sn model2.ControlBy model2.ModelTime model2.DeptBy } type CoolerBoxOmit struct { Id int `json:"id,omitempty"` // 主键编码 Name string `json:"name,omitempty"` // 保温箱名称 Sn string `json:"sn,omitempty"` // sn } func (CoolerBox) TableName() string { return "cooler_box" } func (CoolerBoxOmit) TableName() string { return "cooler_box" }