| | |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.web.bind.annotation.*; |
| | | |
| | | import java.util.Map; |
| | | |
| | | @Slf4j |
| | | @Api(tags = "会员优惠券") |
| | | @RestController |
| | |
| | | } |
| | | |
| | | @LoginRequired |
| | | @ApiOperation(value = "待领取/待使用数量", notes = "角标用") |
| | | @GetMapping("/pendingCount") |
| | | @ApiImplicitParams({ |
| | | @ApiImplicitParam(paramType = "header", dataType = "String", name = "token", value = "用户token值", required = true), |
| | | }) |
| | | public ApiResponse<Map<String, Integer>> pendingCount() { |
| | | return ApiResponse.success("操作成功", memberCouponService.findPendingCount(getMemberId())); |
| | | } |
| | | |
| | | @LoginRequired |
| | | @ApiOperation(value = "领取优惠券", notes = "小程序端") |
| | | @GetMapping("/claim") |
| | | @ApiImplicitParams({ |