@@ -28,7 +28,7 @@ import org.springframework.web.bind.annotation.RestController;
@Validated
@RestController
@ResponseWrapping
-@PreAuthorize("isBusiness('EMPLOYEE')")
+@PreAuthorize("isScope('EMPLOYEE')")
public class CategoryController {
@DubboReference
private CategoryService categoryService;
@@ -29,7 +29,7 @@ import org.springframework.web.bind.annotation.RestController;
public class ClientController {
private ClientService clientService;
@@ -22,7 +22,7 @@ import javax.validation.constraints.Min;
public class CouponController {
private CouponService couponService;
public class DepartmentController {
private DepartmentService departmentService;
@@ -32,7 +32,7 @@ import org.springframework.web.bind.annotation.RestController;
public class EmployeeController {
private EmployeeService employeeService;
public class GoodsController {
private GoodsService goodsService;
public class MenuController {
private MenuService menuService;
public class MerchantController {
private MerchantService merchantService;
@@ -34,7 +34,7 @@ import java.io.IOException;
public class ResourceController {
private ResourceService resourceService;
@@ -31,7 +31,7 @@ import org.springframework.web.bind.annotation.RestController;
public class RoleController {
private RoleService roleService;