/** * @description getColumnsByTableName */ import { getUrl } from 'src/utils/getUrl'; import Request from 'src/utils/requests'; import * as defs from '../../baseClass'; export class Params { /** tenantId */ tenantId: number; /** dsId */ dsId: string; /** 表名称 */ tableName: string; } export const init = new defs.PhysicalTableBO(); export async function request(params = {}) { return Request({ url: '/api/physicaltable/project/physicalTable', params, method: 'get', }); } export function createFetchAction(types, stateKey) { return (params = {}, meta?: any) => { return { types, meta, stateKey, method: 'GET', url: getUrl('/api/physicaltable/project/physicalTable', params, 'GET'), params, init, }; }; }