增加自定义异常处理

店铺管理接口
This commit is contained in:
张松
2025-02-12 10:16:35 +08:00
parent d1a9383d34
commit 9057f5eadb
9 changed files with 323 additions and 27 deletions

View File

@@ -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) {