dao

package
v0.0.0-...-8d65813 Latest Latest
Warning

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

Go to latest
Published: Dec 23, 2023 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateUser

func CreateUser(user *table.User) (err error)

func DB

func DB() *gorm.DB

func DeleteUserById

func DeleteUserById(userId int64) (err error)

func GetAllUsers

func GetAllUsers() (users []*table.User, err error)

func GetUserById

func GetUserById(userId int64) (user *table.User, err error)

func GetUserByNameAndPassword

func GetUserByNameAndPassword(name, password string) (user *table.User, err error)

func UpdateUserNameById

func UpdateUserNameById(userName string, userId int64) (err error)

Types

This section is empty.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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