This commit is contained in:
2026-07-06 15:39:33 +08:00
parent fa4f48a62f
commit 9b213b1551
4 changed files with 139 additions and 13 deletions
+18
View File
@@ -782,3 +782,21 @@ export async function getJoinTeamInfo(code: string): Promise<any> {
export async function submitJoinRequest(code: string): Promise<void> {
await api.post('/team/join', { invitation_code: code });
}
export async function getTeamCreditRecords(params: {
page?: number;
pageSize?: number;
userId?: string;
recordType?: string;
startDate?: string;
endDate?: string;
}): Promise<any> {
const p = new URLSearchParams();
if (params.page) p.set('page', String(params.page));
if (params.pageSize) p.set('page_size', String(params.pageSize));
if (params.userId) p.set('user_id', params.userId);
if (params.recordType) p.set('record_type', params.recordType);
if (params.startDate) p.set('start_date', params.startDate);
if (params.endDate) p.set('end_date', params.endDate);
return api.get(`/team/credit-records?${p.toString()}`);
}