services

package
v0.0.0-...-19cc336 Latest Latest
Warning

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

Go to latest
Published: Jul 1, 2023 License: AGPL-3.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type HomeService

type HomeService struct{}

func (*HomeService) Root

func (s *HomeService) Root() string

GetStartTime returns the current time as a string

type UserService

type UserService interface {
	CreateUser(ctx *gin.Context, userCreate *dto.UserCreateDto) (entities.UserEntity, []error)
	GetUsers(ctx *gin.Context, page, limits uint) ([]*entities.UserEntity, error)
	GetUserByID(ctx *gin.Context, userID uint) (entities.UserEntity, error)
	UpdateUserByID(ctx *gin.Context, userID uint, userUpdate *dto.UserUpdateDto) (entities.UserEntity, []error)
	DeleteUserByID(ctx *gin.Context, userID uint) error
	Login(ctx *gin.Context, userLogin *dto.UserLoginDto) (string, error)
}

func NewUserService

func NewUserService(userRepository repositories.UserRepository) UserService

NewUserService returns a new instance of UserService.

Jump to

Keyboard shortcuts

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