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

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

import javax.validation.constraints.NotBlank;

/**
 * 第三方人力可用工人查询条件：工种 + 工作地点。
 */
@Schema(description = "第三方人力可用工人查询条件项")
public class ThirdPartyWorkerQueryItem {

    @NotBlank(message = "jobType 不能为空")
    @JsonProperty("jobType")
    @JsonAlias({"job_type"})
    @Schema(description = "工种（精确匹配 confirmed_work_type）", example = "搬运工", requiredMode = Schema.RequiredMode.REQUIRED)
    private String jobType;

    @JsonProperty("workLocation")
    @JsonAlias({"work_location"})
    @Schema(description = "工作地点（可选；有值时对 Mock 中 work_location 做包含匹配）", example = "上海")
    private String workLocation;

    public String getJobType() {
        return jobType;
    }

    public void setJobType(String jobType) {
        this.jobType = jobType;
    }

    public String getWorkLocation() {
        return workLocation;
    }

    public void setWorkLocation(String workLocation) {
        this.workLocation = workLocation;
    }
}
