address

package module
v0.0.0-...-5a7995f Latest Latest
Warning

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

Go to latest
Published: Sep 4, 2020 License: MIT Imports: 11 Imported by: 1

README

address

Address resources for https://github.com/ecletus framework

Documentation

Index

Constants

View Source
const ResourceID = "Address"

Variables

This section is empty.

Functions

func AddSubResource

func AddSubResource(setup func(res *admin.Resource), res *admin.Resource, value interface{}, fieldName ...string) error

func PrepareResource

func PrepareResource(res *admin.Resource)

Types

type Address

type Address struct {
	aorm.AuditedModel
	Phones       []Phone         `aorm:"fkc:{field:AddressID;cascade}"`
	ContactName  string          `aorm:"size:255"`
	RegionID     string          `aorm:"size:10"`
	Region       *geocode.Region `aorm:"save_associations:false"`
	AddressLine1 string          `aorm:"size:255"`
	AddressLine2 string          `aorm:"size:255"`
	AddressLine3 string          `aorm:"size:255"`
	AddressLine4 string          `aorm:"size:255"`
	Zip          string          `aorm:"size:32"`
}

func (*Address) Clean

func (e *Address) Clean(db *aorm.DB)

func (Address) GetAormInlinePreloadFields

func (Address) GetAormInlinePreloadFields() []string

func (*Address) String

func (a *Address) String() string

type AddressGetter

type AddressGetter interface {
	GetQorAddress() *Address
}

type Phone

type Phone struct {
	phone.Phone
	AddressID bid.BID
}

func (*Phone) Clean

func (p *Phone) Clean(db *aorm.DB)

type Plugin

type Plugin struct {
	plug.EventDispatcher
	db.DBNames
	admin_plugin.AdminNames
}

func (Plugin) After

func (Plugin) After() []interface{}

func (*Plugin) OnRegister

func (p *Plugin) OnRegister()

Jump to

Keyboard shortcuts

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