|
@@ -6,6 +6,7 @@ import cn.dev33.satoken.stp.StpUtil;
|
|
|
import cn.dev33.satoken.util.SaResult;
|
|
|
import cn.hutool.core.util.StrUtil;
|
|
|
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
|
|
|
+import com.example.onlinejudge.model.VO.UserVO;
|
|
|
import com.example.onlinejudge.model.entity.User;
|
|
|
import com.example.onlinejudge.mapper.UserMapper;
|
|
|
import com.example.onlinejudge.model.entity.result.Result;
|
|
@@ -60,4 +61,13 @@ public class UserServiceImpl implements UserService {
|
|
|
return userMapper.selectById(StpUtil.getLoginIdAsLong());
|
|
|
}
|
|
|
|
|
|
+ @Override
|
|
|
+ public User getUserById(Long id) {
|
|
|
+ return userMapper.selectById(id);
|
|
|
+ }
|
|
|
+
|
|
|
+ @Override
|
|
|
+ public UserVO getUserVO(User user) {
|
|
|
+ return null;
|
|
|
+ }
|
|
|
}
|