login

package
v0.0.38 Latest Latest
Warning

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

Go to latest
Published: Feb 11, 2025 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AesDecrypt added in v0.0.28

func AesDecrypt(ciphertextBase64 string) ([]byte, error)

AesDecrypt 解密

func AesEncrypt added in v0.0.28

func AesEncrypt(data []byte) ([]byte, error)

AesEncrypt 加密

func LoginByPassword

func LoginByPassword(c *gin.Context)

Types

type LoginRequest

type LoginRequest struct {
	Username string `json:"username" binding:"required"`
	Password string `json:"password" binding:"required"`
}

LoginRequest 用户结构体

Jump to

Keyboard shortcuts

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