feat: align with upstream 1.5.9.9
This commit is contained in:
@@ -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) : '未知';
|
||||
}
|
||||
Reference in New Issue
Block a user