package com.zcloud.zcGbsServicer.dto;

import com.alibaba.cola.dto.Command;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;
import javax.validation.constraints.*;

/**
* web-client
* @Author makejava
* @Date 2026-01-21 17:23:34
*/
@EqualsAndHashCode(callSuper = true)
@Data
@NoArgsConstructor
@AllArgsConstructor
public class ResourcePersonAddCmd extends Command {

    @ApiModelProperty(value = "主键", name = "id", required = true)
    private Long id;

    @ApiModelProperty(value = "业务主键ID", name = "personId", required = true)
    @NotEmpty(message = "业务主键ID不能为空")
    private String personId;
    
    @ApiModelProperty(value = "资源类型:1救援队,2控制室,3泵房,4水源", name = "bizType", required = true)
    @NotNull(message = "资源类型:1救援队,2控制室,3泵房,4水源不能为空")
    private Integer bizType;
    
    @ApiModelProperty(value = "资源业务ID(对应主表biz_id)", name = "bizId", required = true)
    @NotEmpty(message = "资源业务ID(对应主表biz_id)不能为空")
    private String bizId;
    
    @ApiModelProperty(value = "人员角色:1队员,2值班人员,3指挥,4负责人", name = "roleCode", required = true)
    @NotNull(message = "人员角色:1队员,2值班人员,3指挥,4负责人不能为空")
    private Integer roleCode;
    
    @ApiModelProperty(value = "人员姓名", name = "personName", required = true)
    @NotEmpty(message = "人员姓名不能为空")
    private String personName;
    
    @ApiModelProperty(value = "人员电话", name = "personPhone", required = true)
    @NotEmpty(message = "人员电话不能为空")
    private String personPhone;
    
    @ApiModelProperty(value = "值班情况/职责描述", name = "dutyDesc", required = true)
    @NotEmpty(message = "值班情况/职责描述不能为空")
    private String dutyDesc;
    
    @ApiModelProperty(value = "排序", name = "sort", required = true)
    @NotNull(message = "排序不能为空")
    private Integer sort;
    
}

