| | |
| | | |
| | | @LoginRequired |
| | | @ApiOperation(value = "热销套餐", notes = "热销套餐") |
| | | @GetMapping("/discountPage") |
| | | @PostMapping("/discountPage") |
| | | @ApiImplicitParams({ |
| | | @ApiImplicitParam(paramType = "header", dataType = "String", name = "token", value = "用户token值", required = true) |
| | | }) |
| | |
| | | return ApiResponse.success(discountService.findPage(pageWrap)); |
| | | } |
| | | |
| | | |
| | | @LoginRequired |
| | | @ApiOperation(value = "套餐详情", notes = "套餐详情") |
| | | @GetMapping("/discountDetail") |
| | | @ApiImplicitParams({ |
| | | @ApiImplicitParam(paramType = "header", dataType = "String", name = "token", value = "用户token值", required = true), |
| | | @ApiImplicitParam(paramType = "query", dataType = "String", name = "id", value = "套餐主键", required = true) |
| | | }) |
| | | public ApiResponse<Discount> discountPage (@RequestParam String id) { |
| | | return ApiResponse.success(discountService.findById(id)); |
| | | } |
| | | |
| | | |
| | | @LoginRequired |