1、后台/teams需要可以设置管理人,后台只给这个管理人分配积分,然后前台管理员自己分配积分

2、前台判断用户是管理人,左下角显示团队管理
3、团队管理可以看到团队的人员、分配人员积分、人员的积分情况的功能
4、团队管理还可以邀请用户,比如生成个链接,未注册需要注册绑定团队,已注册用户访问弹窗是否加入这个团队,然后都需要管理同意才可以加入团队
This commit is contained in:
2026-07-06 13:38:27 +08:00
parent 30db9fb425
commit 16b3d223c1
25 changed files with 1671 additions and 29 deletions
+55
View File
@@ -22,6 +22,61 @@ export interface User {
allowedMenus?: string[] | null;
mustSetPassword?: boolean;
resourceCapacity?: ResourceCapacity;
teamId?: string | null;
teamName?: string | null;
isTeamManager?: boolean;
}
// ── Team Management Types ─────────────────────────────
export interface TeamMember {
id: string;
username: string;
phone?: string | null;
credits: number;
isActive: boolean;
joinedAt: string;
}
export interface TeamInvitation {
id: string;
code: string;
status: string;
maxUses?: number | null;
useCount: number;
expiresAt?: string | null;
inviteLink: string;
createdAt?: string | null;
}
export interface TeamJoinRequest {
id: string;
teamId: string;
teamName: string;
userId: string;
username: string;
phone?: string | null;
status: string;
note?: string | null;
createdAt?: string | null;
}
export interface ManagedTeam {
id: string;
name: string;
code?: string | null;
description?: string | null;
status: string;
memberCount: number;
managerId?: string | null;
managerName?: string | null;
}
export interface JoinTeamInfo {
teamName: string;
teamId: string;
valid: boolean;
alreadyInTeam: boolean;
}
export interface CreditRecord {