package com.njcn.process.pojo.param;

import com.njcn.common.pojo.constant.PatternRegex;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.Pattern;

/**
 * 未建档干扰源用户编辑Param
 *
 * @author qijian
 * @version 1.0.0
 * @createTime 2022/11/11 10:34
 */
@Data
@ApiModel
public class LoadTypeUserParam {

    @ApiModelProperty("所属单位")
    @NotBlank(message = "所属单位不可为空")
    private String orgNo;

    @ApiModelProperty("干扰源类型")
    @NotBlank(message = "干扰源类型不可为空")
    private String loadType;

    @ApiModelProperty("干扰源用户名称")
    @NotBlank(message = "干扰源用户名称不可为空")
    private String userName;

    @ApiModelProperty("建档时间")
    @NotBlank(message = "时间不可为空")
    @Pattern(regexp = PatternRegex.TIME_SECOND_FORMAT, message = "时间格式错误")
    private String recordTime;

}
