response

package
v0.0.6 Latest Latest
Warning

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

Go to latest
Published: May 29, 2023 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 IResponseResult added in v0.0.6

type IResponseResult interface {
	Code() int
}

func ResponseResult

func ResponseResult(data interface{}, code int, err error) IResponseResult

封装http请求统一返回的数据结构

type ResultErr added in v0.0.6

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

func (*ResultErr) Code added in v0.0.6

func (r *ResultErr) Code() int

type ResultSuc added in v0.0.6

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

func (*ResultSuc) Code added in v0.0.6

func (r *ResultSuc) Code() int

Jump to

Keyboard shortcuts

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