services

package
v0.0.0-...-b06ca14 Latest Latest
Warning

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

Go to latest
Published: Jun 8, 2023 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type InterfaceUrlService

type InterfaceUrlService interface {
	CreateUrl(req *entity.CreateUrlRequest) *entity.CustomError
	GetUrlByShortUrl(shortUrl string) (string, *entity.CustomError)
	GetUrlsByUserId(userId int) ([]*entity.UserUrlResponse, *entity.CustomError)
	GetUrlsByUsername(username string) ([]*entity.UserUrlResponse, *entity.CustomError)
}

type InterfaceUserService

type InterfaceUserService interface {
	CreateUser(req *entity.CreateUserRequest) *entity.CustomError
	Login(req *entity.UserLoginRequest) (*entity.UserLoginResponse, *entity.CustomError)
	UserProfile(userId int) (*entity.UserProfileResponse, *entity.CustomError)
	UserProfileByUsername(username string) (*entity.UserProfileResponse, *entity.CustomError)
	UpdateUserPassword(userId int, req *entity.UpdatePasswordRequest) *entity.CustomError
}

type UrlService

type UrlService struct {
	// contains filtered or unexported fields
}

func (*UrlService) CreateUrl

func (s *UrlService) CreateUrl(req *entity.CreateUrlRequest) *entity.CustomError

func (*UrlService) GetUrlByShortUrl

func (s *UrlService) GetUrlByShortUrl(shortUrl string) (string, *entity.CustomError)

func (*UrlService) GetUrlsByUserId

func (s *UrlService) GetUrlsByUserId(userId int) ([]*entity.UserUrlResponse, *entity.CustomError)

func (*UrlService) GetUrlsByUsername

func (s *UrlService) GetUrlsByUsername(username string) ([]*entity.UserUrlResponse, *entity.CustomError)

type UserService

type UserService struct {
	// contains filtered or unexported fields
}

func (*UserService) CreateUser

func (s *UserService) CreateUser(req *entity.CreateUserRequest) *entity.CustomError

func (*UserService) Login

func (*UserService) UpdateUserPassword

func (s *UserService) UpdateUserPassword(userId int, req *entity.UpdatePasswordRequest) *entity.CustomError

func (*UserService) UserProfile

func (s *UserService) UserProfile(userId int) (*entity.UserProfileResponse, *entity.CustomError)

func (*UserService) UserProfileByUsername

func (s *UserService) UserProfileByUsername(username string) (*entity.UserProfileResponse, *entity.CustomError)

Jump to

Keyboard shortcuts

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