feat: add tenant student operations

This commit is contained in:
Codex
2026-06-29 01:16:25 +08:00
parent 61240c5833
commit 726d090a8e
12 changed files with 908 additions and 24 deletions

View File

@@ -14,7 +14,7 @@ const ROLE_PERMISSION_DEFAULTS: Record<string, string[]> = {
tenant_owner: ['*'],
tenant_admin: ['*'],
tenant_operator: ['content:*', 'marketing:*', 'codes:read', 'coupons:read', 'referral:read', 'crm:read'],
teacher: ['content:*', 'classes:read', 'students:read'],
teacher: ['content:*', 'classes:read', 'students:read', 'students:notes:*', 'students:followups:*'],
sales: ['codes:*', 'coupons:*', 'referral:*'],
agent: ['codes:read', 'coupons:read', 'referral:self'],
student: [],
@@ -106,6 +106,12 @@ export function tenantPermissionCatalog() {
{ key: 'classes:write', label: '班级管理' },
{ key: 'students:read', label: '学生查看' },
{ key: 'students:write', label: '学生管理' },
{ key: 'students:bulk:write', label: '学生批量导入/分班' },
{ key: 'students:status:write', label: '学生禁用/恢复' },
{ key: 'students:notes:read', label: '学生备注查看' },
{ key: 'students:notes:write', label: '学生备注管理' },
{ key: 'students:followups:read', label: '学生跟进任务查看' },
{ key: 'students:followups:write', label: '学生跟进任务管理' },
{ key: 'members:read', label: '成员查看' },
{ key: 'members:write', label: '成员管理' },
{ key: 'roles:read', label: '角色模板查看' },