huang
2025-11-17 92a5d16f0474ead87744b4ca5cb04417247a0619
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
package com.mes.device.request;
 
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
 
import java.util.List;
 
/**
 * 设备配置操作请求体
 *
 * @author mes
 * @since 2025-07-12
 */
@Data
@Schema(description = "设备配置操作请求体")
public class DeviceConfigRequest {
 
    @Schema(description = "设备ID", example = "1")
    private Long deviceId;
 
    @Schema(description = "设备配置信息")
    private Object deviceConfig;
 
    @Schema(description = "设备ID列表")
    private List<Long> deviceIds;
 
    @Schema(description = "项目ID", example = "1")
    private Long projectId;
 
    @Schema(description = "设备类型", example = "1")
    private String deviceType;
 
    @Schema(description = "设备状态", example = "1")
    private String deviceStatus;
 
    @Schema(description = "搜索关键词", example = "设备1")
    private String keyword;
 
    @Schema(description = "设备编码", example = "DEVICE001")
    private String deviceCode;
 
    @Schema(description = "页码", example = "1")
    private Integer page;
 
    @Schema(description = "每页大小", example = "10")
    private Integer size;
 
    // 构造函数
    public DeviceConfigRequest() {
    }
 
    public DeviceConfigRequest(Long deviceId) {
        this.deviceId = deviceId;
    }
 
    public DeviceConfigRequest(Long deviceId, Object deviceConfig) {
        this.deviceId = deviceId;
        this.deviceConfig = deviceConfig;
    }
 
    public DeviceConfigRequest(List<Long> deviceIds) {
        this.deviceIds = deviceIds;
    }
}