btype

package
v0.1.4 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

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