domain

package
v1.7.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 22, 2024 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

View Source
const (
	MappingOneToOne   = iota + 1 // 一对一关系
	MappingOneToMany             // 一对多关系
	MappingManyToMany            // 多对多关系
)

Variables

This section is empty.

Functions

This section is empty.

Types

type ModelDiagram

type ModelDiagram struct {
	ID              int64
	RelationTypeUid string
	TargetModelUid  string
	SourceModelUid  string
}

ModelDiagram 拓补图模型关联节点信息

type ModelRelation

type ModelRelation struct {
	ID              int64
	SourceModelUID  string
	TargetModelUID  string
	RelationTypeUID string // 关联类型唯一索引
	RelationName    string // 拼接字符
	Mapping         string // 关联关系
	Ctime           time.Time
	Utime           time.Time
}

type RelationType

type RelationType struct {
	ID             int64
	Name           string
	UID            string
	SourceDescribe string
	TargetDescribe string
	Ctime          time.Time
	Utime          time.Time
}

type ResourceAggregatedAssets

type ResourceAggregatedAssets struct {
	RelationName string
	ModelUid     string
	Total        int
	ResourceIds  []int64
}

type ResourceDiagram

type ResourceDiagram struct {
	SRC []ResourceRelation
	DST []ResourceRelation
}

type ResourceRelation

type ResourceRelation struct {
	ID               int64
	SourceModelUID   string
	TargetModelUID   string
	SourceResourceID int64
	TargetResourceID int64
	RelationTypeUID  string // 关联类型唯一索引
	RelationName     string // 拼接字符
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL