impl

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: 6 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 struct {
	// contains filtered or unexported fields
}

func NewGuestDao

func NewGuestDao() *GuestDao

TODO

func (*GuestDao) CheckLogin

func (d *GuestDao) CheckLogin()

func (*GuestDao) Create

func (d *GuestDao) Create(db *SQL.DB) (any, error)

func (*GuestDao) Login

func (d *GuestDao) Login(username, password string) (bool, int)

func (*GuestDao) Register

func (d *GuestDao) Register(username, password string) error

type UserDao

type UserDao struct {
	// contains filtered or unexported fields
}

func NewUserDao

func NewUserDao() *UserDao

func (*UserDao) CheckUserIsAdmin

func (d *UserDao) CheckUserIsAdmin(username string) (bool, error)

func (*UserDao) Create

func (d *UserDao) Create(db *sql.DB) (any, error)

func (*UserDao) EditPassword

func (d *UserDao) EditPassword(oldPassword, newPassword, username string) (bool, error)

func (*UserDao) GetUserInfo

func (d *UserDao) GetUserInfo(username string) (bool, any, error)

func (*UserDao) GetUserRole

func (d *UserDao) GetUserRole(username string) (bool, any, error)

Jump to

Keyboard shortcuts

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