package com.cpop.oam.business.bo;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.experimental.Accessors;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotEmpty;
import java.io.Serializable;
import java.util.List;

/**
 * 值班表Bo
 *
 * @author DB.lost
 * @since 2023-05-11
 */
@Data
@Accessors(chain = true)
@ApiModel(value = "Duty对象", description = "值班表")
public class DutyBo implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 主键
     */
    @ApiModelProperty("主键")
    private String id;

    /**
     * 服务员工id
     */
    @NotBlank(message = "服务员工id不能为空")
    @ApiModelProperty(value = "服务员工id",required = true)
    private String serviceStaffId;

    /**
     * 技术员工id
     */
    @NotBlank(message = "技术员工id不能为空")
    @ApiModelProperty(value = "技术员工id",required = true)
    private String technologyStaffId;

    /**
     * 值班日期
     */
    @NotEmpty(message = "值班日期不能为空")
    @ApiModelProperty(value = "值班日期",required = true)
    private List<String> dutyDate;

    /**
     * 备注
     */
    @ApiModelProperty("备注")
    private String remark;

}
