model

package
v2.0.10 Latest Latest
Warning

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

Go to latest
Published: Mar 4, 2025 License: MIT 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 added in v2.0.6

type Contact struct {
	Phone string `json:"phone"`
	Email string `json:"email"`
}

type ContactEdit added in v2.0.6

type ContactEdit struct {
	Phone *string `json:"phone,omitempty"`
	Email *string `json:"email,omitempty"`
}

type Select

type Select struct {
	Id        int
	CreatedAt time.Time
	UpdatedAt time.Time
	Name      string
	Flag      bool
	Contact   Contact
}

func (*Select) DefaultSortColumns

func (m *Select) DefaultSortColumns() []string

func (*Select) ListColumnMap

func (m *Select) ListColumnMap() map[string]any

func (*Select) ListInterceptor added in v2.0.9

func (m *Select) ListInterceptor(qb squirrel.SelectBuilder, params mobone.ListParams) squirrel.SelectBuilder

func (*Select) PKColumnMap

func (m *Select) PKColumnMap() map[string]any

type Upsert

type Upsert struct {
	PKId int

	UpdatedAt *time.Time
	Name      *string
	Flag      *bool
	Contact   *ContactEdit
}

func (*Upsert) CreateColumnMap

func (m *Upsert) CreateColumnMap() map[string]any

func (*Upsert) PKColumnMap

func (m *Upsert) PKColumnMap() map[string]any

func (*Upsert) ReturningColumnMap

func (m *Upsert) ReturningColumnMap() map[string]any

func (*Upsert) UpdateColumnMap

func (m *Upsert) UpdateColumnMap() map[string]any

Jump to

Keyboard shortcuts

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