code

package
v0.0.0-...-2963207 Latest Latest
Warning

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

Go to latest
Published: Feb 20, 2020 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

View Source
const (
	//ErrParam param error of code
	ErrParam = int(-1)
	//ErrDbAbnormal db/mysql abnormal error of code
	ErrDbAbnormal = int(-2)
	//ErrSystem  system error of code
	ErrSystem = int(-3)
	//ErrCaptchaFormat captcha format error of code
	ErrCaptchaFormat = int(-4)
	//ErrUserNameFormat username format error of code
	ErrUserNameFormat = int(-5)
	//ErrPwdFormat password format error of code
	ErrPwdFormat = int(-6)
	//ErrUserName username error of code
	ErrUserName = int(-7)
	//ErrPwd password error of code
	ErrPwd = int(-8)
	//ErrPwdAgain password again error of code
	ErrPwdAgain = int(-9)
	//ErrTokenNot authorization token error of code
	ErrTokenNot = int(-10)
	//ErrTokenInvalid authorization token invalid error of code
	ErrTokenInvalid = int(-11)
	//ErrOnlineUserNot user online data not found error of code
	ErrOnlineUserNot = int(-12)
	//ErrNeedPerm user need sufficient permissions error of code
	ErrNeedPerm = int(-13)
	//ErrNeedGenerateCaptcha captcha not generate error of code
	ErrNeedGenerateCaptcha = int(-14)
	//ErrCaptcha captcha error of code
	ErrCaptcha = int(-15)
	//ErrConfigNot config data non-existent error of code
	ErrConfigNot = int(-16)
	//ErrUserExitis user already exists error of code
	ErrUserExitis = int(-17)
	//ErrUserFailCap user signIn error limit of code
	ErrUserFailCap = int(-18)
)
View Source
const (
	//ErrMsgParam param error of message
	ErrMsgParam = "param error"
	//ErrMsgSystem system error of message
	ErrMsgSystem = "system error"
	//ErrMsgDbAbnormal db/mysql abnormal error of message
	ErrMsgDbAbnormal = "system abnormal"
	//ErrMsgCaptchaFormat captcha format error of message
	ErrMsgCaptchaFormat = "captcha format error"
	//ErrMsgUserNameFormat username format error of message
	ErrMsgUserNameFormat = "username format error"
	//ErrMsgPwdFormat password format error of message
	ErrMsgPwdFormat = "password format error"
	//ErrMsgUserName username error of message
	ErrMsgUserName = "user name error"
	//ErrMsgPwd password error of message
	ErrMsgPwd = "password error"
	//ErrMsgPwdAgain password again error of message
	ErrMsgPwdAgain = "passwords entered twice do not match"
	//ErrMsgTokenNot authorization token error of message
	ErrMsgTokenNot = "authorization token does not exist"
	//ErrMsgTokenInvalid authorization token invalid error of message
	ErrMsgTokenInvalid = "authorization token invalid"
	//ErrMsgOnlineUserNot user online data not found error of message
	ErrMsgOnlineUserNot = "user is not logged in"
	//ErrMsgNeedPerm user need sufficient permissions error of message
	ErrMsgNeedPerm = "need sufficient permissions"
	//ErrMsgNeedGenerateCaptcha captcha not generate error of message
	ErrMsgNeedGenerateCaptcha = "need generate captcha"
	//ErrMsgCaptcha captcha error of message
	ErrMsgCaptcha = "captcha is error"
	//ErrMsgConfigNot config data non-existent error of message
	ErrMsgConfigNot = "config data non-existent"
	//ErrMsgUserExitis user already exists error of message
	ErrMsgUserExitis = "user already exists"
	//ErrMsgUserFailCap user signIn error limit of message
	ErrMsgUserFailCap = "Continuous login failed, account is locked"
)

Variables

This section is empty.

Functions

func SpawnErrCaptcha

func SpawnErrCaptcha() protocol.Response

SpawnErrCaptcha doc Summary create captcha error response json Method SpawnErrCaptcha Return (protocol.Response)

func SpawnErrCaptchaFormat

func SpawnErrCaptchaFormat(msg string) protocol.Response

SpawnErrCaptchaFormat doc Summary create captcha format error response json Return (protocol.Response)

func SpawnErrConfigNot

func SpawnErrConfigNot() protocol.Response

SpawnErrConfigNot doc Summary create config data non-existent error response json Method SpawnErrConfigNot Return (protocol.Response)

func SpawnErrDbAbnormal

func SpawnErrDbAbnormal() protocol.Response

SpawnErrDbAbnormal doc Summary create db/mysql abnormal error response json Return (protocol.Response)

func SpawnErrNeedGenerateCaptcha

func SpawnErrNeedGenerateCaptcha() protocol.Response

SpawnErrNeedGenerateCaptcha doc Method SpawnErrNeedGenerateCaptcha @Summary create captcha not grenerate error response json Return (protocol.Response)

func SpawnErrNeedPerm

func SpawnErrNeedPerm() protocol.Response

SpawnErrNeedPerm doc Method SpawnErrNeedPerm @Summary create need sufficient permissions error response json Return (protocol.Response)

func SpawnErrOnlineUserNot

func SpawnErrOnlineUserNot() protocol.Response

SpawnErrOnlineUserNot doc Method SpawnErrOnlineUserNot @Summary create user unonline error response json Return (protocol.Response)

func SpawnErrParam

func SpawnErrParam() protocol.Response

SpawnErrParam doc Summary create param error response json Return (protocol.Response)

func SpawnErrPwd

func SpawnErrPwd() protocol.Response

SpawnErrPwd doc Summary create password error response json Return (protocol.Response)

func SpawnErrPwdAgin

func SpawnErrPwdAgin() protocol.Response

SpawnErrPwdAgin doc Method SpawnErrPwdAgin @Summary create password again error response json Return (protocol.Response)

func SpawnErrPwdFormat

func SpawnErrPwdFormat() protocol.Response

SpawnErrPwdFormat doc Summary create password format error response json Return (protocol.Response)

func SpawnErrSystem

func SpawnErrSystem() protocol.Response

SpawnErrSystem doc Summary create system error response json Return (protocol.Response)

func SpawnErrSystemMsg

func SpawnErrSystemMsg(msg string) protocol.Response

SpawnErrSystemMsg doc Summary create system error message response json Return (protocol.Response)

func SpawnErrTokenInvalid

func SpawnErrTokenInvalid() protocol.Response

SpawnErrTokenInvalid doc Method SpawnErrTokenInvalid @Summary create authorization token invalid error response json Return (protocol.Response)

func SpawnErrTokenNot

func SpawnErrTokenNot() protocol.Response

SpawnErrTokenNot doc Method SpawnErrTokenNot @Summary create authorization token error response json Return (protocol.Response)

func SpawnErrUserExitis

func SpawnErrUserExitis() protocol.Response

SpawnErrUserExitis doc

func SpawnErrUserFailCap

func SpawnErrUserFailCap() protocol.Response

SpawnErrUserFailCap doc

func SpawnErrUserName

func SpawnErrUserName() protocol.Response

SpawnErrUserName doc Summary create user name error response json Return (protocol.Response)

func SpawnErrUserNameFormat

func SpawnErrUserNameFormat() protocol.Response

SpawnErrUserNameFormat doc Summary create username format error response json Return (protocol.Response)

func SpawnResponse

func SpawnResponse(data interface{}) protocol.Response

SpawnResponse doc ummary create success response

Types

This section is empty.

Jump to

Keyboard shortcuts

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