hret

package
v0.0.0-...-d1f39bd Latest Latest
Warning

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

Go to latest
Published: Dec 30, 2020 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BootstrapTableJson

func BootstrapTableJson(w http.ResponseWriter, total int64, v interface{})

func Error

func Error(w http.ResponseWriter, code int, msg string, details ...interface{})

func HttpPanic

func HttpPanic(f ...httpPanicFunc)

HttpPanic user for stop panic up.

func Json

func Json(w http.ResponseWriter, data interface{}) ([]byte, error)

func Success

func Success(w http.ResponseWriter, v interface{})

Types

type HttpErrMsg

type HttpErrMsg struct {
	Error_code    int         `json:"error_code"`
	Error_msg     string      `json:"error_msg"`
	Error_details interface{} `json:"error_details,omitempty"`
	Version       string      `json:"version"`
}

type HttpOkMsg

type HttpOkMsg struct {
	Version    string      `json:"version"`
	Reply_code int         `json:"reply_code"`
	Reply_msg  string      `json:"reply_msg"`
	Data       interface{} `json:"data,omitempty"`
	Total      int64       `json:"total,omitempty"`
	Rows       interface{} `json:"rows,omitempty"`
}

Jump to

Keyboard shortcuts

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