package org.springblade.openapi.ocr.pojo.vo;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import org.springblade.core.tool.utils.DateUtil;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serial;
import java.io.Serializable;
import java.util.Date;

/**
 * @author bfhuange
 * @since 2025/4/22
 */
@Data
@Schema(description = "提供给ocr的项目信息")
public class Api4OCRProjectVO implements Serializable {
    @Serial
    private static final long serialVersionUID = 1L;
    /**
     * 项目id
     */
    @JsonSerialize(using = ToStringSerializer.class)
    @Schema(description = "项目id")
    private Long id;
    /**
     * 项目名称
     */
    @Schema(description = "项目名称")
    private String name;
    /**
     * 项目简称
     */
    @Schema(description = "项目简称")
    private String abbreviation;

    /**
     * 创建时间
     */
    @DateTimeFormat(pattern = DateUtil.PATTERN_DATETIME)
    @JsonFormat(pattern = DateUtil.PATTERN_DATETIME)
    @Schema(description = "创建时间")
    private Date createTime;

    /**
     * 更新时间
     */
    @DateTimeFormat(pattern = DateUtil.PATTERN_DATETIME)
    @JsonFormat(pattern = DateUtil.PATTERN_DATETIME)
    @Schema(description = "更新时间")
    private Date updateTime;
}
