dbModel

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: May 1, 2024 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Contact

type Contact struct {
	ID        uint   `gorm:"primarykey"`
	Name      string `gorm:"not null"`
	Nickname  string `gorm:"not null"`
	Phone     string `gorm:"not null"`
	CreatedAt time.Time
	UpdatedAt time.Time
}

func (Contact) InitialEntries

func (model Contact) InitialEntries() []interface{}

func (Contact) TableName

func (Contact) TableName() string

func (Contact) ToEntity

func (model Contact) ToEntity() (entity.Contact, error)

func (Contact) ToModel

func (Contact) ToModel(entity entity.Contact) (Contact, error)

Jump to

Keyboard shortcuts

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