| package com.dy.pipIrrProject.flowMonitoring; | 
|   | 
| import io.swagger.v3.oas.annotations.media.Schema; | 
| import jakarta.validation.constraints.NotBlank; | 
| import jakarta.validation.constraints.NotNull; | 
| import lombok.Data; | 
| import org.hibernate.validator.constraints.Length; | 
|   | 
| /** | 
|  * @author ZhuBaoMin | 
|  * @date 2024-01-05 9:33 | 
|  * @LastEditTime 2024-01-05 9:33 | 
|  * @Description | 
|  */ | 
|   | 
| @Data | 
| @Schema(name = "流量计传入对象") | 
| public class DtoFlowmeter { | 
|     public static final long serialVersionUID = 1L; | 
|   | 
|     /** | 
|      * 编号 | 
|      */ | 
|     @Schema(description = "编号", requiredMode = Schema.RequiredMode.REQUIRED) | 
|     @NotBlank(message = "控制器编号不能为空") | 
|     @Length(message = "控制器编号不大于{max}字",max = 25) | 
|     private String code; | 
|   | 
|     /** | 
|      * 通讯协议 | 
|      */ | 
|     @Schema(description = "通讯协议", requiredMode = Schema.RequiredMode.REQUIRED) | 
|     @NotBlank(message = "通讯协议不能为空") | 
|     @Length(message = "通讯协议不大于{max}字",max = 25) | 
|     private String protocol; | 
|   | 
|     /** | 
|      * 在线状态 | 
|      */ | 
|     @Schema(description = "在线状态", requiredMode = Schema.RequiredMode.NOT_REQUIRED) | 
|     private Byte onlineState; | 
|   | 
|     /** | 
|      * 添加方式;1-系统自动,2-手动 | 
|      */ | 
|     @Schema(description = "添加方式", requiredMode = Schema.RequiredMode.NOT_REQUIRED) | 
|     private Byte addWays; | 
|   | 
|     /** | 
|      * 操作人编号 | 
|      */ | 
|     @Schema(description = "操作人编号", requiredMode = Schema.RequiredMode.NOT_REQUIRED) | 
|     @NotNull(message = "操作人编号不能为空") | 
|     private Long operator; | 
|   | 
|     /** | 
|      * 备注信息 | 
|      */ | 
|     @Schema(description = "备注", requiredMode = Schema.RequiredMode.NOT_REQUIRED) | 
|     @Length(message = "备注不大于{max}字,不小于{min}字", min = 1, max = 200) | 
|     private String remarks; | 
| } |