@lcap/asl
Version:
NetEase Application Specific Language
38 lines (33 loc) • 1.02 kB
text/typescript
import { immutable, circular } from '../decorators';
import { LEVEL_ENUM, Vertex, Service, Entity, Structure, Enum } from '..';
/**
* 数据分类
*/
export class DataNode extends Vertex {
/**
* 概念类型
*/
()
public readonly level: LEVEL_ENUM = LEVEL_ENUM.dataNode;
()
public readonly type: 'entities' | 'structures' = undefined;
()
public readonly entities: Array<Entity> = [];
public readonly structures: Array<Structure> = [];
public readonly enums: Array<Enum> = [];
public readonly erdiagrams: Array<any> = [];
public entityExpanded: boolean = true;
public structureExpanded: boolean = true;
public enumExpanded: boolean = true;
()
()
public readonly service: Service = undefined;
/**
* @param source 需要合并的部分参数
*/
constructor(source?: Partial<DataNode>) {
super();
source && this.assign(source);
}
}
export default DataNode;