统一角色体系为admin/agent/user,修复代理查询角色错误,添加语言切换和明暗切换

This commit is contained in:
Admin
2026-04-29 17:33:54 +08:00
parent 5c63882e71
commit 2a8f32cbb9
21 changed files with 78 additions and 196 deletions
+3 -3
View File
@@ -308,7 +308,7 @@ func initData() {
Username: "dev",
Email: &devEmail,
Password: string(hashedPassword),
Role: "developer",
Role: "admin",
Status: "active",
}
DB.Create(&devUser)
@@ -324,7 +324,7 @@ func initData() {
Username: "agent",
Email: &agentEmail,
Password: string(hashedPassword),
Role: "developer",
Role: "agent",
Status: "active",
}
DB.Create(&agentUser)
@@ -678,7 +678,7 @@ func initTicketData() {
Username: "dev",
Email: &devEmail,
Password: string(hashedPassword),
Role: "developer",
Role: "admin",
Status: "active",
}
DB.Create(&devUser)