Files
assets/consts/public/redis_key.go

19 lines
897 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 GmqMsgPluginsName = "gmq_msg"
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
)