errno

package
v0.0.0-...-750a8a5 Latest Latest
Warning

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

Go to latest
Published: Oct 10, 2021 License: MIT Imports: 0 Imported by: 0

Documentation

Overview

@Description 错误处理 @Author jiangyang @Created 2020/11/17 9:51 上午

Index

Constants

This section is empty.

Variables

View Source
var (
	SystemErr = &Errno{Code: 1, Msg: "系统错误"}

	BusNotFound     = &Errno{101, "Token中业务数据不存在"}
	ParamErr        = &Errno{102, "参数错误"}
	UserPasswordErr = &Errno{103, "账号或密码错误"}

	UserNotFound   = &Errno{1001, "用户不存在"}
	UserRoleErr    = &Errno{1002, "用户角色错误"}
	UserNoPowerErr = &Errno{1003, "用户权限不足"}
)

Functions

This section is empty.

Types

type Errno

type Errno struct {
	Code int
	Msg  string
}

func (*Errno) Error

func (e *Errno) Error() string

Jump to

Keyboard shortcuts

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