fix: updateTeam 类型定义补充 markup_percentage,修复线上构建失败
All checks were successful
Build and Deploy / build-and-deploy (push) Successful in 2m40s
All checks were successful
Build and Deploy / build-and-deploy (push) Successful in 2m40s
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
parent
62356c7e3f
commit
b25a839d44
@ -103,6 +103,8 @@ export const authApi = {
|
|||||||
|
|
||||||
changePassword: (oldPassword: string, newPassword: string) =>
|
changePassword: (oldPassword: string, newPassword: string) =>
|
||||||
api.post('/auth/change-password', { old_password: oldPassword, new_password: newPassword }),
|
api.post('/auth/change-password', { old_password: oldPassword, new_password: newPassword }),
|
||||||
|
|
||||||
|
logout: () => api.post('/auth/logout'),
|
||||||
};
|
};
|
||||||
|
|
||||||
// Media upload API
|
// Media upload API
|
||||||
@ -168,7 +170,7 @@ export const adminApi = {
|
|||||||
getTeamDetail: (teamId: number) =>
|
getTeamDetail: (teamId: number) =>
|
||||||
api.get<TeamDetail>(`/admin/teams/${teamId}`),
|
api.get<TeamDetail>(`/admin/teams/${teamId}`),
|
||||||
|
|
||||||
updateTeam: (teamId: number, data: { name?: string; monthly_seconds_limit?: number; monthly_spending_limit?: number; daily_member_limit_default?: number; is_active?: boolean; expected_regions?: string; anomaly_config?: Partial<TeamAnomalyConfig> }) =>
|
updateTeam: (teamId: number, data: { name?: string; monthly_seconds_limit?: number; monthly_spending_limit?: number; daily_member_limit_default?: number; markup_percentage?: number; is_active?: boolean; expected_regions?: string; anomaly_config?: Partial<TeamAnomalyConfig> }) =>
|
||||||
api.put(`/admin/teams/${teamId}`, data),
|
api.put(`/admin/teams/${teamId}`, data),
|
||||||
|
|
||||||
topUpTeam: (teamId: number, amount: number) =>
|
topUpTeam: (teamId: number, amount: number) =>
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user