package com.dy.pipIrrProject.intakeController; 
 | 
  
 | 
import io.swagger.v3.oas.annotations.media.Schema; 
 | 
import jakarta.validation.constraints.NotNull; 
 | 
import jakarta.validation.constraints.Positive; 
 | 
import lombok.Data; 
 | 
import org.hibernate.validator.constraints.Length; 
 | 
  
 | 
/** 
 | 
 * @author ZhuBaoMin 
 | 
 * @date 2024-01-02 10:53 
 | 
 * @LastEditTime 2024-01-02 10:53 
 | 
 * @Description 
 | 
 */ 
 | 
  
 | 
@Data 
 | 
@Schema(name = "取水口、控制器绑定关系传入对象") 
 | 
public class DtoIntakeController { 
 | 
    public static final long serialVersionUID = 1L; 
 | 
  
 | 
    /** 
 | 
     * 取水口ID 
 | 
     */ 
 | 
    @Schema(description = "取水口ID", requiredMode = Schema.RequiredMode.REQUIRED) 
 | 
    @NotNull(message = "取水口ID不能为空") 
 | 
    private Long intakeId; 
 | 
  
 | 
    /** 
 | 
     * (流浪)控制器ID 
 | 
     */ 
 | 
    @Schema(description = "绑定时为流浪控制器ID/解绑时为控制器ID", requiredMode = Schema.RequiredMode.REQUIRED) 
 | 
    @NotNull(message = "(流浪)控制器ID不能为空") 
 | 
    private Long controllerId; 
 | 
  
 | 
    /** 
 | 
     * 备注信息 
 | 
     */ 
 | 
    @Schema(description = "备注", requiredMode = Schema.RequiredMode.NOT_REQUIRED) 
 | 
    @Length(message = "备注长度小于{max}字", max = 200) 
 | 
    private String remarks; 
 | 
  
 | 
    /** 
 | 
     * 操作人编号 
 | 
     */ 
 | 
    @Schema(description = "操作人编号", requiredMode = Schema.RequiredMode.NOT_REQUIRED) 
 | 
    @Positive(message = "操作人编号必须为大于0的整数") 
 | 
    private Long operator; 
 | 
} 
 |