增加自定义异常处理
店铺管理接口
This commit is contained in:
@@ -26,7 +26,7 @@ public class ShopInfoController {
|
||||
}
|
||||
|
||||
/**
|
||||
* 店铺列表
|
||||
* 店铺列表, 只允许管理员调用
|
||||
* 权限标识: shopInfo:list
|
||||
*/
|
||||
@SaAdminCheckRole("管理员")
|
||||
@@ -37,7 +37,17 @@ public class ShopInfoController {
|
||||
}
|
||||
|
||||
/**
|
||||
* 店铺添加
|
||||
* 店铺详情
|
||||
* 权限标识: shopInfo:detail
|
||||
*/
|
||||
@SaAdminCheckPermission("shopInfo:detail")
|
||||
@GetMapping("/detail")
|
||||
public CzgResult<ShopInfo> detail() {
|
||||
return CzgResult.success(shopInfoService.detail());
|
||||
}
|
||||
|
||||
/**
|
||||
* 店铺添加, 只允许管理员调用
|
||||
* 权限标识: shopInfo:add
|
||||
*/
|
||||
@SaAdminCheckRole("管理员")
|
||||
@@ -51,7 +61,6 @@ public class ShopInfoController {
|
||||
* 店铺编辑
|
||||
* 权限标识: shopInfo:edit
|
||||
*/
|
||||
@SaAdminCheckRole("管理员")
|
||||
@SaAdminCheckPermission("shopInfo:edit")
|
||||
@PutMapping
|
||||
public CzgResult<?> edit(@RequestBody @Validated ShopInfoEditDTO shopInfoEditDTO) {
|
||||
|
||||
Reference in New Issue
Block a user