package com.huimv.employment.service.registration.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 WorkerRegistrationApplyRequest {

    @NotBlank(message = "scene 不能为空")
    @JsonProperty("scene")
    @JsonAlias({"order_no", "orderNo", "qr_token"})
    @Schema(description = "小程序码 scene（订单编号）", example = "ord_123", requiredMode = Schema.RequiredMode.REQUIRED)
    private String scene;

    @NotBlank(message = "confirmed_work_type 不能为空")
    @JsonProperty("confirmed_work_type")
    @JsonAlias({"confirmedWorkType", "work_type"})
    @Schema(description = "确认工种/任务，须为订单用工明细中的工种", example = "仓库搬运",
            requiredMode = Schema.RequiredMode.REQUIRED)
    private String confirmedWorkType;

    public String getScene() {
        return scene;
    }

    public void setScene(String scene) {
        this.scene = scene;
    }

    public String getConfirmedWorkType() {
        return confirmedWorkType;
    }

    public void setConfirmedWorkType(String confirmedWorkType) {
        this.confirmedWorkType = confirmedWorkType;
    }
}
