goldenChat base source add

This commit is contained in:
aidev
2026-05-23 15:11:48 +09:00
commit a4ea7762b5
2081 changed files with 1155760 additions and 0 deletions
@@ -0,0 +1,16 @@
package com.goldenchart.auth;
public enum UserRole {
ADMIN,
USER,
GUEST;
public static UserRole fromString(String value) {
if (value == null || value.isBlank()) return USER;
try {
return UserRole.valueOf(value.trim().toUpperCase());
} catch (IllegalArgumentException e) {
return USER;
}
}
}