minio整理,一些返回逻辑修改
This commit is contained in:
@@ -1,6 +1,8 @@
|
|||||||
package com.aida.lanecarford.entity;
|
package com.aida.lanecarford.entity;
|
||||||
|
|
||||||
import com.baomidou.mybatisplus.annotation.*;
|
import com.baomidou.mybatisplus.annotation.*;
|
||||||
|
import com.fasterxml.jackson.annotation.JsonFormat;
|
||||||
|
import io.swagger.v3.oas.annotations.media.Schema;
|
||||||
import lombok.Data;
|
import lombok.Data;
|
||||||
|
|
||||||
import java.time.LocalDateTime;
|
import java.time.LocalDateTime;
|
||||||
@@ -13,29 +15,36 @@ import java.time.LocalDateTime;
|
|||||||
* @since 1.0.0
|
* @since 1.0.0
|
||||||
*/
|
*/
|
||||||
@Data
|
@Data
|
||||||
|
@Schema(description = "基础实体类")
|
||||||
public abstract class BaseEntity {
|
public abstract class BaseEntity {
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 主键ID
|
* 主键ID
|
||||||
*/
|
*/
|
||||||
|
@Schema(description = "主键ID", example = "1")
|
||||||
@TableId(value = "id", type = IdType.AUTO)
|
@TableId(value = "id", type = IdType.AUTO)
|
||||||
private Long id;
|
private Long id;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 创建时间
|
* 创建时间
|
||||||
*/
|
*/
|
||||||
|
@Schema(description = "创建时间", example = "2024-01-01 12:00:00")
|
||||||
|
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
|
||||||
@TableField(value = "created_time", fill = FieldFill.INSERT)
|
@TableField(value = "created_time", fill = FieldFill.INSERT)
|
||||||
private LocalDateTime createdTime;
|
private LocalDateTime createdTime;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 更新时间
|
* 更新时间
|
||||||
*/
|
*/
|
||||||
|
@Schema(description = "更新时间", example = "2024-01-01 12:00:00")
|
||||||
|
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
|
||||||
@TableField(value = "updated_time", fill = FieldFill.INSERT_UPDATE)
|
@TableField(value = "updated_time", fill = FieldFill.INSERT_UPDATE)
|
||||||
private LocalDateTime updatedTime;
|
private LocalDateTime updatedTime;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 逻辑删除标志:0-未删除,1-已删除
|
* 逻辑删除标志:0-未删除,1-已删除
|
||||||
*/
|
*/
|
||||||
|
@Schema(description = "逻辑删除标志", example = "0", allowableValues = {"0", "1"})
|
||||||
@TableLogic
|
@TableLogic
|
||||||
@TableField(value = "deleted")
|
@TableField(value = "deleted")
|
||||||
private Integer deleted;
|
private Integer deleted;
|
||||||
|
|||||||
Reference in New Issue
Block a user