controller

package
v0.0.0-...-fae7c5d Latest Latest
Warning

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

Go to latest
Published: Mar 24, 2025 License: MIT Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateUser

func CreateUser(c *gin.Context)

func DeleteSelf

func DeleteSelf(c *gin.Context)

func DeleteUser

func DeleteUser(c *gin.Context)

func EmailBind

func EmailBind(c *gin.Context)

func GenerateAccessToken

func GenerateAccessToken(c *gin.Context)

func GetAbout

func GetAbout(c *gin.Context)

func GetAffCode

func GetAffCode(c *gin.Context)

func GetAllUsers

func GetAllUsers(c *gin.Context)

func GetHomePageContent

func GetHomePageContent(c *gin.Context)

func GetNotice

func GetNotice(c *gin.Context)

func GetOptions

func GetOptions(c *gin.Context)

func GetSelf

func GetSelf(c *gin.Context)

func GetStatus

func GetStatus(c *gin.Context)

func GetUser

func GetUser(c *gin.Context)

func GetUserDashboard

func GetUserDashboard(c *gin.Context)

func Login

func Login(c *gin.Context)

func Logout

func Logout(c *gin.Context)

func ManageUser

func ManageUser(c *gin.Context)

ManageUser Only admin user can do this

func Register

func Register(c *gin.Context)

func RelayNotFound

func RelayNotFound(c *gin.Context)

func ResetPassword

func ResetPassword(c *gin.Context)

func SearchUsers

func SearchUsers(c *gin.Context)

func SendEmailVerification

func SendEmailVerification(c *gin.Context)

func SendPasswordResetEmail

func SendPasswordResetEmail(c *gin.Context)

func SetupLogin

func SetupLogin(user *model.User, c *gin.Context)

setup session & cookies and then return user info

func UpdateOption

func UpdateOption(c *gin.Context)

func UpdateSelf

func UpdateSelf(c *gin.Context)

func UpdateUser

func UpdateUser(c *gin.Context)

Types

type LoginRequest

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

type PasswordResetRequest

type PasswordResetRequest struct {
	Email string `json:"email"`
	Token string `json:"token"`
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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