商品模块代码提交
This commit is contained in:
@@ -2,6 +2,7 @@ package com.czg.controller.admin;
|
||||
|
||||
import com.czg.log.annotation.OperationLog;
|
||||
import com.czg.product.dto.ProductDTO;
|
||||
import com.czg.product.param.ProductIsSaleParam;
|
||||
import com.czg.product.service.ProductService;
|
||||
import com.czg.resp.CzgResult;
|
||||
import com.czg.utils.AssertUtil;
|
||||
@@ -80,4 +81,15 @@ public class ProductController {
|
||||
return CzgResult.success();
|
||||
}
|
||||
|
||||
/**
|
||||
* 商品-上下架
|
||||
*/
|
||||
@PostMapping("/on-off")
|
||||
@OperationLog("商品-上下架")
|
||||
//@SaAdminCheckPermission("product:on-off")
|
||||
public CzgResult<Void> onOffProduct(@RequestBody @Validated({DefaultGroup.class}) ProductIsSaleParam param) {
|
||||
productService.onOffProduct(param);
|
||||
return CzgResult.success();
|
||||
}
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user