user

package
v0.0.0-...-7cc72ef Latest Latest
Warning

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

Go to latest
Published: Feb 21, 2025 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DBUser

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

func NewDBUser

func NewDBUser(client *gorm.DB, sf *utils.Snowflake) *DBUser

func (*DBUser) CreateStudent

func (c *DBUser) CreateStudent(ctx context.Context, userModel *model.Student) error

func (*DBUser) GetStudentById

func (c *DBUser) GetStudentById(ctx context.Context, stuId string) (bool, *model.Student, error)

func (*DBUser) UpdateStudent

func (c *DBUser) UpdateStudent(ctx context.Context, userModel *model.Student) error

Jump to

Keyboard shortcuts

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