Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Definition ¶
type Definition struct { TableName string `yaml:"table_name,omitempty"` WithoutCreateTime bool `yaml:"without_create_time,omitempty"` WithoutUpdateTime bool `yaml:"without_update_time,omitempty"` SoftDelete bool `yaml:"soft_delete,omitempty"` Fields []DefinitionField `yaml:"fields,omitempty"` }
type DefinitionField ¶
type Domain ¶
type DomainContext ¶
type DomainContext struct {
// contains filtered or unexported fields
}
func (DomainContext) Register ¶
func (d DomainContext) Register()
type Model ¶
type Model struct { Name string `yaml:"name,omitempty"` Relations []Relation `yaml:"relations,omitempty"` Definition Definition `yaml:"definition,omitempty"` }
type Relation ¶
type Relation struct { Model string `yaml:"model,omitempty"` Rel string `yaml:"rel,omitempty"` ForeignKey string `yaml:"foreign_key,omitempty"` OwnerKey string `yaml:"owner_key,omitempty"` LocalKey string `yaml:"local_key,omitempty"` PivotTable string `yaml:"table,omitempty"` Package string `yaml:"package,omitempty"` Method string `yaml:"method,omitempty"` }
func (Relation) ImportPackages ¶
Click to show internal directories.
Click to hide internal directories.