记得上下班打卡 | git大法好,push需谨慎

Commit 8f765960 authored by zhengfuxin's avatar zhengfuxin

给大龙增加接口。

parent a6de81a5
......@@ -10,7 +10,6 @@ import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
......@@ -41,6 +40,12 @@ public class SmileNoLoginController {
return ResponseDto.success(smileUserVO);
}
@PostMapping("getUserByid")
@ApiOperation("获取用户状态,返回用户")
public ResponseDto<SmileUserVO> getUserByid(String userId) {
SmileUserVO smileUserVO = (SmileUserVO) redisUtil.get(SmileRedisConst.SMILE_USER.concat(userId));
return ResponseDto.success(smileUserVO);
}
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment