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.
Click to show internal directories.
Click to hide internal directories.