examples

package
v0.0.0-...-73c3907 Latest Latest
Warning

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

Go to latest
Published: May 6, 2023 License: MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Preset1

func Preset1(db *gorm.DB) (r *presets.Builder)

Types

type Company

type Company struct {
	ID   int
	Name string
}

type CreditCard

type CreditCard struct {
	ID              int
	CustomerID      int
	Number          string
	ExpireYearMonth string
	Name            string
	Type            string
	Phone           string
	Email           string
}

type Customer

type Customer struct {
	ID              int
	Name            string
	Email           string
	Description     string
	Thumb1          *Thumb `gorm:"-"`
	CompanyID       int
	CreatedAt       time.Time
	UpdatedAt       time.Time
	ApprovedAt      *time.Time
	TermAgreedAt    *time.Time
	ApprovalComment string
	LanguageCode    string
	Events          []*Event `gorm:"-"`
}

func (*Customer) PageTitle

func (c *Customer) PageTitle() string

type Event

type Event struct {
	ID          int
	SourceType  string // Payment, Customer
	SourceID    int
	CreatedAt   time.Time
	Type        string
	Description string
}

type Language

type Language struct {
	Code string `gorm:"unique;not null"`
	Name string
}

func (*Language) PrimaryColumnValuesBySlug

func (l *Language) PrimaryColumnValuesBySlug(slug string) map[string]string

func (*Language) PrimarySlug

func (l *Language) PrimarySlug() string

type Note

type Note struct {
	ID         int
	SourceType string
	SourceID   int
	Content    string
	CreatedAt  time.Time
	UpdatedAt  time.Time
}

type Payment

type Payment struct {
	ID                   int
	CustomerID           int
	CurrencyCode         string
	Amount               int
	PaymentMethodID      int
	StatementDescription string
	Description          string
	AuthorizeOnly        bool
	CreatedAt            time.Time
}

type Product

type Product struct {
	ID        int
	Name      string
	OwnerName string
}

type Thumb

type Thumb struct {
	Name string
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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