package com.cpop.oam.business.bo;

import io.swagger.v3.oas.annotations.media.Schema;
import jakarta.validation.constraints.NotBlank;
import jakarta.validation.constraints.NotEmpty;
import lombok.Data;
import lombok.experimental.Accessors;

import java.util.List;

/**
 * 值班表Bo
 *
 * @author DB.lost
 * @since 2023-05-11
 */
@Data
@Accessors(chain = true)
@Schema(description = "值班表")
public class DutyBo {

    /**
     * 主键
     */
    @Schema(description ="主键")
    private String id;

    /**
     * 服务员工id
     */
    @NotBlank(message = "服务员工id不能为空")
    @Schema(description = "服务员工id", requiredMode = Schema.RequiredMode.REQUIRED)
    private String serviceStaffId;

    /**
     * 技术员工id
     */
    @NotBlank(message = "技术员工id不能为空")
    @Schema(description = "技术员工id", requiredMode = Schema.RequiredMode.REQUIRED)
    private String technologyStaffId;

    /**
     * 值班日期
     */
    @NotEmpty(message = "值班日期不能为空")
    @Schema(description = "值班日期", requiredMode = Schema.RequiredMode.REQUIRED)
    private List<String> dutyDate;

    /**
     * 备注
     */
    @Schema(description ="备注")
    private String remark;

}
