package com.wzj.soopin.member.domain.po;

import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import org.dromara.common.core.domain.model.BaseAudit;
import org.dromara.common.excel.annotation.Excel;

import java.time.LocalDateTime;
/**
 * 用户微信信息对象 ums_member_wechat
 *
 * @author zcc
 */
@Schema(description="用户微信信息对象")
@Data
@TableName("ums_member_wechat")
public class MemberWechat  extends BaseAudit {
    private static final long serialVersionUID = 1L;

    @Schema(description ="ID")
    private Long id;

    @Schema(description ="MEMBER_ID")
    @Excel(name = "MEMBER_ID")
    private Long memberId;

    @Schema(description ="只有在用户将公众号绑定到微信开放平台帐号后，才会出现该字段")
    @Excel(name = "只有在用户将公众号绑定到微信开放平台帐号后，才会出现该字段")
    private String unionid;

    @Schema(description ="用户的标识，对当前公众号唯一")
    @Excel(name = "用户的标识，对当前公众号唯一")
    private String openid;

    @Schema(description ="小程序唯一身份ID")
    @Excel(name = "小程序唯一身份ID")
    private String routineOpenid;

    @Schema(description ="用户所在的分组ID（兼容旧的用户分组接口）")
    @Excel(name = "用户所在的分组ID", readConverterExp = "兼=容旧的用户分组接口")
    private Integer groupid;

    @Schema(description ="用户被打上的标签ID列表")
    @Excel(name = "用户被打上的标签ID列表")
    private String tagidList;

    @Schema(description ="用户是否订阅该公众号标识")
    @Excel(name = "用户是否订阅该公众号标识")
    private Integer subscribe;

    @Schema(description ="关注公众号时间")
    @Excel(name = "关注公众号时间")
    private Integer subscribeTime;

    @Schema(description ="小程序用户会话密匙")
    @Excel(name = "小程序用户会话密匙")
    private String sessionKey;

    @Schema(description ="token")
    @Excel(name = "token")
    private String accessToken;

    @Schema(description ="过期时间")
    @Excel(name = "过期时间")
    private Integer expiresIn;

    @Schema(description ="刷新token")
    @Excel(name = "刷新token")
    private String refreshToken;

    @Schema(description ="过期时间")
    @Excel(name = "过期时间", width = 30, dateFormat = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime expireTime;

}
