iris_utils

package
v1.0.6 Latest Latest
Warning

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

Go to latest
Published: Aug 31, 2023 License: MIT Imports: 3 Imported by: 0

Documentation

Overview

Package iris_utils iris response Subpackage

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ResponseStatusBadRequest

func ResponseStatusBadRequest(ctx iris.Context, code int, msg string, data interface{})

code code msg 消息 data 消息体

func ResponseStatusOK

func ResponseStatusOK(ctx iris.Context, code int, msg string, data interface{})

code code msg 消息 data 消息体

Types

type ResponseBody

type ResponseBody struct {
	Code int         `json:"code"`
	Msg  string      `json:"msg"`
	Data interface{} `json:"data"`
}

返回参数

Jump to

Keyboard shortcuts

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