admin

package
v1.0.10 Latest Latest
Warning

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

Go to latest
Published: Aug 2, 2021 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AdminLogin

func AdminLogin(c *gin.Context)

AdminLogin 使用用户名和密码登录 用户名和密码将会和配置文件内的进行比对

func AdminLogout

func AdminLogout(c *gin.Context)

AdminLogout 告知前端清空全部cookie 清空cookie的操作交给前端 后台只需响应

Types

type LoginData

type LoginData struct {
	Name   string `json:"name"`
	Passwd string `json:"passwd"`
}

Jump to

Keyboard shortcuts

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