|
@@ -0,0 +1,50 @@
|
|
|
|
+package com.yonge.cooleshow.admin.controller;
|
|
|
|
+
|
|
|
|
+
|
|
|
|
+import com.yonge.cooleshow.auth.api.client.SysUserFeignService;
|
|
|
|
+import com.yonge.cooleshow.auth.api.entity.SysUser;
|
|
|
|
+import com.yonge.cooleshow.biz.dal.enums.ClientEnum;
|
|
|
|
+import com.yonge.cooleshow.biz.dal.enums.MK;
|
|
|
|
+import com.yonge.cooleshow.biz.dal.mapper.SysUserMapper;
|
|
|
|
+import com.yonge.cooleshow.biz.dal.service.ImGroupService;
|
|
|
|
+import com.yonge.cooleshow.biz.dal.service.ImUserFriendService;
|
|
|
|
+import com.yonge.cooleshow.biz.dal.vo.im.ImUserFriendVO;
|
|
|
|
+import com.yonge.cooleshow.biz.dal.wrapper.im.ImUserWrapper;
|
|
|
|
+import com.yonge.cooleshow.common.controller.BaseController;
|
|
|
|
+import com.yonge.cooleshow.common.entity.HttpResponseResult;
|
|
|
|
+import io.swagger.annotations.*;
|
|
|
|
+import org.springframework.beans.factory.annotation.Autowired;
|
|
|
|
+import org.springframework.web.bind.annotation.*;
|
|
|
|
+
|
|
|
|
+import java.util.List;
|
|
|
|
+import java.util.Map;
|
|
|
|
+import java.util.Objects;
|
|
|
|
+
|
|
|
|
+/**
|
|
|
|
+ * 用户通讯录表(ImUserFriend)表控制层
|
|
|
|
+ *
|
|
|
|
+ * @author zx
|
|
|
|
+ * @since 2022-03-22 10:45:59
|
|
|
|
+ */
|
|
|
|
+@Api(tags = "用户通讯录表")
|
|
|
|
+@RestController
|
|
|
|
+@RequestMapping("${app-config.url.admin:}/imUserFriend")
|
|
|
|
+public class ImUserFriendController extends BaseController {
|
|
|
|
+ /**
|
|
|
|
+ * 服务对象
|
|
|
|
+ */
|
|
|
|
+ @Autowired
|
|
|
|
+ private ImUserFriendService imUserFriendService;
|
|
|
|
+
|
|
|
|
+ @ApiOperation("获取聊天用户详情")
|
|
|
|
+ @PostMapping(value = "/getMessageUser/{userId}")
|
|
|
|
+ public HttpResponseResult<ImUserFriendVO.ImMessageUser> getMessageUser(@ApiParam(value = "用户编号", required = true) @PathVariable("userId") String userId) {
|
|
|
|
+
|
|
|
|
+
|
|
|
|
+ // 用户ID
|
|
|
|
+ ImUserFriendVO.ImMessageUser imMessageUser = imUserFriendService.getImMessageUser(userId);
|
|
|
|
+ return succeed(imMessageUser);
|
|
|
|
+
|
|
|
|
+ }
|
|
|
|
+}
|
|
|
|
+
|