zhanghua
2025-06-11 2ca169c85f61256fb5185c078dba1bfef2be5066
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
package cn.lili.common.properties;
 
import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.context.annotation.Configuration;
 
/**
 * 在线人数统计
 *
 * @author Chopper
 * @version v4.0
 * @since 2021/2/21 10:19
 */
@Data
@Configuration
@ConfigurationProperties(prefix = "lili.statistics")
public class StatisticsProperties {
 
    /**
     * 在线人数统计 X 小时
     */
    private Integer onlineMember = 48;
 
    /**
     * 当前在线人数 刷新时间间隔
     */
    private Integer currentOnlineUpdate = 600;
 
    public Integer getOnlineMember() {
        if (onlineMember == null) {
            return 48;
        }
        return onlineMember;
    }
 
    public Integer getCurrentOnlineUpdate() {
        if (currentOnlineUpdate == null) {
            return 600;
        }
        return currentOnlineUpdate;
    }
}