implement

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Dec 3, 2019 License: GPL-3.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Country

type Country struct {
	CountryModel model.ICountry
}

Country - Sample program

func NewCountry

func NewCountry(mCountry model.ICountry) *Country

NewCountry - Create a Country

func (*Country) Create

func (a *Country) Create(ctx context.Context, item schema.Country) (*schema.Country, error)

Create - Create Country data

func (*Country) Delete

func (a *Country) Delete(ctx context.Context, code string) error

Delete - Delete data

func (*Country) Get

func (a *Country) Get(ctx context.Context, code string, opts ...schema.CountryQueryOptions) (*schema.Country, error)

Get - Get specified data

func (*Country) Query

Query - Query data

func (*Country) Update

func (a *Country) Update(ctx context.Context, code string, item schema.Country) (*schema.Country, error)

Update - Update Country data

func (*Country) UpdateStatus

func (a *Country) UpdateStatus(ctx context.Context, code string, status int) error

UpdateStatus - Update status

type Language

type Language struct {
	LanguageModel model.ILanguage
}

Language - Sample program

func NewLanguage

func NewLanguage(mLanguage model.ILanguage) *Language

NewLanguage - Create a Language

func (*Language) Create

func (a *Language) Create(ctx context.Context, item schema.Language) (*schema.Language, error)

Create - Create Language data

func (*Language) Delete

func (a *Language) Delete(ctx context.Context, code string) error

Delete - Delete data

func (*Language) Get

Get - Get specified data

func (*Language) Query

Query - Query data

func (*Language) Update

func (a *Language) Update(ctx context.Context, code string, item schema.Language) (*schema.Language, error)

Update - Update Language data

func (*Language) UpdateStatus

func (a *Language) UpdateStatus(ctx context.Context, code string, status int) error

UpdateStatus - Update status

Jump to

Keyboard shortcuts

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