Controllers

package
v0.0.0-...-03dd0ed Latest Latest
Warning

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

Go to latest
Published: Feb 20, 2021 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

View Source
const (
	USERMAME   = config.USERMAME
	USERPASSWD = config.USERPASSWD
	TIMEFILE   = config.TIMEFILE
	WEEKFILE   = config.WEEKFILE
	SWITCHFILE = config.SWITCHFILE
)

Variables

This section is empty.

Functions

This section is empty.

Types

type BaseController

type BaseController struct {
	base.Base
}

type ButtonController

type ButtonController struct {
	BaseController
}

func (*ButtonController) Control

func (ctx *ButtonController) Control(c *gin.Context)

*

  • 控制方法

func (*ButtonController) Index

func (ctx *ButtonController) Index(c *gin.Context)

*

  • 获取首页信息

func (*ButtonController) UrlControl

func (ctx *ButtonController) UrlControl(c *gin.Context)

*

type LoginController

type LoginController struct {
	BaseController
}

func (*LoginController) Login

func (ctx *LoginController) Login(c *gin.Context)

*

  • 登录

func (*LoginController) Logout

func (ctx *LoginController) Logout(c *gin.Context)

*

  • 登出

func (*LoginController) Time

func (ctx *LoginController) Time(c *gin.Context)

*

  • 获取系统时间 (10:06:50)

type SwitchController

type SwitchController struct {
	BaseController
}

func (*SwitchController) Control

func (ctx *SwitchController) Control(c *gin.Context)

*

  • 控制方法

func (*SwitchController) Index

func (ctx *SwitchController) Index(c *gin.Context)

*

  • 获取首页信息

func (*SwitchController) Update

func (ctx *SwitchController) Update(c *gin.Context)

*

  • 更新方法

type TimeController

type TimeController struct {
	BaseController
}

func (*TimeController) Control

func (ctx *TimeController) Control(c *gin.Context)

*

  • 生成定时任务文件

func (*TimeController) Index

func (ctx *TimeController) Index(c *gin.Context)

*

  • 获取首页信息

func (*TimeController) Update

func (ctx *TimeController) Update(c *gin.Context)

*

  • 更新内容

Jump to

Keyboard shortcuts

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