package com.jeequan.jeepay.db.entity;

import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

import java.util.Date;

/**
 * 微信授权信息表
 * CREATE TABLE `t_wx_auth_data` (
 *   `id` int(11) NOT NULL,
 *   `agent_no` varchar(64) DEFAULT NULL COMMENT '服务商编号',
 *   `type` varchar(2) DEFAULT NULL COMMENT '01: 公众号; 02: 小程序',
 *   `wx_auth_name` varchar(50) DEFAULT NULL,
 *   `value` varchar(64) DEFAULT NULL,
 *   `create_time` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP,
 *   PRIMARY KEY (`id`),
 *   UNIQUE KEY `wx_auth_name` (`wx_auth_name`)
 * ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
 */
@Data
@TableName("t_third_auth_data")
public class ThirdAuthDataEntity {

    @TableId
    private Long id;

    private String agentNo;

    /**
     * ZFB：支付宝; WX：微信
     */
    private String type;

    /**
     * 01: 公众号、H5; 02: 小程序
     */
    private String subType;

    public static final String TYPE_ZFB = "ZFB";

    public static final String TYPE_WX = "WX";

    public static final String SUB_TYPE_H5 = "01";
    public static final String SUB_TYPE_LITE = "02";

    /**
     * 微信授权路径名称
     * eg. asiuioruoiu.txt
     */
    private String authFileName;

    private String value;

    private Date createTime;
}
