package com.njcn.advance.pojo.carrycapacity.param;

import com.njcn.common.pojo.constant.PatternRegex;
import com.njcn.web.constant.ValidMessage;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

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

/**
 * Description:
 * Date: 2024/3/20  9:59【需求编号】
 *
 * @author clam
 * @version V1.0.0
 */
@Data
public  class CarryCapacityDeviceParam  {

    private String userId;
    /**
     * 设备名称
     */
    private String devName;

    private String devScale;

    /**
     * 设备用户协议容量(MVA)
     */
    private Double protocolCapacity;

    @Data
    @EqualsAndHashCode(callSuper = true)
    public static class CarryCapacityDeviceUpdateParam extends CarryCapacityDeviceParam {
        @ApiModelProperty("设备Id")
        @NotBlank(message = "设备Id不能为空")
        @Pattern(regexp = PatternRegex.SYSTEM_ID, message = ValidMessage.ID_FORMAT_ERROR)
        private String devId;
    }

    @Data
    @EqualsAndHashCode(callSuper = true)
    public static class CarryCapacityDeviceQueryParam extends CarryCapacityDeviceParam {
        @ApiModelProperty("设备Id")
        @Pattern(regexp = PatternRegex.SYSTEM_ID, message = ValidMessage.ID_FORMAT_ERROR)
        private String devId;
    }
}