controllers

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: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ICountry

type ICountry interface {
	// Query data
	Query(ctx context.Context, params schema.CountryQueryParam, opts ...schema.CountryQueryOptions) (*schema.CountryQueryResult, error)
	// Get specified data
	Get(ctx context.Context, Code string, opts ...schema.CountryQueryOptions) (*schema.Country, error)
	// Create data
	Create(ctx context.Context, item schema.Country) (*schema.Country, error)
	// Update data
	Update(ctx context.Context, Code string, item schema.Country) (*schema.Country, error)
	// Delete data
	Delete(ctx context.Context, Code string) error
	// Update status
	UpdateStatus(ctx context.Context, Code string, status int) error
}

ICountry - Country business logic interface

type ILanguage

type ILanguage interface {
	// Query data
	Query(ctx context.Context, params schema.LanguageQueryParam, opts ...schema.LanguageQueryOptions) (*schema.LanguageQueryResult, error)
	// Get specified data
	Get(ctx context.Context, Code string, opts ...schema.LanguageQueryOptions) (*schema.Language, error)
	// Create data
	Create(ctx context.Context, item schema.Language) (*schema.Language, error)
	// Update data
	Update(ctx context.Context, Code string, item schema.Language) (*schema.Language, error)
	// Delete data
	Delete(ctx context.Context, Code string) error
	// Update status
	UpdateStatus(ctx context.Context, Code string, status int) error
}

ILanguage - Language business logic interface

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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