Documentation ¶
Index ¶
- type UserService
- func (s *UserService) Create(ctx context.Context, userId int, username, phone, email string) (string, error)
- func (s *UserService) Profile(ctx context.Context, userId int) (models.User, error)
- func (s *UserService) Update(ctx context.Context, userId int, username, phone, email string) (string, error)
- func (s *UserService) UpdateGymID(ctx context.Context, userId int, gymId int) (string, error)
- func (s *UserService) UpdateSubLvl(ctx context.Context, userId int, level int) (string, error)
- type Userer
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type UserService ¶
type UserService struct {
// contains filtered or unexported fields
}
func (*UserService) UpdateGymID ¶
func (*UserService) UpdateSubLvl ¶
type Userer ¶
type Userer interface { Create(ctx context.Context, userId int, username, phone, email string) (string, error) Profile(ctx context.Context, userId int) (models.User, error) Update(ctx context.Context, userId int, username, phone, email string) (string, error) UpdateSubLvl(ctx context.Context, userId int, level int) (string, error) UpdateGymID(ctx context.Context, userId int, gymId int) (string, error) }
func NewUserService ¶
func NewUserService(repo repository.UsererRepository, log *zap.Logger) Userer
Click to show internal directories.
Click to hide internal directories.