admin
2020-05-20 98b1a0affd69bbe63223c21fdd2c404e8bedfccb
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
package com.yeshi.fanli.util;
 
public enum RedisKeyEnum {
    emptyKey("", "空值-key外部空值"),
    SMS("sms-", "短信"),
    SMSVCode("smscode-", "短信验证码"),
    SMSStateAlipay("smsstate-alipay-", "支付宝短信验证码"),
    SMSLoginCount("sendMSNLoginCount", "登录发送短信次数统计"),
    SMSBindCount("sendMSNBindCount", "绑定手机号发送短信次数统计"),
    wxmpUserLogin("wxmp-user-login-", "小程序登录"),
    frequencyLimit("frequency-", "频率限制"),
    inviteShortLink("invite-shortlink-", "短连接"),
 
    taobaoGoods("taobao-goods-", "淘宝商品"),
    taobaoGoodsCommon("taobao-goods-common-", "淘宝商品"),
    taobaoGoodsTemp("taobao-goods-temp-", "淘宝商品缓存"),
    taobaoImgs("taobao-img-", "淘宝图片"),
    taobaoGoodsDetailimgs("taobao-goods-detailimgs-size-", "淘宝图片"),
    taobaoShop("taobao-shop-", "淘宝店铺"),
    taobaoTokenCommon("taobao-common-token-", "淘宝口令"),
    taobaoTokenTLJ("taobao-tlj-token-", "淘礼金的口令"),
    taobaoCoupleXCX("taobao-couple-xcx-", "淘宝券"),
    taobaoUserTKToken("taobao-user-token-", "用户的淘口令"),
    taobaoCachecoupon("cachecoupon-", "淘宝券商品列表"),
    taobaolinkParse("linkParse-", "获取淘宝推广链接"),
    taobaoUpdate("tb-u-", "淘宝商品更新"),
    taobaoQueue("tb-u-q-", "淘宝商品队列"),
    taobaoCode("taobao-code-", "淘宝code"),
    taobaoTokenGoodsMap("tb-t-g_m-", "淘宝口令对应商品的映射关系保存"),
    taobaoBaseLink("tb-b-l-", "淘客商品转链结果缓存"),
    JDGoods("JD-goods-", "京东商品"),
    JDShortUrl("jd-link-to-goods-", "京东短链"),
    jingDongGoods("jingdong-goods-", "京东商品"),
    PDDGoods("PDD-goods-", "拼多多商品"),
    pinDuoDuoGoods("pinduoduo-goods-", "拼多多商品"),
 
    bindAlipay("bindalipay-", "绑定支付宝"),
    seacrhGoods("integral-seacrh-goods-", "商品搜索"),
    couponByClass("getCouponListByClass-", "通过分类获取券信息"),
    elmeLink("elme-link-", "饿了么链接"),
    kouBeiLink("koubei-link-", "口碑链接"),
    recommendGoodsUser("recommend-goods-user-", "用户推荐商品"),
 
    S11YuShou("s11-yushou-", "双11预售"),
    S11PresaleGoods("s11_presale_goods-", "双11淘宝预售商品"),
    S11PresaleGoodsType("s11_presale_goods-type-", "双11淘宝预售商品类型"),
    S11SuperHongBao("s11-superhongbao-", "双11超级红包"),
 
    spikeGoodsHour("spikeGoods_hour-", "限时秒杀时间"),
    spikeGoodsList("spikeGoodsList-", "限时秒杀商品列表"),
    spikeGoodsHourNew("spikeGoods_hour_new-", "限时秒杀时间新版"),
    spikeGoodsListNew("spikeGoodsList_new-", "限时秒杀商品新版"),
 
    addOrder("addorder-", "添加订单"),
    addOrderQueue("addorderqueue-", "添加订单队列"),
    JDOrder("jd-order-", "京东订单"),
    PDDOrder("pdd-order-", "拼多多订单"),
    hongBaoFanLi("hongbao-fanli-", "红包返利"),
 
    deviceSex("device_sex-", "设备性别版本"),
 
    convertLinkDocTemp("convert-link-doc-temp-", "转链文本暂存"),
    convertLinkDocResultTemp("convert-link-doc-result-temp-", "转链文本结果暂存")
 
    ;
 
    private final String key;
    private final String desc;
 
    private RedisKeyEnum(String key, String desc) {
        this.key = key;
        this.desc = desc;
    }
 
    public String getDesc() {
        return desc;
    }
 
    public String getKey() {
        return key;
    }
 
    public static String getRedisKey(RedisKeyEnum keyEnum, String value) {
        return keyEnum.getKey() + value;
    }
}