controller

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Nov 24, 2022 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	GetConfig = cGetConfig{}
)
View Source
var (
	Index = cIndex{}
)

Functions

This section is empty.

Types

type GetConfigReq

type GetConfigReq struct {
	g.Meta   `path:"/getconfig" tags:"GetConfig" method:"get" summary:"GetConfig"`
	Id       string `p:"id" v:"required#id is required"` // id is required
	Filename string `p:"file"`                           // file is optional
	Dl       string `p:"dl"`                             // dl is optional
}

type GetConfigRes

type GetConfigRes struct {
	g.Meta  `mime:"text/html" example:"string"`
	Code    int         `json:"code"`
	Message string      `json:"message"`
	Data    interface{} `json:"data"`
}

type IndexReq

type IndexReq struct {
	g.Meta `path:"/" tags:"Index" method:"get" summary:"Index"`
}

type IndexRes

type IndexRes struct {
	GOOS    string `json:"goos"`
	GOARCH  string `json:"goarch"`
	Version string `json:"version"`
}

Jump to

Keyboard shortcuts

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