feat: spu
This commit is contained in:
@@ -23,4 +23,36 @@ class ApiRedisKey
|
||||
{
|
||||
return 'login:or:register:code:'.$code;
|
||||
}
|
||||
|
||||
/**
|
||||
* 自选商品列表
|
||||
* @param int $cycleId
|
||||
* @param int $kitchenId
|
||||
* @return string
|
||||
*/
|
||||
public static function optionalGoodListKey(int $cycleId, int $kitchenId): string
|
||||
{
|
||||
return 'good:list:optional:cycle_id:'.$cycleId.':kitchen_id:'.$kitchenId;
|
||||
}
|
||||
|
||||
/**
|
||||
* 套餐商品列表
|
||||
* @param int $cycleId
|
||||
* @param int $kitchenId
|
||||
* @return string
|
||||
*/
|
||||
public static function mealGoodListKey(int $cycleId, int $kitchenId): string
|
||||
{
|
||||
return 'good:list:meal:cycle_id:'.$cycleId.':kitchen_id:'.$kitchenId;
|
||||
}
|
||||
|
||||
/**
|
||||
* @param int $cycleId
|
||||
* @param int $kitchenId
|
||||
* @return string
|
||||
*/
|
||||
public static function goodStockKey(int $cycleId, int $kitchenId): string
|
||||
{
|
||||
return 'good:list:stock:cycle_id:'.$cycleId.':kitchen_id:'.$kitchenId;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user