记得上下班打卡 | git大法好,push需谨慎

Commit cba45393 authored by wangyifan's avatar wangyifan

福袋功能-分配兑换码

parent 07c1a26c
......@@ -126,4 +126,6 @@ public class KylinRedisConst {
// 福袋活动
public static final String LUCKY_BAG_ACTIVITY = "kylin:luckybag:activity";
public static final String LUCKY_BAG = "kylin:luckybag";
public static final String LUCKY_BAG_CODE_LOCK = "kylin:luckybag:code:lock:";
}
......@@ -3,5 +3,5 @@ package com.liquidnet.service.kylin.service;
import com.liquidnet.service.kylin.dto.vo.KylinLuckyBagVo;
public interface IKylinLuckyBagService {
KylinLuckyBagVo getLuckyBagBenefitsByOrderId(String orderId);
KylinLuckyBagVo getLuckyBagByOrderId(String orderId);
}
......@@ -68,16 +68,6 @@ public class KylinLuckyBag implements Serializable, Cloneable{
*/
private String sendTime;
/**
* 福袋发放数量
*/
private Integer sendTotal;
/**
* 发放状态: 0:未解锁 1:已解锁
*/
private Integer sendState;
/**
* 创建时间
*/
......
package com.liquidnet.service.kylin.controller;
import com.liquidnet.commons.lang.util.JsonUtils;
import com.liquidnet.service.base.ResponseDto;
import com.liquidnet.service.kylin.dto.vo.KylinLuckyBagVo;
import com.liquidnet.service.kylin.service.IKylinLuckyBagService;
......@@ -13,8 +12,6 @@ import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;
import java.util.List;
@Api(tags = "前端-获取福袋相关")
@RestController
@RequestMapping("/luckyBag")
......@@ -27,7 +24,7 @@ public class KylinLuckyBagController {
@GetMapping("")
@ApiOperation("获取福袋权益列表")
public ResponseDto<KylinLuckyBagVo> getLuckyBagBenefitsByOrderId(@RequestParam(value = "orderId") String orderId) {
return ResponseDto.success(benefitsService.getLuckyBagBenefitsByOrderId(orderId));
public ResponseDto<KylinLuckyBagVo> getLuckyBagByOrderId(@RequestParam(value = "orderId") String orderId) {
return ResponseDto.success(benefitsService.getLuckyBagByOrderId(orderId));
}
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment