package com.gxwebsoft.common.system.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import io.swagger.v3.oas.annotations.media.Schema;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import java.io.Serializable;

/**
 * 微信公众号模板消息对象
 *
 * @author WebSoft
 * @since 2018-12-24 16:10:54
 */
@Data
@Schema(description = "微信公众号模板消息对象")
public class TemplateMessage implements Serializable {
    private static final long serialVersionUID = 1L;

    @Schema(description = "接收者openid")
    @TableField(exist = false)
    private String toUser;

    @Schema(description = "模板ID")
    @TableField(exist = false)
    private String templateId;

    @Schema(description = "模板跳转链接（海外账号没有跳转能力）")
    @TableField(exist = false)
    private String url;

    @Schema(description = "跳小程序所需数据，不需跳小程序可不用传该数据")
    @TableField(exist = false)
    private String miniProgram;

    @Schema(description = "所需跳转到的小程序appid（该小程序appid必须与发模板消息的公众号是绑定关联关系，暂不支持小游戏）")
    @TableField(exist = false)
    private String appid;

    @Schema(description = "所需跳转到小程序的具体页面路径，支持带参数,（示例index?foo=bar），要求该小程序已发布，暂不支持小游戏")
    @TableField(exist = false)
    private String pagePath;

    @Schema(description = "模板数据")
    @TableField(exist = false)
    private Object data;

}
