Files
assets/model/entity/stock/warehouse.go
2026-03-18 10:18:03 +08:00

28 lines
1.4 KiB
Go
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
package entity
import (
public "assets/consts/public"
consts "assets/consts/stock"
"assets/model/config"
"gitea.com/red-future/common/beans"
)
// Warehouse 仓库
type Warehouse struct {
beans.MongoBaseDO `bson:",inline"` // 嵌入基础字段Id, Creator, CreatedAt, Updater, UpdatedAt, TenantId, IsDeleted
WarehouseCode string `bson:"warehouseCode" json:"warehouseCode"` // 仓库编码
WarehouseName string `bson:"warehouseName" json:"warehouseName"` // 仓库名称
Address string `bson:"address" json:"address"` // 仓库地址
ContactPerson string `bson:"contactPerson" json:"contactPerson"` // 联系人
ContactPhone string `bson:"contactPhone" json:"contactPhone"` // 联系电话
Status consts.WarehouseStatus `bson:"status" json:"status"` // 仓库状态
Capacity *map[consts.CapacityUnitType]config.Capacity `bson:"capacity" json:"capacity"` // 容量
Remark string `bson:"remark" json:"remark"` // 备注
}
// CollectionName 获取集合名称
func (Warehouse) CollectionName() string {
return public.WarehouseCollection
}