Documentation ¶
Index ¶
- Variables
- func NewEntClient(cfg *conf.Bootstrap, logger log.Logger) *entgo.Client[*ent.Client]
- func NewRedisClient(cfg *conf.Bootstrap, _ log.Logger) *redis.Client
- type Data
- type UserRepo
- func (r *UserRepo) Count(ctx context.Context, whereCond []func(s *sql.Selector)) (int, error)
- func (r *UserRepo) Create(ctx context.Context, req *userv1.CreateUserRequest) (*userv1.User, error)
- func (r *UserRepo) Delete(ctx context.Context, req *userv1.DeleteUserRequest) (bool, error)
- func (r *UserRepo) Get(ctx context.Context, req *userv1.GetUserRequest) (*userv1.User, error)
- func (r *UserRepo) GetUserByUserName(ctx context.Context, userName string) (*userv1.User, error)
- func (r *UserRepo) List(ctx context.Context, req *commonv1.PagingRequest) (*userv1.ListUserResponse, error)
- func (r *UserRepo) Update(ctx context.Context, req *userv1.UpdateUserRequest) (*userv1.User, error)
- func (r *UserRepo) VerifyPassword(ctx context.Context, req *userv1.VerifyPasswordRequest) (bool, error)
Constants ¶
This section is empty.
Variables ¶
View Source
var ProviderSet = wire.NewSet( NewData, NewEntClient, NewRedisClient, NewUserRepo, )
Functions ¶
func NewEntClient ¶
NewEntClient Create Ent ORM database client
Types ¶
type UserRepo ¶
type UserRepo struct {
// contains filtered or unexported fields
}
func (*UserRepo) GetUserByUserName ¶
func (*UserRepo) List ¶
func (r *UserRepo) List(ctx context.Context, req *commonv1.PagingRequest) (*userv1.ListUserResponse, error)
func (*UserRepo) VerifyPassword ¶
Click to show internal directories.
Click to hide internal directories.