userdata

package
v0.1.11 Latest Latest
Warning

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

Go to latest
Published: Oct 17, 2024 License: GPL-3.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type IUserRepo

type IUserRepo interface {
	Save(ctx context.Context, tx *query.Query, u *model.User) error
	UpdateById(ctx context.Context, tx *query.Query, u *model.User) (int64, error)
	FindByID(ctx context.Context, tx *query.Query, id int64) (*model.User, error)
	FindByAccountID(ctx context.Context, tx *query.Query, accountID int64) (*model.User, error)
	FindByIds(ctx context.Context, tx *query.Query, ids []int64) ([]*model.User, error)
}

type UserRepo

type UserRepo struct {
}

func NewUserRepo

func NewUserRepo() *UserRepo

NewUserRepo .

func (*UserRepo) FindByAccountID

func (r *UserRepo) FindByAccountID(ctx context.Context, tx *query.Query, accountID int64) (*model.User, error)

func (*UserRepo) FindByID

func (r *UserRepo) FindByID(ctx context.Context, tx *query.Query, userID int64) (*model.User, error)

func (*UserRepo) FindByIds

func (r *UserRepo) FindByIds(ctx context.Context, tx *query.Query, ids []int64) ([]*model.User, error)

func (*UserRepo) Save

func (r *UserRepo) Save(ctx context.Context, tx *query.Query, u *model.User) error

func (*UserRepo) UpdateById

func (r *UserRepo) UpdateById(ctx context.Context, tx *query.Query, u *model.User) (int64, error)

Jump to

Keyboard shortcuts

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