70 lines
2.0 KiB
Java
70 lines
2.0 KiB
Java
package com.gunshi.project.ss.model;
|
|
|
|
|
|
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 io.swagger.v3.oas.annotations.media.Schema;
|
|
import jakarta.validation.constraints.NotBlank;
|
|
import jakarta.validation.constraints.Size;
|
|
import lombok.Data;
|
|
import org.apache.http.auth.AUTH;
|
|
|
|
import java.io.Serializable;
|
|
import java.util.List;
|
|
|
|
/**
|
|
* 描述: 监测断面信息表
|
|
* author: xusan
|
|
* date: 2024-07-08 17:34:26
|
|
*/
|
|
@Schema(description="监测断面信息表")
|
|
@Data
|
|
@TableName("public.att_dam_profile")
|
|
public class AttDamProfile implements Serializable {
|
|
|
|
|
|
private static final long serialVersionUID = 1L;
|
|
|
|
@TableId(value = "id", type = IdType.AUTO)
|
|
private Long id;
|
|
|
|
/**
|
|
* 断面编号
|
|
*/
|
|
@TableField(value="profile_code")
|
|
@Schema(description="断面编号")
|
|
@Size(max = 100,message = "断面编号最大长度要小于 100")
|
|
@NotBlank(message = "断面编号不能为空")
|
|
private String profileCode;
|
|
|
|
/**
|
|
* 断面名称
|
|
*/
|
|
@TableField(value="profile_name")
|
|
@Schema(description="断面名称")
|
|
@Size(max = 200,message = "断面名称最大长度要小于 200")
|
|
private String profileName;
|
|
|
|
/**
|
|
* 大坝编号
|
|
*/
|
|
@TableField(value="dam_code")
|
|
@Schema(description="大坝编号")
|
|
@Size(max = 32,message = "大坝编号最大长度要小于 32")
|
|
private String damCode;
|
|
|
|
/**
|
|
* 备注/描述
|
|
*/
|
|
@TableField(value="remark")
|
|
@Schema(description="备注/描述")
|
|
@Size(max = 250,message = "备注/描述最大长度要小于 250")
|
|
private String remark;
|
|
|
|
|
|
@TableField(exist = false)
|
|
@Schema(description = "文件集合")
|
|
private List<FileAssociations> files;
|
|
} |