xiangpei
2025-05-26 e1350e5565e0119d63e95069d6b0ee135795426d
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
package cn.lili.modules.system.entity.dto;
 
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
 
import java.io.Serializable;
 
/**
 * 积分签到设置
 *
 * @author Chopper
 * @since 2021-02-26 11:48
 */
@Data
public class HotWordsSettingItem implements Comparable<HotWordsSettingItem>, Serializable {
 
 
    @ApiModelProperty(value = "热词")
    private String keywords;
 
 
    @ApiModelProperty(value = "默认分数")
    private Integer score;
 
 
    public Integer getScore() {
        if (score == null || score < 0) {
            return 0;
        }
        return score;
    }
 
    public void setScore(Integer score) {
        this.score = score;
    }
 
    @Override
    public int compareTo(HotWordsSettingItem pointSettingItem) {
        return pointSettingItem.getScore();
    }
}