global

package
v0.1.0-alpha.10 Latest Latest
Warning

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

Go to latest
Published: Dec 2, 2023 License: MIT Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	// ErrorParam 错误的参数
	ErrorParam = NewError(400400, "错误的参数")

	// ErrorQuestionNotFound 题目未找到
	ErrorQuestionNotFound = NewError(400404, "题目未找到")

	// ErrorParseFile 解析文件出错
	ErrorParseFile = NewError(400500, "解析文件出错")
)

Functions

This section is empty.

Types

type ResultCont

type ResultCont struct {
	ErrCode int    `json:"errCode"` // 提示代码
	Message string `json:"message"` // 提示信息
}

ResultCont 返回错误结果

func NewError

func NewError(code int, msg string) ResultCont

NewError 创建错误

Jump to

Keyboard shortcuts

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