Dockerfile
This commit is contained in:
21
consts/stock/stock_status.go
Normal file
21
consts/stock/stock_status.go
Normal file
@@ -0,0 +1,21 @@
|
||||
package stock
|
||||
|
||||
// StockStatus 库存状态枚举
|
||||
type StockStatus int
|
||||
|
||||
const (
|
||||
StockStatusAvailable StockStatus = 1 // 可用,未分配渠道
|
||||
StockStatusSold StockStatus = 2 // 已售出
|
||||
StockStatusReserved StockStatus = 3 // 预留
|
||||
StockStatusLocked StockStatus = 4 // 锁定
|
||||
)
|
||||
|
||||
// GetAllStockStatuses 获取所有库存状态
|
||||
func GetAllStockStatuses() []StockStatus {
|
||||
return []StockStatus{
|
||||
StockStatusAvailable,
|
||||
StockStatusSold,
|
||||
StockStatusReserved,
|
||||
StockStatusLocked,
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user