beegoAPI

package module
Version: v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Jan 7, 2020 License: MIT Imports: 2 Imported by: 0

README

beegoAPI

api beego struct

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type API

type API struct {
	beego.Controller
}

API for Client

func (*API) BaseURL

func (api *API) BaseURL() string

func (*API) ResponseJSON

func (api *API) ResponseJSON(results interface{}, code int, msg string)

func (*API) ResponseJSONWithCode

func (api *API) ResponseJSONWithCode(results interface{}, statusCode int, code int64, msg string)

type ResponseObject

type ResponseObject struct {
	Code           int         `json:"code"`
	Message        string      `json:"message"`
	ResponseObject interface{} `json:"responseObject"`
}

type ResponseObjectWithCode

type ResponseObjectWithCode struct {
	Code           int64       `json:"code"`
	Message        string      `json:"message"`
	ResponseObject interface{} `json:"responseObject"`
}

Source Files

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
t or T : Toggle theme light dark auto
y or Y : Canonical URL