|
|
@@ -40,7 +40,7 @@ public class LiveCouponController extends BaseController
|
|
|
/**
|
|
|
* 查询优惠券列表
|
|
|
*/
|
|
|
- @PreAuthorize("@ss.hasPermi('live:liveCoupon:list')")
|
|
|
+// @PreAuthorize("@ss.hasPermi('live:liveCoupon:list')")
|
|
|
@GetMapping("/list")
|
|
|
public TableDataInfo list(LiveCoupon liveCoupon)
|
|
|
{
|
|
|
@@ -53,7 +53,7 @@ public class LiveCouponController extends BaseController
|
|
|
/**
|
|
|
* 导出优惠券列表
|
|
|
*/
|
|
|
- @PreAuthorize("@ss.hasPermi('live:liveCoupon:export')")
|
|
|
+// @PreAuthorize("@ss.hasPermi('live:liveCoupon:export')")
|
|
|
@Log(title = "优惠券", businessType = BusinessType.EXPORT)
|
|
|
@GetMapping("/export")
|
|
|
public AjaxResult export(LiveCoupon liveCoupon)
|
|
|
@@ -66,7 +66,7 @@ public class LiveCouponController extends BaseController
|
|
|
/**
|
|
|
* 获取优惠券详细信息
|
|
|
*/
|
|
|
- @PreAuthorize("@ss.hasPermi('live:liveCoupon:query')")
|
|
|
+// @PreAuthorize("@ss.hasPermi('live:liveCoupon:query')")
|
|
|
@GetMapping(value = "/{couponId}")
|
|
|
public AjaxResult getInfo(@PathVariable("couponId") Long couponId)
|
|
|
{
|
|
|
@@ -76,7 +76,7 @@ public class LiveCouponController extends BaseController
|
|
|
/**
|
|
|
* 新增优惠券
|
|
|
*/
|
|
|
- @PreAuthorize("@ss.hasPermi('live:liveCoupon:add')")
|
|
|
+// @PreAuthorize("@ss.hasPermi('live:liveCoupon:add')")
|
|
|
@Log(title = "优惠券", businessType = BusinessType.INSERT)
|
|
|
@PostMapping
|
|
|
public AjaxResult add(@RequestBody LiveCoupon liveCoupon)
|
|
|
@@ -87,7 +87,7 @@ public class LiveCouponController extends BaseController
|
|
|
/**
|
|
|
* 修改优惠券
|
|
|
*/
|
|
|
- @PreAuthorize("@ss.hasPermi('live:liveCoupon:edit')")
|
|
|
+// @PreAuthorize("@ss.hasPermi('live:liveCoupon:edit')")
|
|
|
@Log(title = "优惠券", businessType = BusinessType.UPDATE)
|
|
|
@PutMapping
|
|
|
public AjaxResult edit(@RequestBody LiveCoupon liveCoupon)
|
|
|
@@ -98,7 +98,7 @@ public class LiveCouponController extends BaseController
|
|
|
/**
|
|
|
* 删除优惠券
|
|
|
*/
|
|
|
- @PreAuthorize("@ss.hasPermi('live:liveCoupon:remove')")
|
|
|
+// @PreAuthorize("@ss.hasPermi('live:liveCoupon:remove')")
|
|
|
@Log(title = "优惠券", businessType = BusinessType.DELETE)
|
|
|
@DeleteMapping("/{couponIds}")
|
|
|
public AjaxResult remove(@PathVariable Long[] couponIds)
|
|
|
@@ -106,7 +106,7 @@ public class LiveCouponController extends BaseController
|
|
|
return toAjax(liveCouponService.deleteLiveCouponByIds(couponIds));
|
|
|
}
|
|
|
|
|
|
- @PreAuthorize("@ss.hasPermi('live:liveCoupon:publish')")
|
|
|
+// @PreAuthorize("@ss.hasPermi('live:liveCoupon:publish')")
|
|
|
@PostMapping("/publish")
|
|
|
public AjaxResult publish(@RequestBody LiveCouponPublishParam publishParam)
|
|
|
{
|
|
|
@@ -127,7 +127,7 @@ public class LiveCouponController extends BaseController
|
|
|
return toAjax( liveCouponIssueService.insertLiveCouponIssue(issue));
|
|
|
}
|
|
|
|
|
|
- @PreAuthorize("@ss.hasPermi('live:liveCoupon:batchPublish')")
|
|
|
+// @PreAuthorize("@ss.hasPermi('live:liveCoupon:batchPublish')")
|
|
|
@PostMapping("/batchPublish")
|
|
|
public R batchPublish(@RequestBody LiveCouponPublishParam publishParam)
|
|
|
{
|
|
|
@@ -152,7 +152,7 @@ public class LiveCouponController extends BaseController
|
|
|
return R.ok();
|
|
|
}
|
|
|
|
|
|
- @PreAuthorize("@ss.hasPermi('live:liveCoupon:query')")
|
|
|
+// @PreAuthorize("@ss.hasPermi('live:liveCoupon:query')")
|
|
|
@GetMapping(value = "/listLiveCoupon")
|
|
|
public TableDataInfo listLiveCoupon(@RequestParam("liveId") Long liveId)
|
|
|
{
|
|
|
@@ -160,7 +160,7 @@ public class LiveCouponController extends BaseController
|
|
|
List<LiveCoupon> list = liveCouponService.selectLiveCouponByLiveId(liveId);
|
|
|
return getDataTable(list);
|
|
|
}
|
|
|
- @PreAuthorize("@ss.hasPermi('live:liveCoupon:query')")
|
|
|
+// @PreAuthorize("@ss.hasPermi('live:liveCoupon:query')")
|
|
|
@GetMapping(value = "/listCoupon")
|
|
|
public TableDataInfo listCoupon(@RequestParam("liveId") Long liveId,@RequestParam("couponName") String couponName)
|
|
|
{
|
|
|
@@ -172,7 +172,7 @@ public class LiveCouponController extends BaseController
|
|
|
/**
|
|
|
* 查询优惠券列表
|
|
|
*/
|
|
|
- @PreAuthorize("@ss.hasPermi('live:liveCoupon:list')")
|
|
|
+// @PreAuthorize("@ss.hasPermi('live:liveCoupon:list')")
|
|
|
@GetMapping("/listOn")
|
|
|
public TableDataInfo listOn(@RequestParam("liveId") Long liveId)
|
|
|
{
|
|
|
@@ -182,7 +182,7 @@ public class LiveCouponController extends BaseController
|
|
|
}
|
|
|
|
|
|
|
|
|
- @PreAuthorize("@ss.hasPermi('live:liveCoupon:add')")
|
|
|
+// @PreAuthorize("@ss.hasPermi('live:liveCoupon:add')")
|
|
|
@Log(title = "直播优惠券", businessType = BusinessType.INSERT)
|
|
|
@PostMapping("/delLiveCoupon")
|
|
|
public AjaxResult delLiveCoupon(@RequestBody LiveCouponListVo vo)
|
|
|
@@ -193,7 +193,7 @@ public class LiveCouponController extends BaseController
|
|
|
/**
|
|
|
* 新增直播商品
|
|
|
*/
|
|
|
- @PreAuthorize("@ss.hasPermi('live:liveCoupon:add')")
|
|
|
+// @PreAuthorize("@ss.hasPermi('live:liveCoupon:add')")
|
|
|
@Log(title = "直播优惠券", businessType = BusinessType.INSERT)
|
|
|
@PostMapping("/addLiveCoupon")
|
|
|
public AjaxResult addLiveCoupon(@RequestBody Map<String, Object> payload)
|
|
|
@@ -202,7 +202,7 @@ public class LiveCouponController extends BaseController
|
|
|
return toAjax(liveCouponService.insertLiveCouponEntity(payload));
|
|
|
}
|
|
|
|
|
|
- @PreAuthorize("@ss.hasPermi('live:liveCoupon:edit')")
|
|
|
+// @PreAuthorize("@ss.hasPermi('live:liveCoupon:edit')")
|
|
|
@PostMapping("/handleIsShowChange")
|
|
|
public R handleIsShowChange(@RequestBody Map<String, Object> payload) {
|
|
|
return liveCouponService.handleIsShowChange(payload);
|
|
|
@@ -211,7 +211,7 @@ public class LiveCouponController extends BaseController
|
|
|
/**
|
|
|
* 批量删除视频
|
|
|
*/
|
|
|
- @PreAuthorize("@ss.hasPermi('live:liveCoupon:edit')")
|
|
|
+// @PreAuthorize("@ss.hasPermi('live:liveCoupon:edit')")
|
|
|
@PostMapping("/handleDeleteSelected")
|
|
|
public R handleDeleteSelected(@RequestBody LiveCouponListVo listVo) {
|
|
|
return liveCouponService.handleDeleteSelectedAdmin(listVo);
|
|
|
@@ -219,7 +219,7 @@ public class LiveCouponController extends BaseController
|
|
|
/**
|
|
|
* 批量删除视频
|
|
|
*/
|
|
|
- @PreAuthorize("@ss.hasPermi('live:liveCoupon:edit')")
|
|
|
+// @PreAuthorize("@ss.hasPermi('live:liveCoupon:edit')")
|
|
|
@PostMapping("/updateLiveCouponBind")
|
|
|
public R updateLiveCouponBind(@RequestBody LiveCouponListVo listVo) {
|
|
|
return liveCouponService.updateLiveCouponBind(listVo);
|