i18n

package
v1.1.0 Latest Latest
Warning

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

Go to latest
Published: Sep 11, 2020 License: Apache-2.0 Imports: 3 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type I18nMessageHandlerInterface

type I18nMessageHandlerInterface interface {
	SetCore(data gogo_i18n.GoGoi18nInterface)
	SetModule(module string)
	GetSuccess(result interface{}) (int, *e.Response)
	CreateSuccess(result interface{}) (int, *e.Response)
	UpdateSuccess(result interface{}) (int, *e.Response)
	ModifySuccess(result interface{}) (int, *e.Response)
	DeleteSuccess(result interface{}) (int, *e.Response)
	AppendSuccess(module string, result interface{}) (int, *e.Response)
	RemoveSuccess(module string, result interface{}) (int, *e.Response)
	ParameterFormatError() *e.APIException
	ParameterIntError(data string, err error) *e.APIException
	GetError(err error) *e.APIException
	GetModuleError(module string, err error) *e.APIException
	CreateError(err error) *e.APIException
	UpdateError(err error) *e.APIException
	ModifyError(err error) *e.APIException
	DeleteError(err error) *e.APIException
	AppendError(module string, err error) *e.APIException
	RemoveError(module string, err error) *e.APIException
}

func NewI18nMessageHandler

func NewI18nMessageHandler(moduleName string) I18nMessageHandlerInterface

NewI18nMessageHandler 建立 i18nMessageHandler 實例

Jump to

Keyboard shortcuts

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