usecase

package
v0.0.0-...-54354b8 Latest Latest
Warning

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

Go to latest
Published: Nov 19, 2024 License: MIT Imports: 18 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AdminUseCase

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

func NewAdminUseCase

func NewAdminUseCase(repo *repo.AdminRepository, userRepo repo.UserRepositoryInterface) *AdminUseCase

func (*AdminUseCase) BlockUser

func (uc *AdminUseCase) BlockUser(ctx context.Context, req *req.UserId) *res.CommonRes

func (*AdminUseCase) GetUser

func (uc *AdminUseCase) GetUser(ctx context.Context, req *req.UserId) *res.CommonRes

func (*AdminUseCase) Login

func (*AdminUseCase) UnblockUser

func (uc *AdminUseCase) UnblockUser(ctx context.Context, req *req.UserId) *res.CommonRes

type ChatUseCase

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

func NewChatUseCase

func NewChatUseCase(chatRepo repo.ChatRepositoryInterface) *ChatUseCase

func (*ChatUseCase) SaveMessage

func (uc *ChatUseCase) SaveMessage(ctx context.Context, req *req.SendChatReq) *res.CommonRes

type CommentUseCase

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

func NewCommentUseCase

func NewCommentUseCase(commentRepo *repo.CommentRepository, contentRepo *repo.ContentRepository) *CommentUseCase

func (*CommentUseCase) CreateComment

func (uc *CommentUseCase) CreateComment(ctx context.Context, req *req.CreateCommentReq) *res.CommonRes

func (*CommentUseCase) DeleteComment

func (uc *CommentUseCase) DeleteComment(ctx context.Context, req *req.DeleteCommentReq) *res.CommonRes

func (*CommentUseCase) GetCommentsByPostId

func (uc *CommentUseCase) GetCommentsByPostId(ctx context.Context, req *req.GetCommentsReq) *res.GetCommentsRes

type PostUseCase

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

func NewPostUseCase

func NewPostUseCase(postRepo *repo.PostRepository, contentRepo *repo.ContentRepository) *PostUseCase

func (*PostUseCase) CreatePost

func (uc *PostUseCase) CreatePost(ctx context.Context, req *req.CreatePostReq) *res.CommonRes

func (*PostUseCase) GetAllPosts

func (uc *PostUseCase) GetAllPosts(ctx context.Context) *res.GetAllPostsRes

func (*PostUseCase) LikePost

func (uc *PostUseCase) LikePost(ctx context.Context, req *req.LikeUnlikePostReq) *res.CommonRes

func (*PostUseCase) UnlikePost

func (uc *PostUseCase) UnlikePost(ctx context.Context, req *req.LikeUnlikePostReq) *res.CommonRes

type UserUseCase

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

func NewUserUseCase

func NewUserUseCase(repo repo.UserRepositoryInterface) *UserUseCase

func (*UserUseCase) FollowUser

func (uc *UserUseCase) FollowUser(ctx context.Context, req *req.FollowUnfollowUserReq) *res.CommonRes

func (*UserUseCase) GetFollowers

func (uc *UserUseCase) GetFollowers(ctx context.Context, req *req.UserId) *res.UserProfileRes

func (*UserUseCase) GetFollowing

func (uc *UserUseCase) GetFollowing(ctx context.Context, req *req.UserId) *res.UserProfileRes

func (*UserUseCase) Login

func (uc *UserUseCase) Login(ctx context.Context, req *req.LoginReq) *res.LoginRes

func (*UserUseCase) SignUp

func (uc *UserUseCase) SignUp(ctx context.Context, req *req.SignUpReq) *res.SignUpRes

func (*UserUseCase) UnfollowUser

func (uc *UserUseCase) UnfollowUser(ctx context.Context, req *req.FollowUnfollowUserReq) *res.CommonRes

func (*UserUseCase) VerifyOtp

func (uc *UserUseCase) VerifyOtp(ctx context.Context, req *req.VerifyOtp) *res.CommonRes

Jump to

Keyboard shortcuts

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