phone

package module
v0.0.0-...-f25795c Latest Latest
Warning

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

Go to latest
Published: Sep 4, 2020 License: MIT Imports: 5 Imported by: 2

README

phone

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

Documentation

Index

Constants

View Source
const ResourceID = "Phone"

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 Phone

type Phone struct {
	aorm.Model
	PhoneAttrs
}

type PhoneAttrs

type PhoneAttrs struct {
	CountryCode string `gorm:"size:2"`
	Number      string `gorm:"size:255"`
	Note        string `gorm:"size:255"`
}

func (*PhoneAttrs) String

func (p *PhoneAttrs) String() (s string)

type Plugin

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

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