|
@@ -23,6 +23,7 @@ import com.fs.his.mapper.FsUserLoginLogMapper;
|
|
|
import com.fs.his.service.IFsUserService;
|
|
|
import com.fs.his.service.IFsUserWxService;
|
|
|
import com.fs.his.utils.ConfigUtil;
|
|
|
+import com.fs.im.service.OpenIMService;
|
|
|
import com.fs.system.domain.SysConfig;
|
|
|
import com.fs.system.mapper.SysConfigMapper;
|
|
|
import io.netty.util.internal.StringUtil;
|
|
@@ -80,6 +81,8 @@ public class WxUserController extends AppBaseController{
|
|
|
@Autowired
|
|
|
private IFsUserWxService userWxService;
|
|
|
|
|
|
+ @Autowired
|
|
|
+ private OpenIMService openIMService;
|
|
|
|
|
|
|
|
|
/**
|
|
@@ -387,4 +390,11 @@ public class WxUserController extends AppBaseController{
|
|
|
return R.ok("授权成功");
|
|
|
}
|
|
|
|
|
|
+ // @Login
|
|
|
+ @ApiOperation("注册IM账号和添加好友关系")
|
|
|
+ @PostMapping("/bindingImFriend")
|
|
|
+ public void createAndBindingImFriend(@RequestParam Long companyUserId) {
|
|
|
+ openIMService.checkAndImportFriend(companyUserId, "51");
|
|
|
+ }
|
|
|
+
|
|
|
}
|