Documentation ¶
Index ¶
- type AuthMongoRepo
- type TAuthSecret
- type UserMongoRepo
- func (umr *UserMongoRepo) CreateUser(ctx context.Context, userPayload model.TCreateUserQuery) error
- func (umr *UserMongoRepo) DeleteUser(ctx context.Context, uid string) error
- func (umr *UserMongoRepo) GetUser(ctx context.Context, uid string) (result model.TGetUserResp, err error)
- func (umr *UserMongoRepo) GetUserLoginInfo(ctx context.Context, loginReq model.TLoginReq, userResult *model.TUser) (err error)
- func (umr *UserMongoRepo) UpdateUser(ctx context.Context, uid string, profile model.TUpdateUserReq) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AuthMongoRepo ¶
type AuthMongoRepo struct {
// contains filtered or unexported fields
}
func NewAuthRepo ¶
func NewAuthRepo(client *mongo.Client) *AuthMongoRepo
func (*AuthMongoRepo) GetUserAccountSecret ¶
func (amr *AuthMongoRepo) GetUserAccountSecret(ctx context.Context) (result string, err error)
func (*AuthMongoRepo) GetUserPasswordSecret ¶
func (amr *AuthMongoRepo) GetUserPasswordSecret(ctx context.Context) (result string, err error)
type TAuthSecret ¶
type UserMongoRepo ¶
type UserMongoRepo struct {
// contains filtered or unexported fields
}
func NewUserRepo ¶
func NewUserRepo(client *mongo.Client) *UserMongoRepo
func (*UserMongoRepo) CreateUser ¶
func (umr *UserMongoRepo) CreateUser(ctx context.Context, userPayload model.TCreateUserQuery) error
func (*UserMongoRepo) DeleteUser ¶
func (umr *UserMongoRepo) DeleteUser(ctx context.Context, uid string) error
func (*UserMongoRepo) GetUser ¶
func (umr *UserMongoRepo) GetUser(ctx context.Context, uid string) (result model.TGetUserResp, err error)
func (*UserMongoRepo) GetUserLoginInfo ¶
func (*UserMongoRepo) UpdateUser ¶
func (umr *UserMongoRepo) UpdateUser(ctx context.Context, uid string, profile model.TUpdateUserReq) error
Click to show internal directories.
Click to hide internal directories.