controllers

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Apr 5, 2023 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

Functions

This section is empty.

Types

type AuthController

type AuthController struct {
	app.Controller
}

func (*AuthController) Login

Login 执行登录

func (*AuthController) LoginForm

func (a *AuthController) LoginForm() (string, app.Data)

LoginForm 登录页面

func (*AuthController) Logout

func (a *AuthController) Logout(c *gin.Context) (services.Response, error)

Logout 执行退出

func (*AuthController) Me

Me 获取个人信息

func (*AuthController) Register

Register 执行注册

func (*AuthController) RegisterForm

func (a *AuthController) RegisterForm() (string, app.Data)

RegisterForm 注册页面

type ExcpController

type ExcpController struct {
	app.Controller
}

func (*ExcpController) BadRequest

func (e *ExcpController) BadRequest(req *requests.ExcpRequest) services.Response

BadRequest 异常请求

func (*ExcpController) NotFound

NotFound 404 未找到资源

type HomeController

type HomeController struct {
	app.Controller
}

func (*HomeController) Index

func (h *HomeController) Index(auth *models.Auth) (services.Response, error)

Index 主页

Jump to

Keyboard shortcuts

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