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

Commit 8179e151 authored by jiangxiulong's avatar jiangxiulong

抽奖详情

parent a2643244
......@@ -26,4 +26,6 @@ public interface ISweetIntegralActivityDrawService extends IService<SweetIntegra
ResponseDto<List<IntegralActivityDrawVo>> winPrizeUser(String integralActivityId);
ResponseDto perfectAddress(String drawId, String receivingAddressesId, String receivingName, String receivingPhone, String receivingAddress);
ResponseDto<IntegralActivityDrawVo> detail(String drawId);
}
......@@ -67,16 +67,16 @@ public class SweetIntegralActivityDrawController {
return activityDrawService.winPrizeUser(integralActivityId);
}
/*@GetMapping("detail/{draw_id}")
@GetMapping("detail/{drawId}")
@ApiOperation("抽奖详情")
@ApiImplicitParams({
@ApiImplicitParam(type = "query", dataType = "String", name = "integralActivityId", value = "活动id", required = true)
@ApiImplicitParam(type = "path", dataType = "String", name = "drawId", value = "drawId", required = true)
})
public ResponseDto<SweetIntegralActivityPrizeVo> create(
@RequestParam("integralActivityId") String integralActivityId
public ResponseDto<IntegralActivityDrawVo> detail(
@PathVariable("drawId") String drawId
) {
return activityDrawService.create(integralActivityId);
}*/
return activityDrawService.detail(drawId);
}
@PostMapping("perfectAddress")
@ApiOperation("中奖完善收货地址")
......
......@@ -243,6 +243,12 @@ public class SweetIntegralActivityDrawServiceImpl extends ServiceImpl<SweetInteg
return ResponseDto.success();
}
@Override
public ResponseDto<IntegralActivityDrawVo> detail(String drawId) {
IntegralActivityDrawVo drawVo = redisDataUtils.getIntegralActivityDrawInfo(drawId);
return ResponseDto.success(drawVo);
}
/**
* 抽奖方法
*/
......
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