2021与蓝度共同重构项目,服务端
liuhaonan
2022-10-12 6fe040e3e2805c28442090221e9a4597381830d9
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
package com.sandu.ximon.admin.redis;
 
import com.sandu.common.redis.BasePrefix;
 
/**
 * @author chenjiantian
 * @date 2021/9/3 16:40
 * 灯相关的key
 */
public class LightKey extends BasePrefix {
    public LightKey(int expireSeconds, String prefix) {
        super(expireSeconds, prefix);
    }
 
    @Override
    public String getModelName() {
        return "Light";
    }
 
 
    /**
     * 单灯上报的mac,如果有说明该上报的单灯以前已经上报过
     */
    public static LightKey REPORT_MAC = new LightKey(3600, "ReportMac");
 
    /**
     * 灯杆编号后缀每天从1开始递增,定时任务0点重置
     */
    public static LightKey POLE_SN = new LightKey(86400, "PoleSn");
 
}