You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
|
|
|
package com.youlai.boot.common.enums;
|
|
|
|
|
|
|
|
|
|
import com.baomidou.mybatisplus.annotation.EnumValue;
|
|
|
|
|
import com.fasterxml.jackson.annotation.JsonValue;
|
|
|
|
|
import com.youlai.boot.common.base.IBaseEnum;
|
|
|
|
|
import io.swagger.v3.oas.annotations.media.Schema;
|
|
|
|
|
import lombok.Getter;
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* 日志模块枚举
|
|
|
|
|
*
|
|
|
|
|
* @author Ray
|
|
|
|
|
* @since 2.10.0
|
|
|
|
|
*/
|
|
|
|
|
@Schema(enumAsRef = true)
|
|
|
|
|
@Getter
|
|
|
|
|
public enum LogModuleEnum implements IBaseEnum<Integer> {
|
|
|
|
|
|
|
|
|
|
LOGIN(1, "登录"),
|
|
|
|
|
USER(2, "用户管理"),
|
|
|
|
|
ROLE(3, "角色管理"),
|
|
|
|
|
DEPT(4, "部门管理"),
|
|
|
|
|
MENU(5, "菜单管理"),
|
|
|
|
|
DICT(6, "字典管理"),
|
|
|
|
|
CONFIG(7, "系统配置"),
|
|
|
|
|
FILE(8, "文件管理"),
|
|
|
|
|
NOTICE(9, "通知公告"),
|
|
|
|
|
LOG(10, "日志管理"),
|
|
|
|
|
CODEGEN(11, "代码生成"),
|
|
|
|
|
STRAY_ANIMAL_INFO(12, "流浪动物信息"),
|
|
|
|
|
OTHER(99, "其他"),
|
|
|
|
|
POINT_ACCOUNT(100, "积分账户"),
|
|
|
|
|
POINT_RECORD(101, "积分流水"),
|
|
|
|
|
POINT_RULE(102, "积分规则"),
|
|
|
|
|
SIGN_RECORD(103, "签到记录");
|
|
|
|
|
|
|
|
|
|
@EnumValue
|
|
|
|
|
private final Integer value;
|
|
|
|
|
|
|
|
|
|
@JsonValue
|
|
|
|
|
private final String label;
|
|
|
|
|
|
|
|
|
|
LogModuleEnum(Integer value, String label) {
|
|
|
|
|
this.value = value;
|
|
|
|
|
this.label = label;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
@Override
|
|
|
|
|
public Integer getValue() {
|
|
|
|
|
return this.value;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
@Override
|
|
|
|
|
public String getLabel() {
|
|
|
|
|
return this.label;
|
|
|
|
|
}
|
|
|
|
|
}
|