feat: align with upstream 1.5.9.9

This commit is contained in:
2026-09-12 18:21:11 +08:00
commit 34f0679117
805 changed files with 376275 additions and 0 deletions
+15
View File
@@ -0,0 +1,15 @@
/**
* 获取用户状态的中文显示文本
* @param status 用户状态枚举值
* @returns 中文显示文本
*/
export function getStatusText(status: string | null | undefined): string {
const statusMap: Record<string, string> = {
active: '正常',
pending: '待审核',
rejected: '已拒绝',
withdrawn: '退学',
graduate: '毕业生',
};
return status ? (statusMap[status] || status) : '未知';
}