Documentation ¶
Index ¶
- Constants
- func CheckParametersLost(params map[string]string, paramNames ...string) models.Result
- func Error(code int, messageId string) models.Result
- func ErrorWithMsg(code int, messageId, msg string) models.Result
- func Format(messageId string, args ...interface{}) string
- func GetAppXLangStringsAll(appName string) (map[string]string, error)
- func GetAppXLangVersion(appName string) (string, error)
- func GetXLangString(stringId, lang string) string
- func Init()
- func ParamError(param string) models.Result
- func ParamLostError(param string) models.Result
- func String(messageId string) string
- func Success(data interface{}) models.Result
- func SuccessWithPage(data interface{}, count, index, size, total int) models.Result
Constants ¶
View Source
const ( SERVICE_X_LANGUAGE = "x-lang" URI_LIST_STRINGS_BY_APPNAME = "/lang/string/list" URI_GET_APP_STRINGS_VERSION = "/lang/string/app/version" )
Variables ¶
This section is empty.
Functions ¶
func CheckParametersLost ¶
func GetAppXLangVersion ¶
func GetXLangString ¶
func ParamError ¶
func ParamLostError ¶
func SuccessWithPage ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.