Documentation ¶
Index ¶
- type CommentController
- type CommentControllerImpl
- type PhotoController
- type PhotoControllerImpl
- type SocialMediaController
- type SocialMediaControllerImpl
- func (socialMediaController *SocialMediaControllerImpl) Create(ctx *gin.Context)
- func (socialMediaController *SocialMediaControllerImpl) Delete(ctx *gin.Context)
- func (socialMediaController *SocialMediaControllerImpl) GetAll(ctx *gin.Context)
- func (socialMediaController *SocialMediaControllerImpl) Update(ctx *gin.Context)
- type UserController
- type UserControllerImpl
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CommentController ¶
type CommentController interface { Create(ctx *gin.Context) GetAll(ctx *gin.Context) Update(ctx *gin.Context) Delete(ctx *gin.Context) }
func NewCommentController ¶
func NewCommentController(commentService service.CommentService, photoService service.PhotoService) CommentController
type CommentControllerImpl ¶
type CommentControllerImpl struct { CommentService service.CommentService PhotoService service.PhotoService }
func (*CommentControllerImpl) Create ¶
func (commentController *CommentControllerImpl) Create(ctx *gin.Context)
func (*CommentControllerImpl) Delete ¶
func (commentController *CommentControllerImpl) Delete(ctx *gin.Context)
func (*CommentControllerImpl) GetAll ¶
func (commentController *CommentControllerImpl) GetAll(ctx *gin.Context)
func (*CommentControllerImpl) Update ¶
func (commentController *CommentControllerImpl) Update(ctx *gin.Context)
type PhotoController ¶
type PhotoController interface { Create(ctx *gin.Context) GetAll(ctx *gin.Context) Update(ctx *gin.Context) Delete(ctx *gin.Context) }
func NewPhotoController ¶
func NewPhotoController(photoService service.PhotoService) PhotoController
type PhotoControllerImpl ¶
type PhotoControllerImpl struct {
PhotoService service.PhotoService
}
func (*PhotoControllerImpl) Create ¶
func (photoController *PhotoControllerImpl) Create(ctx *gin.Context)
func (*PhotoControllerImpl) Delete ¶
func (photoController *PhotoControllerImpl) Delete(ctx *gin.Context)
func (*PhotoControllerImpl) GetAll ¶
func (photoController *PhotoControllerImpl) GetAll(ctx *gin.Context)
func (*PhotoControllerImpl) Update ¶
func (photoController *PhotoControllerImpl) Update(ctx *gin.Context)
type SocialMediaController ¶
type SocialMediaController interface { Create(ctx *gin.Context) GetAll(ctx *gin.Context) Update(ctx *gin.Context) Delete(ctx *gin.Context) }
func NewSocialMediaController ¶
func NewSocialMediaController(socialMediaService service.SocialMediaService) SocialMediaController
type SocialMediaControllerImpl ¶
type SocialMediaControllerImpl struct {
SocialMediaService service.SocialMediaService
}
func (*SocialMediaControllerImpl) Create ¶
func (socialMediaController *SocialMediaControllerImpl) Create(ctx *gin.Context)
func (*SocialMediaControllerImpl) Delete ¶
func (socialMediaController *SocialMediaControllerImpl) Delete(ctx *gin.Context)
func (*SocialMediaControllerImpl) GetAll ¶
func (socialMediaController *SocialMediaControllerImpl) GetAll(ctx *gin.Context)
func (*SocialMediaControllerImpl) Update ¶
func (socialMediaController *SocialMediaControllerImpl) Update(ctx *gin.Context)
type UserController ¶
type UserController interface { Register(ctx *gin.Context) Login(ctx *gin.Context) Update(ctx *gin.Context) Delete(ctx *gin.Context) }
func NewUserController ¶
func NewUserController(userService service.UserService) UserController
type UserControllerImpl ¶
type UserControllerImpl struct {
UserService service.UserService
}
func (*UserControllerImpl) Delete ¶
func (userController *UserControllerImpl) Delete(ctx *gin.Context)
func (*UserControllerImpl) Login ¶
func (userController *UserControllerImpl) Login(ctx *gin.Context)
func (*UserControllerImpl) Register ¶
func (userController *UserControllerImpl) Register(ctx *gin.Context)
func (*UserControllerImpl) Update ¶
func (userController *UserControllerImpl) Update(ctx *gin.Context)
Click to show internal directories.
Click to hide internal directories.