2026-03-18 10:18:03 +08:00
|
|
|
|
package entity
|
|
|
|
|
|
|
|
|
|
|
|
import (
|
|
|
|
|
|
public "assets/consts/public"
|
|
|
|
|
|
consts "assets/consts/stock"
|
|
|
|
|
|
"assets/model/config"
|
|
|
|
|
|
|
2026-06-10 15:40:17 +08:00
|
|
|
|
"gitea.redpowerfuture.com/red-future/common/beans"
|
2026-03-18 10:18:03 +08:00
|
|
|
|
)
|
|
|
|
|
|
|
|
|
|
|
|
// 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
|
|
|
|
|
|
}
|