权限获取接口
This commit is contained in:
@@ -74,7 +74,7 @@ public class AuthorizationController {
|
|||||||
|
|
||||||
@GetMapping("/permission")
|
@GetMapping("/permission")
|
||||||
public CzgResult<?> getPermission() {
|
public CzgResult<?> getPermission() {
|
||||||
return CzgResult.success();
|
return CzgResult.success(StpKit.USER.getPermissionList());
|
||||||
}
|
}
|
||||||
|
|
||||||
@Resource
|
@Resource
|
||||||
@@ -90,7 +90,13 @@ public class AuthorizationController {
|
|||||||
// rabbitPublisher.sendOrderPrintMsg("552");
|
// rabbitPublisher.sendOrderPrintMsg("552");
|
||||||
// printMqListener.orderPrint("1");
|
// printMqListener.orderPrint("1");
|
||||||
// return CzgResult.success(Map.of("token", StpKit.USER.getShopId()));
|
// return CzgResult.success(Map.of("token", StpKit.USER.getShopId()));
|
||||||
return CzgResult.success(shopInfoService.getById(1));
|
return CzgResult.success(StpKit.USER.getLoginId());
|
||||||
|
}
|
||||||
|
|
||||||
|
@GetMapping("test1")
|
||||||
|
public CzgResult<?> login1() throws IOException {
|
||||||
|
authorizationService.switchTo(86L);
|
||||||
|
return CzgResult.success(StpKit.USER.getLoginId());
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
Reference in New Issue
Block a user