package com.seer.teach.mp.admin.controller.resp;

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

import java.time.LocalDateTime;

@Data
public class MpTemplateMessageResp {

    private Integer id;

    @Schema(description = "微信公众号 appid")
    private Long userId;

    @Schema(description = "用户ID")
    private String appId;

    @Schema(description = "消息ID")
    private String msgId;

    @Schema(description = "业务Id")
    private String businessId;

    @Schema(description = "微信openid")
    private String openid;

    @Schema(description = "微信模板ID")
    private String templateId;

    @Schema(description = "跳转链接")
    private String url;

    @Schema(description = "模板数据（JSON格式）")
    private String data;

    @Schema(description = "发送状态：1-发送成功，2-发送失败")
    private Integer status;

    @Schema(description = "创建人")
    @TableField("create_by")
    private String createBy;

    @Schema(description = "修改人")
    @TableField("update_by")
    private String updateBy;

    @Schema(description = "租户id")
    private String tenantId;

    @Schema(description = "错误信息")
    private String errorMsg;

    /**
     * 更新时间
     */
    @Schema(description = "更新时间")
    private LocalDateTime updateTime;


    /**
     * 创建时间
     */
    private LocalDateTime createTime;
}
