domain

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Mar 11, 2024 License: MIT Imports: 1 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Attribute

type Attribute struct {
	meta.AttributeMeta
	Class *Class
}

func NewAttribute

func NewAttribute(a *meta.AttributeMeta, c *Class) *Attribute

type Class

type Class struct {
	Uuid          string
	InnerId       uint64
	StereoType    string
	Name          string
	Description   string
	Root          bool
	SoftDelete    bool
	Attributes    []*Attribute
	Methods       []*Method
	Parents       []*Class
	Children      []*Class
	AppId         uint64
	OnCreated     string
	OnUpdated     string
	OnDeleted     string
	EnableVersion bool
	PackageUuid   string
}

func NewClass

func NewClass(c *meta.ClassMeta) *Class

func (*Class) AllParents

func (c *Class) AllParents() []*Class

func (*Class) HasChildren

func (c *Class) HasChildren() bool

type Enum

type Enum struct {
	Uuid   string
	Name   string
	Values []string
	AppId  uint64
}

func NewEnum

func NewEnum(c *meta.ClassMeta) *Enum

type Method

type Method struct {
	meta.MethodMeta
	Class *Class
}

func NewMethod

func NewMethod(m *meta.MethodMeta, c *Class) *Method

type Model

type Model struct {
	Enums     []*Enum
	Classes   []*Class
	Relations []*Relation
}

func New

func New(m *meta.Model) *Model

func (*Model) GetClassByUuid

func (m *Model) GetClassByUuid(uuid string) *Class

type Relation

type Relation struct {
	Uuid                   string
	InnerId                uint64
	RelationType           string
	Source                 *Class
	Target                 *Class
	RoleOfTarget           string
	RoleOfSource           string
	DescriptionOnSource    string
	DescriptionOnTarget    string
	SourceMutiplicity      string
	TargetMultiplicity     string
	EnableAssociaitonClass bool
	AssociationClass       meta.AssociationClass
	AppId                  uint64
}

func NewRelation

func NewRelation(r *meta.RelationMeta, s *Class, t *Class) *Relation

Jump to

Keyboard shortcuts

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