feat(shop): 移除商户管理接口权限注解
- 删除分页查询接口的权限校验注解 - 删除查询全部商户接口的权限校验注解 - 删除根据ID查询商户接口的权限校验注解 - 删除添加商户接口的权限校验和操作日志注解
This commit is contained in:
@@ -30,7 +30,6 @@ public class ShopMerchantController extends BaseController {
|
||||
@Resource
|
||||
private ShopMerchantService shopMerchantService;
|
||||
|
||||
@PreAuthorize("hasAuthority('shop:shopMerchant:list')")
|
||||
@Operation(summary = "分页查询商户")
|
||||
@GetMapping("/page")
|
||||
public ApiResult<PageResult<ShopMerchant>> page(ShopMerchantParam param) {
|
||||
@@ -38,7 +37,6 @@ public class ShopMerchantController extends BaseController {
|
||||
return success(shopMerchantService.pageRel(param));
|
||||
}
|
||||
|
||||
@PreAuthorize("hasAuthority('shop:shopMerchant:list')")
|
||||
@Operation(summary = "查询全部商户")
|
||||
@GetMapping()
|
||||
public ApiResult<List<ShopMerchant>> list(ShopMerchantParam param) {
|
||||
@@ -46,7 +44,6 @@ public class ShopMerchantController extends BaseController {
|
||||
return success(shopMerchantService.listRel(param));
|
||||
}
|
||||
|
||||
@PreAuthorize("hasAuthority('shop:shopMerchant:list')")
|
||||
@Operation(summary = "根据id查询商户")
|
||||
@GetMapping("/{id}")
|
||||
public ApiResult<ShopMerchant> get(@PathVariable("id") Long id) {
|
||||
@@ -54,8 +51,6 @@ public class ShopMerchantController extends BaseController {
|
||||
return success(shopMerchantService.getByIdRel(id));
|
||||
}
|
||||
|
||||
@PreAuthorize("hasAuthority('shop:shopMerchant:save')")
|
||||
@OperationLog
|
||||
@Operation(summary = "添加商户")
|
||||
@PostMapping()
|
||||
public ApiResult<?> save(@RequestBody ShopMerchant shopMerchant) {
|
||||
|
||||
Reference in New Issue
Block a user