validation

package
v0.0.0-...-d265e2e Latest Latest
Warning

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

Go to latest
Published: Jun 23, 2024 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ValidateCreateComment

func ValidateCreateComment(input dto.RequestComment) error

func ValidateCreatePhoto

func ValidateCreatePhoto(input dto.RequestPhoto) error

func ValidateCreateSocialMedia

func ValidateCreateSocialMedia(input dto.RequestSocialMedia) error

func ValidateIsEmailExist

func ValidateIsEmailExist(email string, r repository.UserRepository) error

func ValidateIsPhotoExist

func ValidateIsPhotoExist(photoID string, r repository.PhotoRepository) error

func ValidateIsSocialMediaExist

func ValidateIsSocialMediaExist(socialmediaID string, r repository.SocialMediaRepository) error

func ValidateIsUsernameExist

func ValidateIsUsernameExist(username string, r repository.UserRepository) error

func ValidateUpdatePhoto

func ValidateUpdatePhoto(input dto.RequestPhoto, r repository.PhotoRepository) error

func ValidateUserCreate

func ValidateUserCreate(input dto.RequestRegister, r repository.UserRepository) error

func ValidateUserLogin

func ValidateUserLogin(input dto.RequestLogin) error

Types

This section is empty.

Jump to

Keyboard shortcuts

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