You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

31 lines
662 B
Go

package redistab
import "fmt"
//订单
func GetProductOrderList(productId uint) string {
return fmt.Sprintf("product:Order:%d", productId)
}
//已售数量
func GetProductSaleNum(productId uint) string {
return fmt.Sprintf("product:Sale:%d", productId)
}
//库存
func GetProductStockSize(productId uint) string {
return fmt.Sprintf("product:stock:%d", productId)
}
func GetProductDetail(productId uint) string {
return fmt.Sprintf("product:detail:%d", productId)
}
func GetProductBitMap() string {
return fmt.Sprintf("product:bitmap")
}
func GetProductDetailLogCount(productId uint) string {
return fmt.Sprintf("product:log_count:%d", productId)
}