models

package
v0.0.0-...-18c487f Latest Latest
Warning

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

Go to latest
Published: May 17, 2017 License: MIT Imports: 0 Imported by: 0

Documentation

Index

Constants

View Source
const (
	Ok                  = 200 //成功
	BadRequest          = 400 //请求失败
	Unauthorized        = 401 //验证失败
	NotFound            = 404 //未找到
	InternalServerError = 500 //服务器内部错误

	ServerErr = "服务器异常,请联系管理员!"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Result

type Result struct {
	Code int
	Msg  string
	Data interface{}
}

返回结果结构 Code 错误码 Msg 返回信息 Date 返回数据

Jump to

Keyboard shortcuts

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