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