xlhttp

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Aug 24, 2025 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ApiRequest

type ApiRequest struct {
	// contains filtered or unexported fields
}

func Build

func Build(ctx *gin.Context) *ApiRequest

func (*ApiRequest) JsonReturn

func (r *ApiRequest) JsonReturn(err error, args ...interface{})

func (*ApiRequest) RequestParser

func (r *ApiRequest) RequestParser(args interface{}) (err error)

type JsonResponse

type JsonResponse struct {
	Error   int         `json:"error"`
	Data    interface{} `json:"data,omitempty"`
	Message string      `json:"message"`
}

JsonResponse 返回的json数据格式

Jump to

Keyboard shortcuts

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