|
@@ -2,6 +2,7 @@ package com.yonge.cooleshow.teacher.controller;
|
|
|
|
|
|
|
|
|
import com.alibaba.fastjson.JSON;
|
|
|
+import com.yonge.cooleshow.auth.api.entity.SysUser;
|
|
|
import com.yonge.cooleshow.biz.dal.dto.ImGroupResultDto;
|
|
|
import com.yonge.cooleshow.biz.dal.dto.ImGroupSearchDto;
|
|
|
import com.yonge.cooleshow.biz.dal.entity.ImGroup;
|
|
@@ -88,8 +89,9 @@ public class ImGroupController extends BaseController {
|
|
|
@ApiOperation("获取群详情")
|
|
|
@PostMapping(value = "/getDetail/{groupId}")
|
|
|
public HttpResponseResult<ImGroup> getDetail(@ApiParam(value = "群编号", required = true) @PathVariable("groupId") String groupId) throws Exception {
|
|
|
+ SysUser user = sysUserService.getUser();
|
|
|
ImGroup group = imGroupService.getById(groupId);
|
|
|
- if (group == null) {
|
|
|
+ if (group == null || group.getCreateBy().equals(user.getId())) {
|
|
|
return failed(HttpStatus.NO_CONTENT, "群组不存在");
|
|
|
}
|
|
|
return succeed(group);
|