bmiddle

package
v0.1.0-alpha Latest Latest
Warning

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

Go to latest
Published: Jun 1, 2024 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BambooMiddleHandler

func BambooMiddleHandler(r *ghttp.Request)

BambooMiddleHandler

基本数据返回

基本数据信息返回,用于最终的报错或者数据进行编译打包,打包完成后输出 json 参数信息.

参数

  • r http 信息(*ghttp.Request)

Types

type BaseResponse

type BaseResponse struct {
	Output       string      `json:"output" dc:"英文输出"`
	Code         int         `json:"code" dc:"状态码"`
	Message      string      `json:"message" dc:"中文描述"`
	ErrorMessage string      `json:"error_message,omitempty" dc:"错误信息"`
	Data         interface{} `json:"data,omitempty" dc:"数据"`
}

BaseResponse

基本数据返回

基本数据结构,进行数据信息的返回

参数

  • Output 英文输出(string)
  • Code 状态码(int)
  • Message 中文描述(string)
  • ErrorMessage 错误信息(string?)
  • Data 数据(interface?)

Jump to

Keyboard shortcuts

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