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 (*AuthController) LoginForm() (services.Response, error)

LoginForm 获取登录页面

func (*AuthController) Logout

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

Logout 执行退出

type HomeController

type HomeController struct {
	app.Controller
}

func (*HomeController) Index

func (*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