feat:getStoreXinFaDeviceDetail
This commit is contained in:
@@ -0,0 +1,39 @@
|
||||
package com.cool.store.dto.huoma;
|
||||
|
||||
import lombok.AllArgsConstructor;
|
||||
import lombok.Data;
|
||||
import lombok.NoArgsConstructor;
|
||||
|
||||
/**
|
||||
* <p>
|
||||
* 火码账号DTO
|
||||
* </p>
|
||||
*
|
||||
* @author wangff
|
||||
* @since 2025/9/23
|
||||
*/
|
||||
@Data
|
||||
@AllArgsConstructor
|
||||
@NoArgsConstructor
|
||||
public class HuoMaAccountDTO {
|
||||
/**
|
||||
* 账号
|
||||
*/
|
||||
private String account;
|
||||
|
||||
/**
|
||||
* 密码
|
||||
*/
|
||||
private String password;
|
||||
|
||||
/**
|
||||
* 是否已查询
|
||||
*/
|
||||
private Boolean isQuery;
|
||||
|
||||
public HuoMaAccountDTO(String account, String password) {
|
||||
this.account = account;
|
||||
this.password = password;
|
||||
this.isQuery = false;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,59 @@
|
||||
package com.cool.store.dto.huoma;
|
||||
|
||||
import com.cool.store.utils.BrowserVersionUtils;
|
||||
import lombok.Data;
|
||||
|
||||
import java.util.Objects;
|
||||
|
||||
/**
|
||||
* @Author: WangShuo
|
||||
* @Date: 2025/08/13/16:24
|
||||
* @Version 1.0
|
||||
* @注释:
|
||||
*/
|
||||
@Data
|
||||
public class StoreEquipmentDTO {
|
||||
/**
|
||||
* 已授权登录数
|
||||
*/
|
||||
private Integer activeCount;
|
||||
|
||||
/**
|
||||
* 总设备
|
||||
*/
|
||||
private Integer terminalCount;
|
||||
|
||||
/**
|
||||
* 网点ID
|
||||
*/
|
||||
private Integer pointId;
|
||||
|
||||
/**
|
||||
* 网点号
|
||||
*/
|
||||
private String pointCode;
|
||||
|
||||
/**
|
||||
* 签到数
|
||||
*/
|
||||
private Integer signCount;
|
||||
|
||||
/**
|
||||
* 在线
|
||||
*/
|
||||
|
||||
private Integer connectCount;
|
||||
|
||||
@Override
|
||||
public boolean equals(Object o) {
|
||||
if (this == o) return true;
|
||||
if (o == null || getClass() != o.getClass()) return false;
|
||||
StoreEquipmentDTO that = (StoreEquipmentDTO) o;
|
||||
return Objects.equals(pointCode, that.pointCode);
|
||||
}
|
||||
|
||||
@Override
|
||||
public int hashCode() {
|
||||
return Objects.hashCode(pointCode);
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,40 @@
|
||||
package com.cool.store.dto.huoma;
|
||||
|
||||
import lombok.Data;
|
||||
|
||||
/**
|
||||
* @Author suzhuhong
|
||||
* @Date 2025/8/18 16:00
|
||||
* @Version 1.0
|
||||
*/
|
||||
@Data
|
||||
public class StoreRequestDTO {
|
||||
|
||||
private String reportCode;
|
||||
|
||||
private Integer index;
|
||||
|
||||
private Integer size;
|
||||
|
||||
private Params params;
|
||||
|
||||
public StoreRequestDTO(String reportCode, Integer index, Integer size, String shopCode) {
|
||||
this.reportCode = reportCode;
|
||||
this.index = index;
|
||||
this.size = size;
|
||||
this.params = new Params(shopCode);
|
||||
}
|
||||
|
||||
@Data
|
||||
static class Params{
|
||||
private String inputText_2;
|
||||
|
||||
public Params(String inputText_2) {
|
||||
this.inputText_2 = inputText_2;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
}
|
||||
@@ -0,0 +1,24 @@
|
||||
package com.cool.store.dto.huoma;
|
||||
|
||||
import lombok.Data;
|
||||
|
||||
/**
|
||||
* @Author suzhuhong
|
||||
* @Date 2025/8/18 16:38
|
||||
* @Version 1.0
|
||||
*/
|
||||
@Data
|
||||
public class StoreXinFaDetailRequestDTO {
|
||||
|
||||
private Integer index;
|
||||
|
||||
private Integer size;
|
||||
|
||||
private Integer pointId;
|
||||
|
||||
public StoreXinFaDetailRequestDTO(Integer index, Integer size, Integer pointId) {
|
||||
this.index = index;
|
||||
this.size = size;
|
||||
this.pointId = pointId;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,74 @@
|
||||
package com.cool.store.dto.huoma;
|
||||
|
||||
import com.cool.store.utils.BrowserVersionUtils;
|
||||
import com.cool.store.utils.StringUtil;
|
||||
import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
|
||||
import io.swagger.annotations.Api;
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import lombok.Data;
|
||||
|
||||
/**
|
||||
* @Author suzhuhong
|
||||
* @Date 2025/8/18 16:27
|
||||
* @Version 1.0
|
||||
*/
|
||||
@Data
|
||||
@JsonIgnoreProperties(ignoreUnknown = true)
|
||||
public class StoreXinFaDeviceDetail {
|
||||
|
||||
/**
|
||||
* 设备ID
|
||||
*/
|
||||
@ApiModelProperty(value = "设备ID")
|
||||
private String deviceId;
|
||||
|
||||
/**
|
||||
* 设备名称
|
||||
*/
|
||||
@ApiModelProperty(value = "设备名称")
|
||||
private String name;
|
||||
|
||||
/**
|
||||
* 设备连接状态 0:未连接 1:已连接
|
||||
*/
|
||||
@ApiModelProperty(value = "设备连接状态 false:未连接 true:已连接")
|
||||
private Boolean isConnect;
|
||||
|
||||
/**
|
||||
* 设备总内存
|
||||
*/
|
||||
@ApiModelProperty(value = "设备总内存")
|
||||
private String totalRam;
|
||||
|
||||
/**
|
||||
* 设备可用内存
|
||||
*/
|
||||
@ApiModelProperty(value = "设备可用内存")
|
||||
private String availRam;
|
||||
|
||||
/**
|
||||
* 设备浏览器信息
|
||||
*/
|
||||
@ApiModelProperty(value = "设备浏览器信息")
|
||||
private String userAgent;
|
||||
|
||||
/**
|
||||
* 内用内存小于300M 或者 浏览器版本小于60
|
||||
*/
|
||||
@ApiModelProperty(value = "内用内存小于300M 或者 浏览器版本小于60")
|
||||
private Boolean flag;
|
||||
|
||||
public boolean getFlag() {
|
||||
if (StringUtil.isEmpty(availRam)||StringUtil.isEmpty(userAgent)){
|
||||
return false;
|
||||
}
|
||||
try {
|
||||
Boolean isOldChromeBrowser = BrowserVersionUtils.isOldChromeBrowser(userAgent);
|
||||
long availableMemoryMB = Long.parseLong(availRam) / (1024 * 1024);
|
||||
return availableMemoryMB < 300 || isOldChromeBrowser;
|
||||
} catch (NumberFormatException e) {
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
@@ -0,0 +1,29 @@
|
||||
package com.cool.store.dto.huoma;
|
||||
|
||||
import io.swagger.models.auth.In;
|
||||
import lombok.Data;
|
||||
|
||||
/**
|
||||
* @Author suzhuhong
|
||||
* @Date 2025/11/5 9:33
|
||||
* @Version 1.0
|
||||
*/
|
||||
@Data
|
||||
public class TagDTO {
|
||||
|
||||
private String channelType;
|
||||
|
||||
private Integer index;
|
||||
|
||||
private Integer size;
|
||||
|
||||
private String type;
|
||||
|
||||
public TagDTO(String channelType, Integer index, Integer size, String type) {
|
||||
this.channelType = channelType;
|
||||
this.index = index;
|
||||
this.size = size;
|
||||
this.type = type;
|
||||
}
|
||||
|
||||
}
|
||||
@@ -0,0 +1,17 @@
|
||||
package com.cool.store.dto.huoma;
|
||||
|
||||
import lombok.Data;
|
||||
|
||||
/**
|
||||
* @Author suzhuhong
|
||||
* @Date 2025/11/5 9:41
|
||||
* @Version 1.0
|
||||
*/
|
||||
@Data
|
||||
public class TagDetailDTO {
|
||||
|
||||
private Integer id;
|
||||
|
||||
private String name;
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user