liujie
2026-01-20 b506a0a10cdf3ac34cfdae2b82da4dae49b41567
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
package com.estate.expert.admin.domain.common.request;
 
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Builder;
import lombok.Value;
 
import javax.validation.constraints.Max;
import javax.validation.constraints.Min;
import javax.validation.constraints.NotNull;
import java.util.List;
 
/**
 * 编辑在岗情况请求
 */
@ApiModel("编辑在岗情况请求")
@Value
@Builder
public class EditOnDutyRequest {
 
    @ApiModelProperty(value = "在岗记录ID", required = true)
    @NotNull(message = "在岗记录ID不能为空")
    Integer id;
 
    @ApiModelProperty(value = "岗位ID", required = true)
    @NotNull(message = "岗位ID不能为空")
    Integer positionId;
 
    @ApiModelProperty(value = "在岗状态:1-在岗,2-未在岗,3-请假", required = true)
    @NotNull(message = "在岗状态不能为空")
    @Min(value = 1, message = "在岗状态值必须在1-3之间")
    @Max(value = 3, message = "在岗状态值必须在1-3之间")
    Integer state;
 
    @ApiModelProperty(value = "问题说明")
    String remark;
 
    @ApiModelProperty(value = "图片URL列表(多张)")
    List<String> images;
}