controllers

package
v1.4.0 Latest Latest
Warning

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

Go to latest
Published: Aug 5, 2025 License: Apache-2.0 Imports: 5 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ApiController

type ApiController struct {
	beego.Controller
}

func (*ApiController) GetFormData

func (c *ApiController) GetFormData()

GetFormData @Title GetFormData @Tag Form API @Description get form data @Param owner query string true "The owner of form" @Success 200 {array} object.Form The Response object @router /get-form-data [post]

func (*ApiController) InvokeContract

func (c *ApiController) InvokeContract()

InvokeContract @Title InvokeContract @Description invoke contract @Param body object.Chainmaker true "contract invoke parameters" @Success 200 {object} object.Response @Failure 400 Invalid request @router /invoke-contract [post]

func (*ApiController) QueryContract

func (c *ApiController) QueryContract()

QueryContract @Title QueryContract @Description query contract @Param body object.Chainmaker true "contract query parameters" @Success 200 {object} object.Response @Failure 400 Invalid request @router /query-contract [post]

func (*ApiController) ResponseAudio

func (c *ApiController) ResponseAudio(audioData []byte, contentType string, filename string)

func (*ApiController) ResponseError

func (c *ApiController) ResponseError(error string, data ...interface{})

func (*ApiController) ResponseOk

func (c *ApiController) ResponseOk(data ...interface{})

type Response

type Response struct {
	Status string      `json:"status"`
	Msg    string      `json:"msg"`
	Data   interface{} `json:"data"`
	Data2  interface{} `json:"data2"`
}

Jump to

Keyboard shortcuts

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