package com.huimv.employment.service.order.dto;

import com.fasterxml.jackson.annotation.JsonAlias;
import com.fasterxml.jackson.annotation.JsonProperty;
import io.swagger.v3.oas.annotations.media.Schema;

@Schema(description = "企业确认开工请求")
public class OrderStartWorkRequest {

    @JsonProperty("allow_understaffed")
    @JsonAlias({"allowUnderstaffed"})
    @Schema(description = "已签人数少于计划人数时，是否仍确认缺编开工；默认 false")
    private Boolean allowUnderstaffed;

    public Boolean getAllowUnderstaffed() {
        return allowUnderstaffed;
    }

    public void setAllowUnderstaffed(Boolean allowUnderstaffed) {
        this.allowUnderstaffed = allowUnderstaffed;
    }

    public boolean isAllowUnderstaffed() {
        return Boolean.TRUE.equals(allowUnderstaffed);
    }
}
