店铺分类维护信息错误问题处理。
This commit is contained in:
@@ -1,8 +1,7 @@
|
||||
package cn.lili.controller.goods;
|
||||
|
||||
import cn.lili.common.enums.ResultCode;
|
||||
import cn.lili.common.security.context.UserContext;
|
||||
import cn.lili.common.enums.ResultUtil;
|
||||
import cn.lili.common.security.context.UserContext;
|
||||
import cn.lili.common.vo.ResultMessage;
|
||||
import cn.lili.modules.store.entity.dos.StoreGoodsLabel;
|
||||
import cn.lili.modules.store.entity.vos.StoreGoodsLabelVO;
|
||||
@@ -11,6 +10,7 @@ import io.swagger.annotations.Api;
|
||||
import io.swagger.annotations.ApiImplicitParam;
|
||||
import io.swagger.annotations.ApiOperation;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.validation.annotation.Validated;
|
||||
import org.springframework.web.bind.annotation.*;
|
||||
|
||||
import java.util.List;
|
||||
@@ -48,13 +48,13 @@ public class GoodsLabelStoreController {
|
||||
|
||||
@ApiOperation(value = "添加店铺商品分类")
|
||||
@PostMapping
|
||||
public ResultMessage<StoreGoodsLabel> add(StoreGoodsLabel storeGoodsLabel) {
|
||||
public ResultMessage<StoreGoodsLabel> add(@Validated StoreGoodsLabel storeGoodsLabel) {
|
||||
return ResultUtil.data(storeGoodsLabelService.addStoreGoodsLabel(storeGoodsLabel));
|
||||
}
|
||||
|
||||
@ApiOperation(value = "修改店铺商品分类")
|
||||
@PutMapping
|
||||
public ResultMessage<StoreGoodsLabel> edit(StoreGoodsLabel storeGoodsLabel) {
|
||||
public ResultMessage<StoreGoodsLabel> edit(@Validated StoreGoodsLabel storeGoodsLabel) {
|
||||
return ResultUtil.data(storeGoodsLabelService.editStoreGoodsLabel(storeGoodsLabel));
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user