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

import com.fasterxml.jackson.annotation.JsonInclude;
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 java.io.Serial;
import java.io.Serializable;

/**
 *  附件类型
 * @author bfhuange
 * @since 2025/4/18
 */
@Data
@Schema(description = "附件类型")
public class AttachmentType implements Serializable {

    @Serial
    private static final long serialVersionUID = 1L;
    /**
     *  附件id
     */
    @JsonSerialize(using = ToStringSerializer.class)
    @Schema(description = "附件id")
    private Long attachmentId;
    /**
     * ocr附件类型
     */
    @Schema(description = "ocr附件类型")
    private String ocrType;
    /**
     * 附件url
     */
    @JsonInclude(JsonInclude.Include.NON_EMPTY)
    @Schema(description = "附件url")
    private String url;
}
