enums

package
v0.0.0-...-66c47ec Latest Latest
Warning

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

Go to latest
Published: May 30, 2024 License: GPL-3.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

View Source
const (
	SUCCESS       = 200
	ERROR         = 500
	InvalidParams = 400
)
View Source
const InputPath = "./pdf_file/input"
View Source
const OutputPath = "./pdf_file/output"

Variables

View Source
var (
	ErrorUserExit      = "用户已存在"
	ErrorUserNotExit   = "用户不已存在"
	ErrorPasswordWrong = "密码错误"
	ErrorGenIDFailed   = errors.New("创建用户ID失败")
	ErrorInvalidID     = "无效的ID"
	ErrorQueryFailed   = "查询数据失败"
	ErrorInsertFailed  = errors.New("插入数据失败")
)

数据库错误

Functions

This section is empty.

Types

type MyCode

type MyCode int64
const (
	CodeSuccess           MyCode = 1000
	CodeInvalidParams     MyCode = 1001 // 请求参数错误
	CodeUserExist         MyCode = 1002
	CodeUserNotExist      MyCode = 1003
	CodeInvalidPassword   MyCode = 1004
	CodeServerBusy        MyCode = 1005
	CodeInvalidToken      MyCode = 1006
	CodeInvalidAuthFormat MyCode = 1007
	CodeNotLogin          MyCode = 1008
	ErrVoteRepeated       MyCode = 1009
	ErrorVoteTimeExpire   MyCode = 1010
)

func (MyCode) Msg

func (c MyCode) Msg() string

type TokenData

type TokenData struct {
	User  interface{} `json:"user"`
	Token string      `json:"token"`
}

Jump to

Keyboard shortcuts

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