feat:【antd】【ele】统一 codegen、file 的 API 参数

This commit is contained in:
YunaiV
2025-09-22 09:59:22 +08:00
parent c9f123be2a
commit 6ca2b0f1ca
4 changed files with 28 additions and 13 deletions

View File

@@ -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 },
},
);
}
/** 预览生成代码 */