🔄Update: 定义 LuaStatus 和 ThumbType 枚举类型
This commit is contained in:
@@ -0,0 +1,17 @@
|
||||
package cn.hezhaohui.thumb.model.enums;
|
||||
|
||||
import lombok.Getter;
|
||||
|
||||
@Getter
|
||||
public enum LuaStatusEnum {
|
||||
// 成功
|
||||
SUCCESS(1L),
|
||||
// 失败
|
||||
FAIL(0L);
|
||||
|
||||
private final long value;
|
||||
|
||||
LuaStatusEnum(long value) {
|
||||
this.value = value;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,19 @@
|
||||
package cn.hezhaohui.thumb.model.enums;
|
||||
|
||||
import lombok.Getter;
|
||||
|
||||
@Getter
|
||||
public enum ThumbTypeEnum {
|
||||
// 点赞
|
||||
INCR(1),
|
||||
// 取消点赞
|
||||
DECR(-1),
|
||||
// 不发生改变
|
||||
NON(0);
|
||||
|
||||
private final int value;
|
||||
|
||||
ThumbTypeEnum(int value) {
|
||||
this.value = value;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user