设备绑定,解绑

This commit is contained in:
2025-07-08 09:00:14 +08:00
parent 6b2ebf2414
commit 43f6f2ca0b
10 changed files with 207 additions and 60 deletions

View File

@ -0,0 +1,31 @@
package com.fuyuanshen.equipment.domain.dto;
import com.fuyuanshen.common.core.validate.EditGroup;
import com.fuyuanshen.common.mybatis.core.domain.BaseEntity;
import io.swagger.v3.oas.annotations.media.Schema;
import jakarta.validation.constraints.NotNull;
import lombok.Data;
import lombok.EqualsAndHashCode;
/**
* 绑定设备参数
*/
@Data
public class AppDeviceBo {
/**
* 设备IMEI
*/
private String deviceImei;
/**
* 设备MAC
*/
private String deviceMac;
/**
* 通讯方式 0:4G; 1:蓝牙
*/
@NotNull(message = "通讯方式不能为空", groups = { EditGroup.class })
private Integer communicationMode;
}

View File

@ -65,4 +65,6 @@ public class DeviceQueryCriteria {
@Schema(name = "通讯方式", example = "0:4G;1:蓝牙")
private Integer communicationMode;
/* app绑定用户id */
private Long bindingUserId;
}

View File

@ -0,0 +1,24 @@
package com.fuyuanshen.equipment.domain.vo;
import lombok.Data;
@Data
public class AppDeviceVo {
private Long id;
/**
* 设备名称
*/
private String deviceName;
/**
* 设备IMEI
*/
private String deviceImei;
/**
* 设备MAC
*/
private String deviceMac;
}