/** * @description 表结构 */ 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 = new defs.TableBO(); export async function request(params = {}) { return Request({ url: '/api/dip/meta/table/field', params, method: 'get', }); } export function createFetchAction(types, stateKey) { return (params = {}, meta?: any) => { return { types, meta, stateKey, method: 'GET', url: getUrl('/api/dip/meta/table/field', params, 'GET'), params, init, }; }; }