service

package
v0.0.0-...-0ba1934 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 12, 2024 License: MIT Imports: 4 Imported by: 0

Documentation

Index

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) Create

func (s *UserService) Create(ctx context.Context, userId int, username, phone, email string) (string, error)

func (*UserService) Profile

func (s *UserService) Profile(ctx context.Context, userId int) (models.User, error)

func (*UserService) Update

func (s *UserService) Update(ctx context.Context, userId int, username, phone, email string) (string, error)

func (*UserService) UpdateGymID

func (s *UserService) UpdateGymID(ctx context.Context, userId int, gymId int) (string, error)

func (*UserService) UpdateSubLvl

func (s *UserService) UpdateSubLvl(ctx context.Context, userId int, level int) (string, error)

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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL