constant

package
v0.1.4 Latest Latest
Warning

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

Go to latest
Published: Apr 6, 2023 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

View Source
const (
	CreateSuccess = "创建成功"
	UpdateSuccess = "更新成功"
	DeleteSuccess = "删除成功"
	GetSuccess    = "获取成功"
)

Variables

View Source
var (
	ServerError = response.NewError(500, "服务器错误", nil, http.StatusInternalServerError)
	// UNAUTHORIZED 未登录
	UNAUTHORIZED = response.NewError(10000, "未登录", nil, http.StatusUnauthorized)
	// InvalidToken 非法Token
	InvalidToken = response.NewError(10001, "非法Token", nil, http.StatusUnauthorized)
	// TokenExpired Token过期
	TokenExpired = response.NewError(10002, "Token过期", nil, http.StatusUnauthorized)
	// UsernameOrPasswordError 用户名或密码错误
	UsernameOrPasswordError = response.NewError(10003, "用户名或密码错误", nil, http.StatusUnauthorized)
	// PlatformNotExist 平台不存在
	PlatformNotExist = response.NewError(10004, "平台不存在", nil, http.StatusUnauthorized)
	// PlatformIdCanNotEmpty 平台id不能为空
	PlatformIdCanNotEmpty = response.NewError(10005, "平台id不能为空", nil, http.StatusUnauthorized)
)

Functions

This section is empty.

Types

This section is empty.

Jump to

Keyboard shortcuts

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