feat(service): 增加桌面名称后缀类型并更新登录请求参数

- 在 ClientServiceImpl 中增加桌面文件名的后缀类型- 在 LoginReq 中添加 macAddr 字段并使用@JsonProperty注解
master
chenhao 2025-09-04 16:28:27 +08:00
parent 782e546258
commit eda99f0711
2 changed files with 2 additions and 1 deletions

View File

@ -31,6 +31,7 @@ public class LoginReq {
private String token; private String token;
@ApiModelProperty("mac地址") @ApiModelProperty("mac地址")
@JsonProperty("mac_addr")
private String macAddr; private String macAddr;

View File

@ -63,7 +63,7 @@ public class ClientServiceImpl implements ClientService {
HashMap<String, Object> map = new HashMap<>(); HashMap<String, Object> map = new HashMap<>();
map.put("id",e.getId()); map.put("id",e.getId());
if (StringUtils.isNotBlank(e.getDesktopName())) { if (StringUtils.isNotBlank(e.getDesktopName())) {
map.put("name", e.getDesktopName()); map.put("name", e.getDesktopName()+"."+e.getDesktopType());
} }
if (StringUtils.isNotBlank(e.getFileSize())) { if (StringUtils.isNotBlank(e.getFileSize())) {
map.put("file_size", e.getFileSize()); map.put("file_size", e.getFileSize());