Documentation ¶
Index ¶
- type Country
- func (a *Country) Create(ctx context.Context, item schema.Country) (*schema.Country, error)
- func (a *Country) Delete(ctx context.Context, code string) error
- func (a *Country) Get(ctx context.Context, code string, opts ...schema.CountryQueryOptions) (*schema.Country, error)
- func (a *Country) Query(ctx context.Context, params schema.CountryQueryParam, ...) (*schema.CountryQueryResult, error)
- func (a *Country) Update(ctx context.Context, code string, item schema.Country) (*schema.Country, error)
- func (a *Country) UpdateStatus(ctx context.Context, code string, status int) error
- type Language
- func (a *Language) Create(ctx context.Context, item schema.Language) (*schema.Language, error)
- func (a *Language) Delete(ctx context.Context, code string) error
- func (a *Language) Get(ctx context.Context, code string, opts ...schema.LanguageQueryOptions) (*schema.Language, error)
- func (a *Language) Query(ctx context.Context, params schema.LanguageQueryParam, ...) (*schema.LanguageQueryResult, error)
- func (a *Language) Update(ctx context.Context, code string, item schema.Language) (*schema.Language, error)
- func (a *Language) UpdateStatus(ctx context.Context, code string, status int) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Country ¶
Country - Sample program
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 ¶
func (a *Country) Query(ctx context.Context, params schema.CountryQueryParam, opts ...schema.CountryQueryOptions) (*schema.CountryQueryResult, error)
Query - Query data
type Language ¶
Language - Sample program
func NewLanguage ¶
NewLanguage - Create a Language
func (*Language) Get ¶
func (a *Language) Get(ctx context.Context, code string, opts ...schema.LanguageQueryOptions) (*schema.Language, error)
Get - Get specified data
func (*Language) Query ¶
func (a *Language) Query(ctx context.Context, params schema.LanguageQueryParam, opts ...schema.LanguageQueryOptions) (*schema.LanguageQueryResult, error)
Query - Query data
Click to show internal directories.
Click to hide internal directories.