package
Version:
v0.0.142
Opens a new window with list of versions in this module.
Published: Jul 10, 2025
License: MIT
Opens a new window with license information.
Imports: 16
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
验证用户名和密码
1、从cfg中获取用户名,先判断是不是admin,是进行密码比对.必须启用临时管理员配置才进行这一步
2、从DB中获取用户名密码
type LoginRequest struct {
Username string `json:"username" binding:"required"`
Password string `json:"password" binding:"required"`
LoginType int `json:"loginType"`
Code string `json:"code"`
}
LoginRequest 用户结构体
Source Files
¶
Click to show internal directories.
Click to hide internal directories.