fix: 修复同步数据库接口、任务状态修改接口调用错误
This commit is contained in:
@@ -112,9 +112,13 @@ export function updateCodegenTable(data: InfraCodegenApi.CodegenUpdateReqVO) {
|
||||
|
||||
/** 基于数据库的表结构,同步数据库的表和字段定义 */
|
||||
export function syncCodegenFromDB(tableId: number) {
|
||||
return requestClient.put('/infra/codegen/sync-from-db', {
|
||||
params: { tableId },
|
||||
});
|
||||
return requestClient.put(
|
||||
'/infra/codegen/sync-from-db',
|
||||
{},
|
||||
{
|
||||
params: { tableId },
|
||||
},
|
||||
);
|
||||
}
|
||||
|
||||
/** 预览生成代码 */
|
||||
|
||||
@@ -57,7 +57,7 @@ export function updateJobStatus(id: number, status: number) {
|
||||
id,
|
||||
status,
|
||||
};
|
||||
return requestClient.put('/infra/job/update-status', { params });
|
||||
return requestClient.put('/infra/job/update-status', {}, { params });
|
||||
}
|
||||
|
||||
/** 定时任务立即执行一次 */
|
||||
|
||||
Reference in New Issue
Block a user