forked from wangziqi/gongxue-base
feat: add student crm push
This commit is contained in:
@@ -124,6 +124,20 @@ export interface TenantStudentFollowupItem {
|
||||
updatedAt?: string;
|
||||
}
|
||||
|
||||
export interface TenantStudentCrmPushInput {
|
||||
studentUserIds: string[];
|
||||
source?: string;
|
||||
title: string;
|
||||
message?: string | null;
|
||||
followupType?: string;
|
||||
priority?: string;
|
||||
assignedToUserId?: string | null;
|
||||
classId?: string | null;
|
||||
dueAt?: string | null;
|
||||
metadata?: Record<string, unknown>;
|
||||
idempotencyKey?: string;
|
||||
}
|
||||
|
||||
export interface ImportJobItem {
|
||||
id: string;
|
||||
importType?: string;
|
||||
@@ -985,6 +999,13 @@ export async function updateTenantStudentStatus(input: { userId: string; status:
|
||||
});
|
||||
}
|
||||
|
||||
export async function pushTenantStudentsToCrm(input: TenantStudentCrmPushInput) {
|
||||
return apiRequest<BulkOperationResult & { requestId?: string }>('/api/tenant-admin/students/crm-push', {
|
||||
method: 'POST',
|
||||
body: input,
|
||||
});
|
||||
}
|
||||
|
||||
export async function bulkAssignTenantClassMembers(input: {
|
||||
classId: string;
|
||||
assignments: Array<{
|
||||
|
||||
Reference in New Issue
Block a user