ajax

package
v1.4.1 Latest Latest
Warning

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

Go to latest
Published: Jan 15, 2020 License: MIT Imports: 1 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Result

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

func Error

func Error(code int) Result

func ErrorWithMessage

func ErrorWithMessage(code int, msg string) Result

func NewResult

func NewResult(code int, data interface{}, msg string) Result

func Ok

func Ok(data interface{}) Result

func (*Result) IsSucceed

func (r *Result) IsSucceed() bool

Jump to

Keyboard shortcuts

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