增加@ForbidSubmit注解
This commit is contained in:
@ -9,6 +9,7 @@
|
|||||||
package co.yixiang.modules.shop.rest;
|
package co.yixiang.modules.shop.rest;
|
||||||
import java.util.Arrays;
|
import java.util.Arrays;
|
||||||
import co.yixiang.dozer.service.IGenerator;
|
import co.yixiang.dozer.service.IGenerator;
|
||||||
|
import co.yixiang.modules.aop.ForbidSubmit;
|
||||||
import lombok.AllArgsConstructor;
|
import lombok.AllArgsConstructor;
|
||||||
import co.yixiang.logging.aop.log.Log;
|
import co.yixiang.logging.aop.log.Log;
|
||||||
import co.yixiang.modules.product.domain.YxStoreProductRelation;
|
import co.yixiang.modules.product.domain.YxStoreProductRelation;
|
||||||
@ -72,6 +73,7 @@ public class YxStoreProductRelationController {
|
|||||||
return new ResponseEntity<>(HttpStatus.NO_CONTENT);
|
return new ResponseEntity<>(HttpStatus.NO_CONTENT);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ForbidSubmit
|
||||||
@Log("删除ProductRelation")
|
@Log("删除ProductRelation")
|
||||||
@ApiOperation("删除ProductRelation")
|
@ApiOperation("删除ProductRelation")
|
||||||
@PreAuthorize("@el.check('admin','yxStoreProductRelation:del')")
|
@PreAuthorize("@el.check('admin','yxStoreProductRelation:del')")
|
||||||
|
@ -10,6 +10,7 @@ package co.yixiang.modules.wechat.rest;
|
|||||||
|
|
||||||
import co.yixiang.dozer.service.IGenerator;
|
import co.yixiang.dozer.service.IGenerator;
|
||||||
import co.yixiang.logging.aop.log.Log;
|
import co.yixiang.logging.aop.log.Log;
|
||||||
|
import co.yixiang.modules.aop.ForbidSubmit;
|
||||||
import co.yixiang.modules.mp.domain.YxWechatLiveGoods;
|
import co.yixiang.modules.mp.domain.YxWechatLiveGoods;
|
||||||
import co.yixiang.modules.mp.service.YxWechatLiveGoodsService;
|
import co.yixiang.modules.mp.service.YxWechatLiveGoodsService;
|
||||||
import co.yixiang.modules.mp.service.dto.YxWechatLiveGoodsDto;
|
import co.yixiang.modules.mp.service.dto.YxWechatLiveGoodsDto;
|
||||||
@ -63,6 +64,7 @@ public class YxWechatLiveGoodsController {
|
|||||||
return new ResponseEntity<>(yxWechatLiveGoodsService.queryAll(criteria,pageable),HttpStatus.OK);
|
return new ResponseEntity<>(yxWechatLiveGoodsService.queryAll(criteria,pageable),HttpStatus.OK);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ForbidSubmit
|
||||||
@PostMapping
|
@PostMapping
|
||||||
@Log("新增yxWechatLiveGoods")
|
@Log("新增yxWechatLiveGoods")
|
||||||
@ApiOperation("新增yxWechatLiveGoods")
|
@ApiOperation("新增yxWechatLiveGoods")
|
||||||
@ -71,6 +73,7 @@ public class YxWechatLiveGoodsController {
|
|||||||
return new ResponseEntity<>(yxWechatLiveGoodsService.saveGoods(resources),HttpStatus.CREATED);
|
return new ResponseEntity<>(yxWechatLiveGoodsService.saveGoods(resources),HttpStatus.CREATED);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ForbidSubmit
|
||||||
@PutMapping
|
@PutMapping
|
||||||
@Log("修改yxWechatLiveGoods")
|
@Log("修改yxWechatLiveGoods")
|
||||||
@ApiOperation("修改yxWechatLiveGoods")
|
@ApiOperation("修改yxWechatLiveGoods")
|
||||||
@ -80,6 +83,7 @@ public class YxWechatLiveGoodsController {
|
|||||||
return new ResponseEntity<>(HttpStatus.NO_CONTENT);
|
return new ResponseEntity<>(HttpStatus.NO_CONTENT);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ForbidSubmit
|
||||||
@Log("删除yxWechatLiveGoods")
|
@Log("删除yxWechatLiveGoods")
|
||||||
@ApiOperation("删除yxWechatLiveGoods")
|
@ApiOperation("删除yxWechatLiveGoods")
|
||||||
@PreAuthorize("@el.check('admin','yxWechatLiveGoods:del')")
|
@PreAuthorize("@el.check('admin','yxWechatLiveGoods:del')")
|
||||||
|
Reference in New Issue
Block a user