feat(service): 增加桌面名称后缀类型并更新登录请求参数
- 在 ClientServiceImpl 中增加桌面文件名的后缀类型- 在 LoginReq 中添加 macAddr 字段并使用@JsonProperty注解master
parent
782e546258
commit
eda99f0711
|
|
@ -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;
|
||||||
|
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -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());
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue