Documentation ¶
Index ¶
- func NewUser(db *gorm.DB, uc cache.User) repository.User
- type UserImpl
- func (u *UserImpl) Create(ctx context.Context, data *dto.CreateReq) error
- func (u *UserImpl) FindByFields(ctx context.Context, fields *entity.User) (*entity.User, error)
- func (u *UserImpl) SetNullRefreshToken(ctx context.Context, refreshToken string) error
- func (u *UserImpl) UpdateByEmail(ctx context.Context, data *entity.User) (*entity.User, error)
- func (u *UserImpl) UpdateEmail(ctx context.Context, email string, newEmail string) (*entity.User, error)
- func (u *UserImpl) Upsert(ctx context.Context, data *dto.UpsertReq) (*entity.User, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type UserImpl ¶
type UserImpl struct {
// contains filtered or unexported fields
}
func (*UserImpl) FindByFields ¶
func (*UserImpl) SetNullRefreshToken ¶
func (*UserImpl) UpdateByEmail ¶
func (*UserImpl) UpdateEmail ¶
Click to show internal directories.
Click to hide internal directories.