package com.njcn.device.pq.pojo.param;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.njcn.common.pojo.constant.PatternRegex;
import com.njcn.web.constant.ValidMessage;
import lombok.Data;
import lombok.EqualsAndHashCode;

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

/**
 * 
 * Description:
 * Date: 2025/02/11  上午 9:22【需求编号】
 *
 * @author clam
 * @version V1.0.0
 */
@Data
public class CvtLineRelationParam {

    /**
     * 监测点id
     */
    private String lineId;

    /**
     * cvt系数表id
     */
    private String cvtId;

    @Data
    @EqualsAndHashCode(callSuper = true)
    public static class CvtLineRelationUpdateParam extends CvtLineRelationParam {

        /**
         * 表Id
         */
        @NotBlank(message = ValidMessage.ID_NOT_BLANK)
        @Pattern(regexp = PatternRegex.SYSTEM_ID, message = ValidMessage.ID_FORMAT_ERROR)
        private String id;
    }
}