代码初始化

This commit is contained in:
2026-04-02 10:22:36 +08:00
commit 7394983236
35 changed files with 3014 additions and 0 deletions

View File

@@ -0,0 +1,13 @@
package market
// MarketActionType 市场操作类型
type MarketActionType string
const (
MarketActionList MarketActionType = "list" // 上架
MarketActionUnlist MarketActionType = "unlist" // 下架
MarketActionBuy MarketActionType = "buy" // 购买
MarketActionSold MarketActionType = "sold" // 售出
MarketActionPriceUpdate MarketActionType = "price_update" // 更新价格
MarketActionExpire MarketActionType = "expire" // 过期
)

View File

@@ -0,0 +1,11 @@
package market
// MarketStatus 市场物品状态
type MarketStatus int
const (
MarketStatusActive MarketStatus = 1 // 活跃(上架中)
MarketStatusSold MarketStatus = 2 // 已售出
MarketStatusInactive MarketStatus = 3 // 已下架
MarketStatusExpired MarketStatus = 4 // 已过期
)