controllers

package
v0.0.0-...-2949144 Latest Latest
Warning

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

Go to latest
Published: Mar 27, 2024 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BaseMainController

type BaseMainController struct {
	beego.Controller
	// 返回json时用,最后必须调用方法RetJSON或RetJSONOrigin
	Code int
	// 返回Tpl时用,最后必须调用方法
	// 返回json时用,最后必须调用方法RetJSON或RetJSONOrigin
	Msg string
	// 返回json时用,最后必须调用方法RetJSON或RetJSONOrigin
	Dta interface{} // 本来叫Data,但是和beego.Controller的冲突,所以改为Dta
}

func (*BaseMainController) RetJSON

func (c *BaseMainController) RetJSON()

func (*BaseMainController) RetJSONOrigin

func (c *BaseMainController) RetJSONOrigin()

func (*BaseMainController) RetTpl

func (c *BaseMainController) RetTpl(tplName string)

type CommonController

type CommonController struct {
	beego.Controller
}

func (*CommonController) HealthCheck

func (c *CommonController) HealthCheck()

func (*CommonController) SendSmsCode

func (c *CommonController) SendSmsCode()

发送短信验证码,front和api使用 1分钟有效 请求:get 参数:mobile=手机号&mode=1 mode=1验证手机号不存在则返回异常;mode=2不验证手机号是否存在;mode=3验证手机号已存在则返回异常

func (*CommonController) SystemInfo

func (c *CommonController) SystemInfo()

type ErrorController

type ErrorController struct {
	beego.Controller
}

func (*ErrorController) Error401

func (c *ErrorController) Error401()

func (*ErrorController) Error404

func (c *ErrorController) Error404()

Jump to

Keyboard shortcuts

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