demo

package
v1.4.6 Latest Latest
Warning

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

Go to latest
Published: Jan 31, 2019 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Apple

func Apple(r *ghttp.Request)

func ApplePen

func ApplePen(r *ghttp.Request)
func Cookie(r *ghttp.Request)

func Form

func Form(r *ghttp.Request)

func FormShow

func FormShow(r *ghttp.Request)

func Pen

func Pen(r *ghttp.Request)

func Session

func Session(r *ghttp.Request)

func Upload

func Upload(r *ghttp.Request)

func UploadShow

func UploadShow(r *ghttp.Request)

Types

type ControllerDomain

type ControllerDomain struct{}

func (*ControllerDomain) Show

func (d *ControllerDomain) Show(r *ghttp.Request)

用于对象映射

type ControllerExit

type ControllerExit struct {
	gmvc.Controller
}

func (*ControllerExit) Init

func (c *ControllerExit) Init(r *ghttp.Request)

func (*ControllerExit) Show

func (c *ControllerExit) Show()

type ControllerRule

type ControllerRule struct {
	gmvc.Controller
}

func (*ControllerRule) Show

func (c *ControllerRule) Show()

type ControllerTemplate

type ControllerTemplate struct {
	gmvc.Controller
}

func (*ControllerTemplate) Info

func (c *ControllerTemplate) Info()

type Method

type Method struct {
	gmvc.Controller
}

func (*Method) Age

func (c *Method) Age()

func (*Method) Info

func (c *Method) Info()

func (*Method) Name

func (c *Method) Name()

type Object

type Object struct{}

func (*Object) Index

func (o *Object) Index(r *ghttp.Request)

func (*Object) Show

func (o *Object) Show(r *ghttp.Request)

type ObjectMethod

type ObjectMethod struct{}

func (*ObjectMethod) Show1

func (o *ObjectMethod) Show1(r *ghttp.Request)

func (*ObjectMethod) Show2

func (o *ObjectMethod) Show2(r *ghttp.Request)

func (*ObjectMethod) Show3

func (o *ObjectMethod) Show3(r *ghttp.Request)

func (*ObjectMethod) Show4

func (o *ObjectMethod) Show4(r *ghttp.Request)

type ObjectRest

type ObjectRest struct{}

测试绑定对象

func (*ObjectRest) Delete

func (c *ObjectRest) Delete(r *ghttp.Request)

RESTFul - DELETE

func (*ObjectRest) Get

func (o *ObjectRest) Get(r *ghttp.Request)

RESTFul - GET

func (*ObjectRest) Hello

func (c *ObjectRest) Hello(r *ghttp.Request)

该方法无法映射,将会无法访问到

func (*ObjectRest) Post

func (c *ObjectRest) Post(r *ghttp.Request)

RESTFul - POST

type Order

type Order struct{}

func (*Order) List

func (o *Order) List(r *ghttp.Request)

type Product

type Product struct {
	// contains filtered or unexported fields
}

func (*Product) List

func (p *Product) List(r *ghttp.Request)

func (*Product) Total

func (p *Product) Total(r *ghttp.Request)

type Rest

type Rest struct {
	gmvc.Controller
}

func (*Rest) Delete

func (c *Rest) Delete()

RESTFul - DELETE

func (*Rest) Get

func (c *Rest) Get()

RESTFul - GET

func (*Rest) Hello

func (c *Rest) Hello()

该方法无法映射,将会无法访问到

func (*Rest) Post

func (c *Rest) Post()

RESTFul - POST

type User

type User struct {
	gmvc.Controller
}

func (*User) Index

func (u *User) Index()

func (*User) Info

func (u *User) Info()

func (*User) List

func (u *User) List()

Jump to

Keyboard shortcuts

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