refactor(types): align core types with backend contract

This commit is contained in:
zetaloop
2026-02-28 07:34:14 +08:00
parent 80daf60ebe
commit e9b0dced0e
3 changed files with 41 additions and 39 deletions
+2 -2
View File
@@ -35,12 +35,12 @@ import { useState } from "react"
import { canAccessDashboard } from "@/components/role-guard"
const roleLabels: Record<UserRole, string> = {
const roleLabels = {
consumer: "客户",
player: "打手",
owner: "店主",
admin: "管理员",
}
} satisfies Record<UserRole, string>
export function Header() {
const [mobileOpen, setMobileOpen] = useState(false)