rest

package
v0.0.0-...-0eaed87 Latest Latest
Warning

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

Go to latest
Published: Nov 10, 2021 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Result

func Result(context *gin.Context, result *appctx.Result)

Result ... func (r *Rest) Result(context *gin.Context, result *apps.Result) {

Types

type APIResponse

type APIResponse struct {
	Meta  *MetaResponse `json:"meta,omitempty"`
	Data  interface{}   `json:"data"`
	Error interface{}   `json:"error"`
}

APIResponse types

type Data

type Data struct {
	Counter    interface{}          `json:"counter"`
	List       interface{}          `json:"list"`
	Pagination *pagination.Response `json:"pagination,omitempty"`
}

Data ...

type Detail

type Detail struct {
	Detail interface{} `json:"detail"`
}

Detail ...

type DetailList

type DetailList struct {
	Detail     interface{}          `json:"detail"`
	List       interface{}          `json:"list"`
	Pagination *pagination.Response `json:"pagination,omitempty"`
}

DetailList ...

type List

type List struct {
	List       interface{}          `json:"list"`
	Pagination *pagination.Response `json:"pagination,omitempty"`
}

List ...

type MetaResponse

type MetaResponse struct {
	Error   uint   `json:"error"`
	Code    int    `json:"code"`
	Status  bool   `json:"status"`
	Message string `json:"message"`
}

MetaResponse types

Jump to

Keyboard shortcuts

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