Documentation ¶
Index ¶
- type IUserRepo
- type UserRepo
- func (r *UserRepo) FindByAccountID(ctx context.Context, tx *query.Query, accountID int64) (*model.User, error)
- func (r *UserRepo) FindByID(ctx context.Context, tx *query.Query, userID int64) (*model.User, error)
- func (r *UserRepo) FindByIds(ctx context.Context, tx *query.Query, ids []int64) ([]*model.User, error)
- func (r *UserRepo) Save(ctx context.Context, tx *query.Query, u *model.User) error
- func (r *UserRepo) UpdateById(ctx context.Context, tx *query.Query, u *model.User) (int64, error)
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) }
Click to show internal directories.
Click to hide internal directories.