package xyz.wbsite.mcp.basic.model; import com.fasterxml.jackson.annotation.JsonProperty; /** * 文本内容数据类 * 用于封装文本类型的内容数据 * * @author wangbing */ public class TextContentData extends Data { @JsonProperty("type") private String type; @JsonProperty("text") private String text; public TextContentData() { } public TextContentData(String type, String text) { this.type = type; this.text = text; } public TextContentData(String text) { this("text", text); } public String getType() { return type; } public void setType(String type) { this.type = type; } public String getText() { return text; } public void setText(String text) { this.text = text; } }