package com.jeequan.jeepay.db.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.util.Date;

/**
 * <p>
 * 商户公众号消息接收用户列表
 * </p>
 *
 * @author [mybatis plus generator]
 * @since 2021-12-28
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("t_mch_wxmp_user")
public class MchWxmpUser extends com.jeequan.jeepay.core.entity.MchWxmpUser {

    public static final LambdaQueryWrapper<MchWxmpUser> gw(){
        return new LambdaQueryWrapper<>();
    }

    private static final long serialVersionUID=1L;

    public static final byte SEND_STATE_CLOSE = 0;
    public static final byte SEND_STATE_OPEN = 1;
    public static final byte SEND_STATE_ERROR = 2;

    /**
     * 用户编号
     */
    @TableId(value = "user_id", type = IdType.AUTO)
    private Long userId;

    /**
     * 系统用户ID
     */
    private Long sysUserId;

    /**
     * 微信昵称
     */
    private String nickname;

    /**
     * 微信openId
     */
    private String wxOpenId;

    /**
     * 微信 appId
     */
    private String wxAppId;

    /**
     * 商户号
     */
    private String mchNo;

    /**
     * 消息推送状态：0-未开启，1-开启 2：推送失败，已自动关闭
     */
    private Byte sendStatus;

    /**
     * 创建时间
     */
    private Date createdAt;

    /**
     * 更新时间
     */
    private Date updatedAt;


}
