feat(admin): 系统渠道 - 增加复制渠道

This commit is contained in:
esncy
2026-09-14 09:31:03 +08:00
parent 4b0e9d8965
commit 73439aac23
9 changed files with 254 additions and 3 deletions

View File

@@ -479,6 +479,10 @@ export function createAdminChannel(input: Partial<ModelChannel> & { useGlobalCon
return http.post<{ channel: ModelChannel }>("/admin/channels", input);
}
export function duplicateAdminChannel(id: string) {
return http.post<{ channel: ModelChannel }>(`/admin/channels/${encodeURIComponent(id)}/duplicate`);
}
export function updateAdminChannel(id: string, input: Partial<ModelChannel> & { useGlobalConcurrency?: boolean }) {
return http.patch<{ channel: ModelChannel }>(`/admin/channels/${encodeURIComponent(id)}`, input);
}