package com.wmyun.farmwork.word.core.model;

import com.fasterxml.jackson.annotation.JsonSubTypes;
import com.fasterxml.jackson.annotation.JsonTypeInfo;
import com.wmyun.farmwork.word.core.enums.BookmarkType;
import com.wmyun.farmwork.word.core.model.ext.PictureExData;
import com.wmyun.farmwork.word.core.model.ext.TextExData;
import lombok.Data;

/**
 * @Description: 扩展数据
 * @Date: 2025/3/3 10:58
 * @Created: by ZZSLL
 */

@Data
@JsonTypeInfo(
        use = JsonTypeInfo.Id.NAME,
        property = "type"
)
@JsonSubTypes({
        @JsonSubTypes.Type(value = TextExData.class, name = "TEXT"),
        @JsonSubTypes.Type(value = PictureExData.class, name = "PICTURE")
})
public class AbstractExData {
    private BookmarkType type;
}
