| | |
| | | import com.ruoyi.system.api.domain.dto.MgtBaseGetDto; |
| | | import io.swagger.annotations.Api; |
| | | import io.swagger.annotations.ApiOperation; |
| | | import org.springframework.validation.annotation.Validated; |
| | | import org.springframework.web.bind.annotation.RequestBody; |
| | | import org.springframework.web.bind.annotation.RequestMapping; |
| | | import org.springframework.web.bind.annotation.RequestMethod; |
| | |
| | | * @Date 2023/6/13 9:15 |
| | | * @Version 1.0 |
| | | */ |
| | | @Api(value = "平台端优惠券相关接口", tags = "平台端优惠券相关接口", description = "平台端优惠券相关接口") |
| | | @Api(value = "管理后台优惠券相关接口", tags = "管理后台优惠券相关接口", description = "管理后台优惠券相关接口") |
| | | @RestController |
| | | @RequestMapping("/mgt/coupon") |
| | | public class MgtCouponController { |
| | |
| | | @RequestMapping(value = "/editMgtCoupon", method = RequestMethod.POST) |
| | | @Log(title = "优惠券管理", businessType = BusinessType.UPDATE,operContent = "编辑优惠券") |
| | | @ApiOperation(value = "平台编辑优惠券") |
| | | public R editMgtCoupon(@RequestBody MgtCouponEditDto mgtCouponEditDto) { |
| | | public R editMgtCoupon(@Validated @RequestBody MgtCouponEditDto mgtCouponEditDto) { |
| | | Long userId = SecurityUtils.getUserId(); |
| | | mgtCouponEditDto.setUserId(userId); |
| | | couponService.editMgtCoupon(mgtCouponEditDto); |