mirror of
https://github.com/continew-org/continew-admin.git
synced 2025-09-25 06:57:15 +08:00
refactor: 重构查询列映射信息列表接口,支持对已保存的列映射配置同步最新表结构
This commit is contained in:
@@ -42,12 +42,11 @@ export interface ColumnMappingRecord {
|
||||
showInQuery: boolean;
|
||||
formType: string;
|
||||
queryType: string;
|
||||
createTime: string;
|
||||
updateTime: string;
|
||||
createTime?: string;
|
||||
}
|
||||
|
||||
export function listColumnMapping(tableName: string) {
|
||||
return axios.get<ColumnMappingRecord[]>(`${BASE_URL}/column/${tableName}`);
|
||||
export function listColumnMapping(tableName: string, requireSync: boolean) {
|
||||
return axios.get<ColumnMappingRecord[]>(`${BASE_URL}/column/${tableName}?requireSync=${requireSync}`);
|
||||
}
|
||||
|
||||
export interface GenConfigRecord {
|
||||
@@ -59,8 +58,8 @@ export interface GenConfigRecord {
|
||||
author: string;
|
||||
tablePrefix: string;
|
||||
isOverride: boolean;
|
||||
createTime: string;
|
||||
updateTime: string;
|
||||
createTime?: string;
|
||||
updateTime?: string;
|
||||
}
|
||||
|
||||
export function getGenConfig(tableName: string) {
|
||||
|
Reference in New Issue
Block a user