mirror of
https://github.com/xinnan-tech/xiaozhi-esp32-server.git
synced 2026-07-23 07:33:53 +08:00
34 lines
742 B
Java
34 lines
742 B
Java
package xiaozhi.common.entity;
|
|
|
|
import java.io.Serializable;
|
|
import java.util.Date;
|
|
|
|
import com.baomidou.mybatisplus.annotation.FieldFill;
|
|
import com.baomidou.mybatisplus.annotation.TableField;
|
|
import com.baomidou.mybatisplus.annotation.TableId;
|
|
|
|
import lombok.Data;
|
|
|
|
/**
|
|
* 基础实体类,所有实体都需要继承
|
|
* Copyright (c) 人人开源 All rights reserved.
|
|
* Website: https://www.renren.io
|
|
*/
|
|
@Data
|
|
public abstract class BaseEntity implements Serializable {
|
|
/**
|
|
* id
|
|
*/
|
|
@TableId
|
|
private Long id;
|
|
/**
|
|
* 创建者
|
|
*/
|
|
@TableField(fill = FieldFill.INSERT)
|
|
private Long creator;
|
|
/**
|
|
* 创建时间
|
|
*/
|
|
@TableField(fill = FieldFill.INSERT)
|
|
private Date createDate;
|
|
} |