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 com.jeequan.jeepay.core.model.BaseModel;
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_device_provide_config")
public class DeviceProvideConfig extends BaseModel {

    private static final long serialVersionUID=1L;

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

    public final static byte DEVICE_TYPE_SPEAKER = 1;
    public final static byte DEVICE_TYPE_PRINTER = 2;
    public final static byte DEVICE_TYPE_POS = 3;
    public final static byte DEVICE_TYPE_AUTO_POS = 4;
    public final static byte DEVICE_TYPE_PLUGIN = 5;

    /**
     * 厂商配置ID
     */
    @TableId(value = "config_id", type = IdType.AUTO)
    private Long configId;

    /**
     * 厂商配置备注信息， 会在商户侧进行回显
     */
    private String configDesc;

    /**
     * 设备类型： 1-云喇叭, 2-云打印, 3-扫码pos, 4-智能pos, 5-收银插件
     */
    private Byte deviceType;

    /**
     * 设备厂商： zgwl-智谷物联, bsj-博实结, fe-飞鹅, ps-品生, clj-财来聚, wsy-微收银, xjl-小精灵
     */
    private String provider;

    /**
     * 厂商配置参数appId（扫码POS定义唯一appId）
     */
    private String appId;

    /**
     * 厂商配置参数，json字符串
     */
    private String providerParams;

    /**
     * 状态： 0-停用，1-启用
     */
    private Byte state;

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

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


}
