Dockerfile

This commit is contained in:
2026-03-18 10:18:03 +08:00
parent 5c5dbc7420
commit b65f3439f3
189 changed files with 19027 additions and 0 deletions

View File

@@ -0,0 +1,41 @@
package stock
// InventoryCountScope 库存盘点范围枚举
type InventoryCountScope int
const (
InventoryCountScopeWarehouse InventoryCountScope = 1 // 按仓库盘点
InventoryCountScopeZone InventoryCountScope = 2 // 按库区盘点
InventoryCountScopeLocation InventoryCountScope = 3 // 按库位盘点
InventoryCountScopeSku InventoryCountScope = 4 // 按SKU盘点
InventoryCountScopeAsset InventoryCountScope = 5 // 按资产盘点
)
// GetAllInventoryCountScopes 获取所有盘点范围
func GetAllInventoryCountScopes() []InventoryCountScope {
return []InventoryCountScope{
InventoryCountScopeWarehouse,
InventoryCountScopeZone,
InventoryCountScopeLocation,
InventoryCountScopeSku,
InventoryCountScopeAsset,
}
}
// String 获取盘点范围字符串表示
func (i InventoryCountScope) String() string {
switch i {
case InventoryCountScopeWarehouse:
return "按仓库盘点"
case InventoryCountScopeZone:
return "按库区盘点"
case InventoryCountScopeLocation:
return "按库位盘点"
case InventoryCountScopeSku:
return "按SKU盘点"
case InventoryCountScopeAsset:
return "按资产盘点"
default:
return "未知"
}
}