package com.estate.expert.admin.domain.common.request;
|
|
import com.baomidou.mybatisplus.annotation.TableField;
|
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 AddOnDutyRequest {
|
|
@NotNull(message = "检查任务ID")
|
@ApiModelProperty(value = "检查任务ID", required = true)
|
Integer checkTaskIdId;
|
|
@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;
|
}
|