api

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

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

Go to latest
Published: Jan 19, 2021 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Controller

type Controller struct {
	UserId string
}

func (*Controller) GetData

func (c *Controller) GetData(inputData interface{}, ctx *fasthttp.RequestCtx)

func (*Controller) SendJson

func (c *Controller) SendJson(ctx *fasthttp.RequestCtx, retData RetData)

func (*Controller) SendText

func (c *Controller) SendText(ctx *fasthttp.RequestCtx, retData string)

type DataNil

type DataNil struct {
}

type InputData

type InputData map[int]string

type RetData

type RetData struct {
	Code int         `json:"code"`
	Msg  string      `json:"msg"`
	Data interface{} `json:"data"`
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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