dao_out

package
v0.0.0-...-91481ff Latest Latest
Warning

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

Go to latest
Published: Nov 18, 2023 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 ChildExampleDao

type ChildExampleDao struct {
	Id string `json:"id,omitempty"`

	CreatedAt time.Time
	UpdatedAt time.Time
	DeletedAt gorm.DeletedAt
}

func (*ChildExampleDao) FromProto

func (d *ChildExampleDao) FromProto(v *ChildExample) *ChildExampleDao

func (*ChildExampleDao) ToProto

func (d *ChildExampleDao) ToProto() *ChildExample

type ExampleDao

type ExampleDao struct {
	Id                  string             `json:"id,omitempty" gorm:"autoIncrement"`
	GormTestPrimary     string             `json:"gorm_test_primary,omitempty" gorm:"primaryKey"`
	GormTestInt         int32              `json:"gorm_test_int,omitempty" gorm:"not null"`
	GormTestBigInt      int64              `json:"gorm_test_big_int,omitempty"`
	GormTestString      string             `json:"gorm_test_string,omitempty"`
	GormTestFloat       float32            `json:"gorm_test_float,omitempty"`
	GormTestDouble      float64            `json:"gorm_test_double,omitempty"`
	GormTestIndex       float64            `json:"gorm_test_index,omitempty" gorm:"index"`
	GormTestUniqueIndex float64            `json:"gorm_test_unique_index,omitempty" gorm:"uniqueIndex"`
	Child               *ChildExampleDao   `json:"child,omitempty"`
	ListChilds          []*ChildExampleDao `json:"list_childs,omitempty"`

	CreatedAt time.Time
	UpdatedAt time.Time
	DeletedAt gorm.DeletedAt
}

func (*ExampleDao) FromProto

func (d *ExampleDao) FromProto(v *Example) *ExampleDao

func (*ExampleDao) ToProto

func (d *ExampleDao) ToProto() *Example

Jump to

Keyboard shortcuts

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