package com.cyksj.model.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.ejlchina.searcher.bean.DbIgnore;
import lombok.Getter;
import lombok.Setter;

/**
 * @author chan
 * @date 2022/12/13 2:07 PM
 */
@Getter
@Setter
public class ShopConfig extends BaseEntity{

    /**
     * 崇宇支付宝商户
     */
    public static final String ZFB_DEFAULT_APP_ID = "2021003173606268";

    /**
     * 分销提现支付宝默认商户
     * 崇宇
     */
    public static final String DISTRIBUTE_ZFB_DEFAULT_APP_ID = "2021003173606268";

    public static final String WX_DEFAULT_APP_ID = "1634772026";

    /**
     * shopid，appid
     */
    private String appId;

    /**
     * 商户类型 wx zfb
     */
    private String type;

    /**
     * 密钥
     */
    private String secret;

    /**
     * 应用私钥
     */
    private String appPrivateKey;

    /**
     * 应用公钥
     */
    private String appPublicKey;

    /**
     * 支付宝公钥
     */
    private String publicKey;

    /**
     * 备注
     */
    private String remark;

    @DbIgnore
    @TableField(exist = false)
    private Integer channelCount;

    /***
     * 是否需要携带证书
     */
    private Boolean isCert;

    /**
     * 支付主体
     */
    private String payment;

    /**
     * 每日限单数
     */
    @DbIgnore
    @TableField(exist = false)
    private Integer dayLimitOrders;

    /**
     * 限单是否启用
     */
    @DbIgnore
    @TableField(exist = false)
    private Boolean dayLimitStatus;
}
