/** * @description 表结构-获取表的Select语句 */ import { getUrl } from 'src/utils/getUrl'; import Request from 'src/utils/requests'; import * as defs from '../../baseClass'; export class Params { /** 表Id */ modelId: string; /** 表类型 */ modelType: number; } export const init = ''; export async function request(params = {}) { return Request({ url: '/api/dip/meta/table/select', params, method: 'get', }); } export function createFetchAction(types, stateKey) { return (params = {}, meta?: any) => { return { types, meta, stateKey, method: 'GET', url: getUrl('/api/dip/meta/table/select', params, 'GET'), params, init, }; }; }