errcode

package
v0.0.0-...-a7c7adb Latest Latest
Warning

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

Go to latest
Published: Sep 3, 2023 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ErrCode

type ErrCode uint32
const (
	ServerCommonError   ErrCode = 1e6 // OK
	ServerInvalidParams               // 无效参数
	ServerTimout                      // 超时
)
const (
	TicketNotExit     ErrCode = iota + 3e6 // 工单不存在
	TicketStatusNotOK                      // 工单状态不合理
	TicketUpdateFail                       // 工单更新失败
)

工单模块300开始

const (
	BookNotFoundError        ErrCode = iota + 4e6 // 书未找到
	BookHasBeenBorrowedError                      // 书已经被借走了
)

读书模块400开始

const (
	OK ErrCode = 200 // 成功返回
)

func (ErrCode) String

func (i ErrCode) String() string

Jump to

Keyboard shortcuts

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