54 lines
1.2 KiB
Java
54 lines
1.2 KiB
Java
package com.example.demo.entity;
|
|
|
|
import com.baomidou.mybatisplus.annotation.*;
|
|
import lombok.Data;
|
|
|
|
import java.sql.Timestamp;
|
|
|
|
@Data
|
|
@TableName("news")
|
|
public class News {
|
|
@TableId(value = "ID", type = IdType.AUTO)
|
|
private Integer id;
|
|
|
|
@TableField(value = "TITLE")
|
|
private String title;
|
|
|
|
@TableField(value = "EXCERPT")
|
|
private String excerpt;
|
|
|
|
@TableField(value = "CREATE_TIME", fill = FieldFill.UPDATE)
|
|
private Timestamp create_time;
|
|
|
|
@TableField(value = "UPDATE_TIME", fill = FieldFill.INSERT)
|
|
private Timestamp update_time;
|
|
|
|
@TableField(value = "IS_DELETE")
|
|
private Boolean is_delete;
|
|
|
|
@TableField(value = "EXT")
|
|
private String ext;
|
|
|
|
@TableField(value = "BATCH_ID")
|
|
private String batch_id;
|
|
|
|
public News() {
|
|
|
|
}
|
|
|
|
public News(String title, String excerpt) {
|
|
this.title = title;
|
|
this.excerpt = excerpt;
|
|
}
|
|
|
|
public News(int id, String title, String excerpt, Timestamp create_time, Timestamp update_time, Boolean is_delete, String ext) {
|
|
this.id = id;
|
|
this.title = title;
|
|
this.excerpt = excerpt;
|
|
this.create_time = create_time;
|
|
this.update_time = update_time;
|
|
this.is_delete = is_delete;
|
|
this.ext = ext;
|
|
}
|
|
}
|