package com.muyu.enterprise.controller.form;

import jakarta.validation.constraints.Min;
import jakarta.validation.constraints.NotBlank;
import jakarta.validation.constraints.NotNull;
import jakarta.validation.constraints.Pattern;
import lombok.Data;

/**
 * @Author YuPing
 * @Description 修改企业信息
 * @Version 1.0
 * @Data 2024-09-26 21:22:05
 */
@Data
public class UpdateEnterprise {
    @NotNull(message = "enterpriseId企业编号不能为空")
    @Min(value = 1,message = "enterpriseId不能小于1")
    private Integer enterpriseId;

    @NotBlank(message = "enterpriseName企业名称不能为空")
    @Pattern(regexp = "^[0-9a-zA-Z\\u4e00-\\u9fa5]{1,10}$", message = "enterpriseName企业名称不能为空")
    private String enterpriseName;

    @NotNull(message = "enterpriseCarCount企业车辆数量不能为空")
    private Integer enterpriseCarCount;

    @NotNull(message = "enterpriseFenceCount企业围栏组不能为空")
    private Integer enterpriseFenceCount;
}
