Dockerfile
This commit is contained in:
29
consts/stock/inventory_detail_status.go
Normal file
29
consts/stock/inventory_detail_status.go
Normal file
@@ -0,0 +1,29 @@
|
||||
package stock
|
||||
|
||||
// InventoryDetailStatus 库存盘点明细状态枚举
|
||||
type InventoryDetailStatus int
|
||||
|
||||
const (
|
||||
InventoryDetailStatusPending InventoryDetailStatus = 1 // 待盘点(创建时默认)
|
||||
InventoryDetailStatusCompleted InventoryDetailStatus = 2 // 已完成(Excel导入后)
|
||||
)
|
||||
|
||||
// GetAllInventoryDetailStatuses 获取所有明细状态
|
||||
func GetAllInventoryDetailStatuses() []InventoryDetailStatus {
|
||||
return []InventoryDetailStatus{
|
||||
InventoryDetailStatusPending,
|
||||
InventoryDetailStatusCompleted,
|
||||
}
|
||||
}
|
||||
|
||||
// String 获取明细状态字符串表示
|
||||
func (i InventoryDetailStatus) String() string {
|
||||
switch i {
|
||||
case InventoryDetailStatusPending:
|
||||
return "待盘点"
|
||||
case InventoryDetailStatusCompleted:
|
||||
return "已完成"
|
||||
default:
|
||||
return "未知"
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user