72 lines
2.2 KiB
Java
72 lines
2.2 KiB
Java
package com.gunshi.project.hsz.model;
|
|
|
|
import java.io.Serializable;
|
|
import java.util.Date;
|
|
|
|
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.fasterxml.jackson.annotation.JsonIgnoreProperties;
|
|
|
|
import io.swagger.v3.oas.annotations.media.Schema;
|
|
import jakarta.validation.constraints.NotBlank;
|
|
import jakarta.validation.constraints.NotNull;
|
|
import jakarta.validation.constraints.Size;
|
|
import lombok.Data;
|
|
|
|
@Schema
|
|
@Data
|
|
@TableName(value = "st_img_r_real")
|
|
@JsonIgnoreProperties(ignoreUnknown = true)
|
|
public class StImgRReal implements Serializable {
|
|
|
|
|
|
@TableField(value="stcd")
|
|
@Schema(description="测站编码")
|
|
@Size(max = 20,message = "测站编码最大长度要小于 20")
|
|
@NotBlank(message = "测站编码不能为空")
|
|
private String stcd;
|
|
|
|
@TableField(value = "tm")
|
|
@Schema(description="")
|
|
@NotNull(message = "不能为null")
|
|
private Date tm;
|
|
|
|
@TableField(value = "chtm")
|
|
@Schema(description="")
|
|
@NotNull(message = "不能为null")
|
|
private Date chtm;
|
|
|
|
@TableField(value = "img_path")
|
|
@Schema(description="")
|
|
@Size(max = 256,message = "最大长度要小于 256")
|
|
@NotBlank(message = "不能为空")
|
|
private String imgPath;
|
|
|
|
@TableId(value="chid", type = IdType.NONE)
|
|
@Schema(description="")
|
|
@Size(max = 10,message = "最大长度要小于 10")
|
|
@NotBlank(message = "不能为空")
|
|
private String chid;
|
|
|
|
@TableField(value = "\"source\"")
|
|
@Schema(description="")
|
|
@Size(max = 50,message = "最大长度要小于 50")
|
|
private String source;
|
|
|
|
private static final long serialVersionUID = 1L;
|
|
|
|
public static final String COL_STCD = "stcd";
|
|
|
|
public static final String COL_TM = "tm";
|
|
|
|
public static final String COL_CHTM = "chtm";
|
|
|
|
public static final String COL_IMG_PATH = "img_path";
|
|
|
|
public static final String COL_CHID = "chid";
|
|
|
|
public static final String COL_SOURCE = "source";
|
|
}
|