package cn.freemud.constant;

/**
 * @author Clover.z
 * @Date 2021/8/11
 * @Desc
 */
public class KgdRedisKeyConstant {


    /**
     * 订单是否支持退款配置 缓存key
     *  0：商户号
     *  1：小程序appId
     *
     *  value: hash结构
     *      hkey : eatInType 堂食 和takeOutType 外卖
     *      具体配置为json字符串
     */
    public static final String ORDER_REFUND_CONFIG = "kgd:order_refund_config_{0}_{1}";
    /**
     *  订单类型为堂食 redis配置的hkey
     */
    public static final String REFUND_CFG_EAT_IN = "eatInType";
    /**
     *  订单类型为外卖 redis配置的hkey
     */
    public static final String REFUND_CFG_TAKE_OUT = "takeOutType";

    public static final String ORDER_COMPLAIN_KEY = "kgd:order_config_{0}_{1}";

    public static final String ORDER_COMPLAIN_TYPE = "orderComplaintType";

    /**
     *  下单时 支付商品名称redis缓存key，懒加载方式，有效时间为24小时
     *  {0}：商户号
     *
     *  value：hash结构
     *      hashKey：小程序id wxAppId
     *      hashValue： 支付商户名称
     */
    public static final String PARTNER_PAYMENT_PRINCIPAL_NAME = "kgd:order:payment:principalName:{0}";


}
