excode

package
Version: v0.0.0-...-86e17eb Latest Latest
Warning

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

Go to latest
Published: Sep 1, 2021 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ExCode

type ExCode int32
const (
	Success      ExCode = 200
	BadParam     ExCode = 400
	NoPermission ExCode = 401
)
const (
	UserErr          ExCode = 2000
	UserNoFound      ExCode = 2001
	UserRoleNoFound  ExCode = 2002
	UserLoginFailed  ExCode = 2003
	UserLogoutFailed ExCode = 2004
	UserHasNoFound   ExCode = 2005
	UserPwdError     ExCode = 2006

	UserCreateErr        ExCode = 2100 // 创建用户时,失败
	UserRoleCreateFailed ExCode = 2101 // 创建用户时,角色分配失败
	UserHasExist         ExCode = 2102 // 创建用户时,用户已经存在

	UserModifyFailed     ExCode = 2200
	UserRoleModifyFailed ExCode = 2201
	UserPwdModifyFailed  ExCode = 2202

	UserDeleteFailed     ExCode = 2300
	UserRoleDeleteFailed ExCode = 2301
)

func (ExCode) ToEx

func (c ExCode) ToEx(msg string) exception.Exception

func (ExCode) ToNum

func (c ExCode) ToNum() int32

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
t or T : Toggle theme light dark auto
y or Y : Canonical URL