dto

package
v0.0.0-...-3ddb297 Latest Latest
Warning

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

Go to latest
Published: Jun 2, 2021 License: MIT Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Resp

type Resp struct {
	Error RespError   `json:"error"`
	Data  interface{} `json:"data"`
}

func (*Resp) SetCode

func (r *Resp) SetCode(code int) *Resp

func (*Resp) SetCodeMsg

func (r *Resp) SetCodeMsg(code int, msg string) *Resp

func (*Resp) SetData

func (r *Resp) SetData(data interface{}) *Resp

func (*Resp) SetMessage

func (r *Resp) SetMessage(msg string) *Resp

type RespError

type RespError struct {
	Code    int    `json:"code"`
	Message string `json:"message"`
}

Jump to

Keyboard shortcuts

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