Files
assets/consts/public/redis_key.go
qhd 829dc07747 refactor: 重构资产实体和DTO结构类型
将gjson.Json类型替换为具体的结构体和map类型,修正DAO层链式调用,启用SKU元数据校验逻辑
2026-03-22 20:08:32 +08:00

17 lines
860 B
Go
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
package public
const StockDetailLockKey = "stock:lock:skuId-%v"
// 消费者配置(从 Redis Stream 消费请求)
const StockDetailQueueName = "assets:stock:stream" // 请求 Stream 键名与发消息的key一致
const StockDetailConsumerName = "assets-stock-consumer" // 消费者名称(唯一标识)
const StockDetailPrefetchCount = 1 // 批处理大小每次读取1条
const StockDetailAutoAck = false // ACK是否自动确认true自动确认false不确认
// 业务自增序列号前缀 Redis Key
const (
StockInventoryNoKeyPrefix = "IC" // 序列号Key前缀如 IC-202602101215-000001
StockInboundNoKeyPrefix = "INB" // 序列号Key前缀如 INB-202602101215-000001
StockBatchNoKeyPrefix = "BATCH" // 序列号Key前缀如 BATCH-202602101215-000001
)