feat: 本次提交更新内容如下

暂时构建完成,
This commit is contained in:
2025-07-10 12:09:27 +08:00
parent 8baf4169ce
commit 306ed4c413
2 changed files with 15 additions and 15 deletions

View File

@@ -117,9 +117,9 @@ export const deleteDistributionRule = async (id: string): Promise<ApiResponse<an
/**
* 启动/暂停流量分发规则
* @param id 规则ID
* @param status 状态1-启动,2-暂停
* @param status 状态1-启动,0-暂停
* @returns 操作结果
*/
export const toggleDistributionRuleStatus = async (id: string, status: WorkbenchTaskStatus.RUNNING | WorkbenchTaskStatus.PAUSED): Promise<ApiResponse<any>> => {
return put<ApiResponse<any>>(`/v1/workbench/status/${id}`, { status });
export const toggleDistributionRuleStatus = async (id: string, status: 0 | 1): Promise<ApiResponse<any>> => {
return post<ApiResponse<any>>('/v1/workbench/update-status', { id, status });
};