|
@@ -1,16 +1,20 @@
|
|
|
package com.ym.controller;
|
|
|
|
|
|
import com.alibaba.fastjson.JSON;
|
|
|
+import com.ym.common.BaseResponse;
|
|
|
+import com.ym.mec.biz.service.impl.TenantInfoServiceImpl;
|
|
|
import com.ym.pojo.ImUserState;
|
|
|
import com.ym.service.UserService;
|
|
|
import io.rong.models.user.UserModel;
|
|
|
+import org.slf4j.Logger;
|
|
|
+import org.slf4j.LoggerFactory;
|
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
|
import org.springframework.web.bind.annotation.*;
|
|
|
|
|
|
@RestController
|
|
|
@RequestMapping("/user")
|
|
|
public class UserController {
|
|
|
-
|
|
|
+ private static final Logger log = LoggerFactory.getLogger(UserController.class);
|
|
|
@Autowired
|
|
|
UserService userService;
|
|
|
|
|
@@ -30,7 +34,9 @@ public class UserController {
|
|
|
* @param userState
|
|
|
*/
|
|
|
@PostMapping(value = "/statusImUser")
|
|
|
- public void statusImMsg(@RequestBody ImUserState userState) {
|
|
|
- JSON.toJSONString(userState);
|
|
|
+ public BaseResponse statusImUser(@RequestBody ImUserState userState) {
|
|
|
+ String string = JSON.toJSONString(userState);
|
|
|
+ log.info("statusImUser >>>>> : {}", string);
|
|
|
+ return new BaseResponse<>();
|
|
|
}
|
|
|
}
|