model

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Dec 14, 2019 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Error

func Error(msg string) []byte

Error 服务器发生错误时响应

func OK

func OK() []byte

OK 响应 http 成功

func OKData

func OKData(data interface{}) []byte

OKData 响应 http 成功

func OKMsg

func OKMsg(msg string) []byte

OKMsg 响应 http 成功

Types

type ResResult

type ResResult struct {
	Ok         bool
	Msg        string
	ResultData interface{}
}

ResResult 用来传递 http 响应的

Jump to

Keyboard shortcuts

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