import type { StandardDataSource } from '../main/StandardDataSource'; import type { IStandardOirginConfig } from './pontConfig'; export interface IOriginReader { /** 获取远程数据 */ fetchMethod(originUrl: string): Promise; /** 翻译数据中的非法字符,如:中文命名转英文 */ translate(jsonString: string): Promise; /** 将远程数据转化成 pont 标准数据模型 */ transform2StandardDataSource(json: T, config: IStandardOirginConfig): Promise; /** 二次加工标准数据模型 */ transformStandardDataSource(dataSource: StandardDataSource): Promise; } export interface ICodeGenerator {} export interface IFileStructures {}