|
@@ -27,7 +27,7 @@ public class ImController extends BaseController {
|
|
|
|
|
|
@ApiOperation(value = "获取教务所有聊天群组")
|
|
|
@GetMapping("/queryEmployeeGroups")
|
|
|
- @PreAuthorize("@pcs.hasPermissions('im/queryEmployeeGroups')")
|
|
|
+ @PreAuthorize("@pcs.hasPermissions('im/queryEmployeeGroups','system')")
|
|
|
public Object queryEmployeeGroups(String search){
|
|
|
SysUser sysUser = sysUserFeignService.queryUserInfo();
|
|
|
if(sysUser == null){
|
|
@@ -38,7 +38,7 @@ public class ImController extends BaseController {
|
|
|
|
|
|
@ApiOperation(value = "获取当前教务通讯录列表")
|
|
|
@GetMapping("/queryGroupStudents")
|
|
|
- @PreAuthorize("@pcs.hasPermissions('im/queryGroupStudents')")
|
|
|
+ @PreAuthorize("@pcs.hasPermissions('im/queryGroupStudents','system')")
|
|
|
public Object queryGroupStudents(String search){
|
|
|
SysUser sysUser = sysUserFeignService.queryUserInfo();
|
|
|
if(sysUser == null){
|
|
@@ -49,7 +49,7 @@ public class ImController extends BaseController {
|
|
|
|
|
|
@ApiOperation(value = "根据群编号,获取群组基本信息")
|
|
|
@GetMapping("/findGroupById")
|
|
|
- @PreAuthorize("@pcs.hasPermissions('im/findGroupById')")
|
|
|
+ @PreAuthorize("@pcs.hasPermissions('im/findGroupById','system')")
|
|
|
public Object findGroupById(Integer groupId){
|
|
|
if(null == groupId){
|
|
|
return failed("参数校验错误");
|
|
@@ -59,7 +59,7 @@ public class ImController extends BaseController {
|
|
|
|
|
|
@ApiOperation(value = "根据群编号,获取群组所有成员基本信息")
|
|
|
@GetMapping("/findGroupUsers")
|
|
|
- @PreAuthorize("@pcs.hasPermissions('im/findGroupUsers')")
|
|
|
+ @PreAuthorize("@pcs.hasPermissions('im/findGroupUsers','system')")
|
|
|
public Object findGroupUsers(Integer groupId) {
|
|
|
if (groupId == null) {
|
|
|
return failed("参数校验错误");
|