package com.njcn.gather.system.reg.pojo.param;

import com.njcn.common.pojo.constant.PatternRegex;
import com.njcn.gather.system.pojo.constant.SystemValidMessage;
import com.njcn.gather.system.reg.pojo.RegResValidMessage;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

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

/**
 * @author caozehui
 * @data 2024-11-21
 */
@Data
public class SysRegResParam {

//    @ApiModelProperty("版本类型")
//    @NotBlank(message = SystemValidMessage.TYPE_NOT_BLANK)
//    @Pattern(regexp = PatternRegex.SYSTEM_ID, message = SystemValidMessage.ID_FORMAT_ERROR)
//    private String type;

    @ApiModelProperty("注册码")
    @NotBlank(message = RegResValidMessage.CODE_NOT_BLANK)
    private String code;

//    @ApiModelProperty("密钥")
//    private String licenseKey;

    @Data
    public static class UpdateParam {

        @ApiModelProperty("id")
        @NotBlank(message = SystemValidMessage.ID_NOT_BLANK)
        @Pattern(regexp = PatternRegex.SYSTEM_ID, message = SystemValidMessage.ID_FORMAT_ERROR)
        private String id;

        @ApiModelProperty("录波数据有效组数")
        private Integer waveRecord;

        @ApiModelProperty("实时数据有效组数")
        private Integer realTime;

        @ApiModelProperty("统计数据有效组数")
        private Integer statistics;

        @ApiModelProperty("短闪数据有效组数")
        private Integer flicker;

    }
}
