enums

package
v0.5.3 Latest Latest
Warning

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

Go to latest
Published: Oct 11, 2024 License: MIT Imports: 0 Imported by: 0

Documentation

Overview

Code generated by goal-cli. DO NOT EDIT. versions:

goal-cli v0.5.24
go       go1.23.2

updated_at: 2024-10-09 19:07:27 source: pro/common.proto

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Code

type Code int
const (

	// CodeSuccess
	// @msg:成功
	CodeSuccess Code = 0

	// CodeParseReqErr
	// @msg:参数解析失败
	CodeParseReqErr Code = 10400

	// CodeUnauthorized
	// @msg:未登录
	CodeUnauthorized Code = 10401

	// CodeForbidden
	// @msg:没有权限
	CodeForbidden Code = 100403

	// CodeNotFound
	// @msg:找不到
	CodeNotFound Code = 100404

	// CodeBizErr
	// @msg:业务错误
	CodeBizErr  Code = 10201
	CodeUnknown Code = -1000
)

func ParseCodeFromString

func ParseCodeFromString(msg string) Code

func (Code) Message

func (item Code) Message() string

func (Code) String

func (item Code) String() string

Jump to

Keyboard shortcuts

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