|
@@ -3,6 +3,8 @@ package com.yonge.cooleshow.student.controller;
|
|
|
|
|
|
import com.yonge.cooleshow.auth.api.client.SysUserFeignService;
|
|
|
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;
|
|
|
import com.yonge.cooleshow.biz.dal.service.ImGroupService;
|
|
|
import com.yonge.cooleshow.common.controller.BaseController;
|
|
@@ -39,15 +41,18 @@ public class ImGroupController extends BaseController {
|
|
|
return succeed(imGroupService.getById(groupId));
|
|
|
}
|
|
|
|
|
|
- @ApiImplicitParams({
|
|
|
- @ApiImplicitParam(name = "search", dataType = "String", value = "根据群名称、编号、简介模糊查询"),
|
|
|
- })
|
|
|
@ApiOperation("群列表")
|
|
|
@PostMapping(value = "/queryAll")
|
|
|
- public HttpResponseResult<List<ImGroup>> queryAll(@RequestBody Map<String,Object> params) throws Exception {
|
|
|
+ public HttpResponseResult<List<ImGroup>> queryAll(@RequestBody ImGroupSearchDto imGroupSearchDto) throws Exception {
|
|
|
SysUser sysUser = sysUserFeignService.queryUserInfo();
|
|
|
- params.put("userId",sysUser.getId());
|
|
|
- return succeed(imGroupService.queryAll(params));
|
|
|
+ imGroupSearchDto.setUserId(sysUser.getId());
|
|
|
+ return succeed(imGroupService.queryAll(imGroupSearchDto));
|
|
|
+ }
|
|
|
+
|
|
|
+ @ApiOperation("获取指定用户的群列表")
|
|
|
+ @PostMapping(value = "/queryTeacherGroup")
|
|
|
+ public HttpResponseResult<List<ImGroupResultDto>> queryTeacherGroup(@RequestBody ImGroupSearchDto imGroupSearchDto) throws Exception {
|
|
|
+ return succeed(imGroupService.queryTeacherFun(imGroupSearchDto));
|
|
|
}
|
|
|
}
|
|
|
|