功能:完善渠道模型批量操作

支持模型管理批量删除,并在拉取模型时提供全选、取消全选和选择数量提示。

同时保持首屏品牌中立,补充后端原子删除与管理员界面回归测试。
This commit is contained in:
Ray
2026-09-07 10:18:06 +08:00
parent df94c3bdf1
commit 2ce443731d
9 changed files with 361 additions and 39 deletions

View File

@@ -295,6 +295,10 @@ export function deleteAdminChannelModel(channelId: string, id: string) {
return request<{ ok: boolean }>(api.delete(`/admin/channels/${encodeURIComponent(channelId)}/models/${encodeURIComponent(id)}`));
}
export function deleteAdminChannelModels(channelId: string, modelIds: string[]) {
return request<{ deleted: number }>(api.post(`/admin/channels/${encodeURIComponent(channelId)}/models/batch-delete`, { modelIds }));
}
export type AdminFinanceListParams = { keyword?: string; status?: string; validity?: string; page?: number; limit?: number };
export function listAdminRedeemBatches(params: AdminFinanceListParams = {}) {