27 lines
1.2 KiB
Go
27 lines
1.2 KiB
Go
package entity
|
||
|
||
import (
|
||
public "assets/consts/public"
|
||
consts "assets/consts/stock"
|
||
"assets/model/config"
|
||
|
||
"gitea.com/red-future/common/beans"
|
||
)
|
||
|
||
// Zone 库区
|
||
type Zone struct {
|
||
beans.MongoBaseDO `bson:",inline"` // 嵌入基础字段:Id, Creator, CreatedAt, Updater, UpdatedAt, TenantId, IsDeleted
|
||
WarehouseId string `bson:"warehouseId" json:"warehouseId"` // 仓库ID
|
||
ZoneCode string `bson:"zoneCode" json:"zoneCode"` // 库区编码
|
||
ZoneName string `bson:"zoneName" json:"zoneName"` // 库区名称
|
||
ZoneType consts.ZoneType `bson:"zoneType" json:"zoneType"` // 库区类型
|
||
Status consts.ZoneStatus `bson:"status" json:"status"` // 库区状态
|
||
Capacity *map[consts.CapacityUnitType]config.Capacity `bson:"capacity" json:"capacity"` // 容量
|
||
Remark string `bson:"remark" json:"remark"` // 备注
|
||
}
|
||
|
||
// CollectionName 获取集合名称
|
||
func (Zone) CollectionName() string {
|
||
return public.ZoneCollection
|
||
}
|