lang

package
v0.0.0-...-616fdc4 Latest Latest
Warning

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

Go to latest
Published: Dec 13, 2019 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var CurrLang *jsonData

Functions

func SetLang

func SetLang(lang string)

Types

type ErrorInfo

type ErrorInfo struct {
	Err500  string `json:"err_500"`  // 服务器内部方法出错!
	Err1001 string `json:"err_1001"` // 用户名已经被注册!
	Err1002 string `json:"err_1002"` // 用户不存在!
	Err1003 string `json:"err_1003"` // 请求参数错误!
	Err1004 string `json:"err_1004"` // 请求的资源正忙,请稍后再试!
	Err1005 string `json:"err_1005"` // 身份验证失败!
	Err1006 string `json:"err_1006"` // 身份验证失败次数过多,请 5 分钟后再尝试登录。
	Err1007 string `json:"err_1007"` // 该账户因为登录错误太多被锁定,目前还处于安全锁定期间,请稍后再试!
	Err1008 string `json:"err_1008"` // 验证码不匹配!
}

错误信息

type RRSError

type RRSError struct {
	ERR500  *errorMessage
	Err1001 *errorMessage
	Err1002 *errorMessage
	Err1003 *errorMessage
	Err1004 *errorMessage
	Err1005 *errorMessage
	Err1006 *errorMessage
	Err1007 *errorMessage
	Err1008 *errorMessage
}
var RRSErrorInfo RRSError

Jump to

Keyboard shortcuts

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