res

package
v0.0.0-...-e5d1c0a Latest Latest
Warning

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

Go to latest
Published: Aug 26, 2022 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ERROR   = 3000
	SUCCESS = 0
)

Variables

This section is empty.

Functions

func Fail

func Fail(c core.Context)

func FailWithDetailed

func FailWithDetailed(data interface{}, message string, c core.Context)

func FailWithMessage

func FailWithMessage(message string, c core.Context)

func Ok

func Ok(c core.Context)

func OkWithData

func OkWithData(data interface{}, c core.Context)

func OkWithDetailed

func OkWithDetailed(data interface{}, message string, c core.Context)

func OkWithMessage

func OkWithMessage(message string, c core.Context)

func Result

func Result(code int, data interface{}, msg string, c core.Context)

Types

type CreateResponse

type CreateResponse struct {
	Id int64 `json:"ID"` // 主键ID
}

type DeleteRes

type DeleteRes struct {
	//Count      int64   `json:"Count"`
	SCount     int64    `json:"sCount"`
	ECount     int64    `json:"eCount"`
	ErrMessage []string `json:"ErrMessage"`
}

type QueryRes

type QueryRes struct {
	Rows   []map[string]interface{} `json:"rows"`
	TotRow int64                    `json:"totRow"`
}

type Res

type Res struct {
	Code int         `json:"code"` //返回状态码
	Data interface{} `json:"data"` //返回数据
	Msg  string      `json:"msg"`  //返回消息
}

type SysCaptchaResponse

type SysCaptchaResponse struct {
	CaptchaId     string `json:"captchaId"`
	PicPath       string `json:"picPath"`
	CaptchaLength int    `json:"captchaLength"`
}

Jump to

Keyboard shortcuts

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