BaseController

package
v1.0.1 Latest Latest
Warning

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

Go to latest
Published: Jan 27, 2021 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BaseController

type BaseController struct {
	Req        *http.Request
	RespWriter http.ResponseWriter
}

BaseContruller 基础控制器结构体

func (BaseController) Delete

func (bc BaseController) Delete()

func (BaseController) Get

func (bc BaseController) Get()

func (BaseController) Patch added in v1.0.1

func (bc BaseController) Patch()

func (BaseController) Post

func (bc BaseController) Post()

func (BaseController) Put

func (bc BaseController) Put()

func (*BaseController) SetReq

func (bc *BaseController) SetReq(req *http.Request)

func (*BaseController) SetRespWriter

func (bc *BaseController) SetRespWriter(respWriter http.ResponseWriter)

type Controller

type Controller interface {
	Get()
	Post()
	Put()
	Delete()
	Patch()
	SetReq(req *http.Request)
	SetRespWriter(respWriter http.ResponseWriter)
}

Controller 控制器接口

Jump to

Keyboard shortcuts

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