package com.playlet.system.domain;

import java.util.Date;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.playlet.common.core.domain.BaseEntity;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import com.playlet.common.annotation.Excel;

/**
 * 公众号用户浏览记录对象 public_user_record
 *
 * @author ruoyi
 * @date 2024-06-15
 */
@Data
@EqualsAndHashCode(callSuper = false)
@TableName(value = "public_user_record")
@ApiModel(value = "用户浏览记录")
public class PublicUserRecord extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 主键 */
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    /** 用户昵称 */
    @Excel(name = "用户昵称")
    @ApiModelProperty(value = "用户昵称")
    private String name;

    /** 微信union_id */
    @Excel(name = "微信union_id")
    @ApiModelProperty(value = "微信union_id")
    private String unionId;

    /** 开始阅读时间 */
//    @JsonFormat(pattern = "yyyy-MM-dd")
    @ApiModelProperty(value = "开始阅读时间")
    @Excel(name = "开始阅读时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date beginTime;

    /** 结束阅读时间 */
//    @JsonFormat(pattern = "yyyy-MM-dd")
    @ApiModelProperty(value = "结束阅读时间")
    @Excel(name = "结束阅读时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date endTime;

    /** 公众号昵称 */
    @Excel(name = "公众号昵称")
    @ApiModelProperty(value = "公众号昵称")
    private String publicName;

    /** 公众号id */
    @Excel(name = "公众号id")
    @ApiModelProperty(value = "公众号id")
    private Long publicId;

}
