This commit is contained in:
liuchengqian 2023-03-02 11:42:22 +08:00
parent a010ec4a0b
commit e64f24d8a3

View File

@ -112,23 +112,6 @@ public class FirePointController {
return outputEncapsulationObject(PromptMessageEnum.SUCCESS, firePointList, locale);
}
/**
* 测试
*
* @param token
* @return
*/
@GetMapping("/selectUserName")
public String selectUserName(@RequestHeader(value = "Authorization") String token) {
// 验证token
String tokenUserName = TokenUtil.obtainUserNameByToken(token);
SysUserEntity sysUserEntity = sysUserDao.selectByUserName(tokenUserName);
if (sysUserEntity == null) {
return outputEncapsulationObject(PromptMessageEnum.USER_LOGIN_ERROR, "您还没有注册登录,请先注册登录", locale);
}
return outputEncapsulationObject(PromptMessageEnum.SUCCESS, sysUserEntity.getUserName(), locale);
}
/**
* 查询今天的火点信息
*