common

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Aug 30, 2021 License: MIT Imports: 0 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// RcSuccess 操作成功,无通知
	RcSuccess = 20000
	// RcSuccessNotification 需要推送通知
	RcSuccessNotification = 20001

	// RcLoginError
	RcLoginError = 60204

	// RcNoUser 没有该用户
	RcNoUser = 30005
	// RcWrongPassword 密码错误
	RcWrongPassword = 30001
	// RcActionError 操作错误
	RcActionError = 30002
	// RcParameterError 传入参数错误
	RcParameterError = 30003
	// RcResourceUnexists 资源不存在
	RcResourceUnexists = 30004
	// RcNoPermission 没有权限
	RcNoPermission    = 30006
	RcOperationFailed = 30000

	// RcTokenError Token 错误
	RcTokenError = 40000
)

返回值 Return Code 简写 Rc

View Source
const (
	TextSuccessGetData = "获取数据成功"
	TextSuccessLogout  = "成功登出"

	TextSuccessLogin    = "成功登陆"
	TextInvalidPassword = "用户密码不正确"
	TextNoUser          = "没有该用户"
	TextNoAlarmLog      = "没有该告警日志"
	TextNoOperationLog  = "没有该操作日志"

	TextFailOperation            = "操作失败。"
	TextSuccessOperation         = "操作成功。"
	TextSuccessDatasetCreate     = "数据集创建成功"
	TextSuccessDatasetDeactivate = "数据集删除成功"
	TextSuccessDatasetUpdate     = "数据集更新成功"
	TextSuccessDatasetTruncate   = "数据集清空成功"

	TextSuccessQueryCreate     = "样本创建成功"
	TextSuccessQueryDeactivate = "样本删除成功"
	TextSuccessQueryUpdate     = "样本更新成功"

	TextErrorCreateOpLog     = "创建操作日志失败。"
	TextErrorUpdateLoginTime = "更新登录时间失败。"
)

所有的文本信息

Variables

This section is empty.

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