Dockerfile
This commit is contained in:
21
consts/stock/batch_status.go
Normal file
21
consts/stock/batch_status.go
Normal file
@@ -0,0 +1,21 @@
|
||||
package stock
|
||||
|
||||
// BatchStatus 批次状态枚举
|
||||
type BatchStatus int
|
||||
|
||||
const (
|
||||
BatchStatusActive BatchStatus = 1 // 活跃
|
||||
BatchStatusExpiring BatchStatus = 2 // 临期
|
||||
BatchStatusExpired BatchStatus = 3 // 过期
|
||||
BatchStatusSoldOut BatchStatus = 4 // 售罄
|
||||
)
|
||||
|
||||
// GetAllBatchStatuses 获取所有批次状态
|
||||
func GetAllBatchStatuses() []BatchStatus {
|
||||
return []BatchStatus{
|
||||
BatchStatusActive,
|
||||
BatchStatusExpiring,
|
||||
BatchStatusExpired,
|
||||
BatchStatusSoldOut,
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user