vcago

package
v2.0.1 Latest Latest
Warning

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

Go to latest
Published: Jan 22, 2022 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Response

type Response struct {
	Message string      `json:"message"`
	Model   string      `json:"model,omitempty"`
	Payload interface{} `json:"payload,omitempty"`
}

Response represents the default api response struct Message shows action information Payload contains the response model

func NewResponse

func NewResponse(model string, payload interface{}) *Response

NewResponse can be used for create Response struct

func (*Response) Created

func (i *Response) Created() (int, interface{})

func (*Response) Deleted

func (i *Response) Deleted() (int, interface{})

func (*Response) Executed

func (i *Response) Executed() (int, interface{})

func (*Response) Selected

func (i *Response) Selected() (int, interface{})

func (*Response) Updated

func (i *Response) Updated() (int, interface{})

Jump to

Keyboard shortcuts

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