implement user authentication and database initialization, add models for user, comment, label, and OIDC configuration

This commit is contained in:
2025-07-22 06:18:23 +08:00
parent 99a3f80e12
commit d1a040617f
23 changed files with 602 additions and 19 deletions

View File

@ -1,6 +1,10 @@
package constant
const (
ModeDev = "dev"
ModeProd = "prod"
ModeDev = "dev"
ModeProd = "prod"
RoleUser = "user"
RoleAdmin = "admin"
EnvVarPasswordSalt = "PASSWORD_SALT" // 环境变量:密码盐
)