response

package
v0.0.5 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 ResultData

type ResultData struct {
	Code    int         `json:"code"`    // 业务code
	Message string      `json:"message"` //返回的提示消息
	Data    interface{} `json:"data"`    // json响应数据
}

func ResponseResult

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

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

Jump to

Keyboard shortcuts

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