feat: 重构项目结构并新增微信小程序认证模块

This commit is contained in:
Ray.Hao
2026-03-24 07:52:05 +08:00
parent 465e63c99d
commit 8188c82c3d
158 changed files with 1342 additions and 1562 deletions

View File

@@ -1,6 +1,8 @@
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;
@@ -12,22 +14,39 @@ import lombok.Getter;
*/
@Schema(enumAsRef = true)
@Getter
public enum LogModuleEnum {
public enum LogModuleEnum implements IBaseEnum<Integer> {
EXCEPTION("异常"),
LOGIN("登录"),
USER("用户"),
DEPT("部门"),
ROLE("角色"),
MENU("菜单"),
DICT("字典"),
SETTING("系统配置"),
OTHER("其他");
LOGIN(1, "登录"),
USER(2, "用户管理"),
ROLE(3, "角色管理"),
DEPT(4, "部门管理"),
MENU(5, "菜单管理"),
DICT(6, "字典管理"),
CONFIG(7, "系统配置"),
FILE(8, "文件管理"),
NOTICE(9, "通知公告"),
LOG(10, "日志管理"),
CODEGEN(11, "代码生成"),
OTHER(99, "其他");
@EnumValue
private final Integer value;
@JsonValue
private final String moduleName;
private final String label;
LogModuleEnum(String moduleName) {
this.moduleName = moduleName;
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;
}
}