package com.miaxis.wx.domain;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.miaxis.common.core.domain.BaseBusinessEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

/**
 * 微信推广二维码对象 wx_ticket
 * @author wwl
 * @version 1.0
 * @date 2021/10/28 16:22
 */
@Data
@TableName("wx_ticket")
@ApiModel(value = "WxQrTicket", description = "微信推广二维码对象 wx_ticket")
public class WxTicket extends BaseBusinessEntity {
    private static final long serialVersionUID = 1L;

    /** 主键 */
    @TableId(value = "id")
    @ApiModelProperty(value = "主键")
    private Long id;

    @TableField("openid")
    @ApiModelProperty(value = "用户唯一标识(微信)")
    private String openid;

    @TableField("ticket")
    @ApiModelProperty(value = "获取的二维码ticket")
    private String ticket;

    @TableField("ticket_file_id")
    @ApiModelProperty(value = "永久二维码图片id（关联file_info文件表）")
    private Long ticketFileId;

    @TableField("media_id")
    @ApiModelProperty(value = "微信永久素材media_id（可根据接口获取图片、视频、语音等）")
    private String mediaId;

    @TableField("status")
    @ApiModelProperty(value = "状态  0：有效(默认)、1：失效 （伪删除）")
    private String status;
}
