controller

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: May 20, 2022 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type HelloController

type HelloController struct {
	Demo  *config.Demo          `inject:""`
	Demo1 *config.Demo          `inject:"demo"`
	Cfg   *config.Configuration `inject:""`
}

func (*HelloController) File

func (ctr *HelloController) File(c *gallop.Context) gallop.File

func (*HelloController) Hello

func (ctr *HelloController) Hello(c *gallop.Context) string

func (*HelloController) Json

func (ctr *HelloController) Json(c *gallop.Context) gallop.Json

func (*HelloController) Valid added in v0.1.7

func (ctr *HelloController) Valid(c *gallop.Context) string

type User added in v0.1.7

type User struct {
	Name string `json:"name" form:"name" v:"required#请输入用户姓名"`
	Type int    `json:"type" form:"type" v:"required#请选择用户类型"`
}

Jump to

Keyboard shortcuts

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