package com.sckw.redis.constant;

/**
 * @desc: redis常量
 * @author: yzc
 * @date: 2023-06-09 11:27
 */
public class RedisConstant {

    /**
     * 短信验证码值key
     */
    public static final String MESSAGE_SMS_VERIFY_CODE_VALUE_KEY = "sckw:sms:verifyCode:value:%s:%s";
    /**
     * 短信验证码请求key
     */
    public static final String MESSAGE_SMS_VERIFY_CODE_REQUEST_KEY = "sckw:sms:verifyCode:request:%s:%s";
    /**
     * 短信验证码有效时间（秒）
     */
    public static final Long SMS_VERIFY_CODE_VALID_TIME = 180L;

    /**
     * message消费请求key
     */
    public static final String MESSAGE_CONSUMER_REQUEST_KEY = "sckw:message:consumer:request:%s";

    /**
     * 商品更新库存锁key
     */
    public static final String GOODS_UPDATE_AMOUNT_KEY = "sckw:product:goods:update:amount:%s";
    /**
     * 更新贸易订单委托量、已履约量锁key
     */
    public static final String TORDER_UPDATE_AMOUNT_KEY = "sckw:trade:order:update:amount:%s";
    /**
     * 合同签约完成更新贸易订单状态锁key
     */
    public static final String TORDER_CONTRACT_UPDATE_KEY = "sckw:trade:order:contract:update:%s";

    /**
     * 消费请求有效时间（秒）
     */
    public static final Long CONSUMER_REQUEST_VALID_TIME = 180L;
    /**
     * 结算单锁
     */
    public static final String SETTLEMENT_KEY = "sckw:kst:%s";

}
