e

package
v0.0.0-...-6e78f20 Latest Latest
Warning

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

Go to latest
Published: Oct 28, 2019 License: Apache-2.0 Imports: 0 Imported by: 0

Documentation

Index

Constants

View Source
const (
	SUCCESS        = 200
	ERROR          = 500
	INVALID_PARAMS = 400

	ACCOUNT_EXIST    = 10001
	REGISTRE_FAIL    = 10002
	LOGIN_SUCCESS    = 10003
	LOGIN_FAIL       = 10004
	REGISTRE_SUCCESS = 10005
)

Variables

View Source
var MsgFlags = map[int]string{
	SUCCESS:          "ok",
	ERROR:            "fail",
	INVALID_PARAMS:   "请求参数错误",
	ACCOUNT_EXIST:    "账号已存在",
	REGISTRE_FAIL:    "注册失败,请稍后再试",
	LOGIN_SUCCESS:    "登录成功",
	LOGIN_FAIL:       "登陆失败,请稍后再试",
	REGISTRE_SUCCESS: "注册成功",
}

Functions

func GetMsg

func GetMsg(code int) string

Types

This section is empty.

Jump to

Keyboard shortcuts

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