entity

package
v1.0.6 Latest Latest
Warning

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

Go to latest
Published: Aug 5, 2024 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type GormModelField

type GormModelField struct {
	Name        string
	Type        string
	Tag         string
	OpenApiType string

	MapFunc    *string
	MapApiFunc *string
	// contains filtered or unexported fields
}

func (*GormModelField) GetType

func (f *GormModelField) GetType() types.Type

func (*GormModelField) WithType

func (f *GormModelField) WithType(t types.Type, moduleName string)

type GormModelMetadata

type GormModelMetadata struct {
	Name     string
	Fields   []*GormModelField
	Embedded []*GormModelMetadata
	IsApi    bool
}

func (*GormModelMetadata) AllFields

func (m *GormModelMetadata) AllFields() []*GormModelField

func (*GormModelMetadata) GetField added in v1.0.5

func (m *GormModelMetadata) GetField(name string) *GormModelField

Jump to

Keyboard shortcuts

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