package com.dy.pipIrrProject.divide;
|
|
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 17:00
|
* @LastEditTime 2024-01-05 17:00
|
* @Description
|
*/
|
|
@Data
|
@Schema(name = "分水房传入对象")
|
public class DtoDivide {
|
public static final long serialVersionUID = 1L;
|
|
/**
|
* 所在村
|
*/
|
@Schema(description = "所在村ID", requiredMode = Schema.RequiredMode.REQUIRED)
|
@NotNull(message = "所在村不能为空")
|
private Long villageId;
|
|
/**
|
* 所在片区
|
*/
|
@Schema(description = "所在片区ID", requiredMode = Schema.RequiredMode.REQUIRED)
|
@NotNull(message = "所在片区不能为空")
|
private Long blockId;
|
|
/**
|
* 分水口名称或编号
|
*/
|
@Schema(description = "分水口名称", requiredMode = Schema.RequiredMode.REQUIRED)
|
@NotBlank(message = "分水房名称不能为空")
|
@Length(max = 25, message = "分水口名称最多25字")
|
private String name;
|
|
/**
|
* 覆盖村
|
*/
|
@Schema(description = "覆盖村", requiredMode = Schema.RequiredMode.REQUIRED)
|
@Length(max = 100, message = "覆盖村最多100字")
|
private String villages;
|
|
/**
|
* 覆盖面积(平方公里)
|
*/
|
@Schema(description = "覆盖面积", requiredMode = Schema.RequiredMode.REQUIRED)
|
private Double area;
|
|
/**
|
* 负责人
|
*/
|
@Schema(description = "负责人", requiredMode = Schema.RequiredMode.REQUIRED)
|
private String header;
|
|
/**
|
* 联系电话
|
*/
|
@Schema(description = "联系电话", requiredMode = Schema.RequiredMode.REQUIRED)
|
@Length(max = 11, message = "联系电话最大11位")
|
private String phone;
|
|
/**
|
* 经度
|
*/
|
@Schema(description = "经度", requiredMode = Schema.RequiredMode.REQUIRED)
|
@NotNull(message = "经度不能为空")
|
private Double lng;
|
|
/**
|
* 纬度
|
*/
|
@Schema(description = "经度", requiredMode = Schema.RequiredMode.REQUIRED)
|
@NotNull(message = "经度不能为空")
|
private Double lat;
|
|
/**
|
* 备注信息
|
*/
|
@Schema(description = "备注", requiredMode = Schema.RequiredMode.NOT_REQUIRED)
|
@Length(max = 200, message = "备注最多200字")
|
private String remarks;
|
|
/**
|
* 操作人编号
|
*/
|
@Schema(description = "操作人编号", requiredMode = Schema.RequiredMode.NOT_REQUIRED)
|
@NotNull(message = "操作人编号不能为空")
|
private Long operator;
|
}
|