dao

package
v1.1.0 Latest Latest
Warning

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

Go to latest
Published: Dec 28, 2025 License: Apache-2.0 Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type GuestDao

type GuestDao interface {
	// Login login
	Login(username, password string) (bool, int)
	// CheckLogin check login
	CheckLogin()
	// Register register
	Register(username, password string) error
}

GuestDao

type UserDao

type UserDao interface {
	// EditPassword edit password
	EditPassword(oldPassword, newPassword, username string) (bool, error)
	// GetUserInfo get user info
	GetUserInfo(username string) (bool, any, error)
	// GetUserRole get user role
	GetUserRole(username string) (bool, any, error)
	// CheckUserIsAdmin check user is admin
	CheckUserIsAdmin(username string) (bool, error)
}

UserDao

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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