Documentation ¶
Index ¶
- type AdminUseCase
- func (uc *AdminUseCase) BlockUser(ctx context.Context, req *req.UserId) *res.CommonRes
- func (uc *AdminUseCase) GetUser(ctx context.Context, req *req.UserId) *res.CommonRes
- func (uc *AdminUseCase) Login(ctx context.Context, req *req.AdminLoginReq) *res.AdminLoginRes
- func (uc *AdminUseCase) UnblockUser(ctx context.Context, req *req.UserId) *res.CommonRes
- type ChatUseCase
- type CommentUseCase
- func (uc *CommentUseCase) CreateComment(ctx context.Context, req *req.CreateCommentReq) *res.CommonRes
- func (uc *CommentUseCase) DeleteComment(ctx context.Context, req *req.DeleteCommentReq) *res.CommonRes
- func (uc *CommentUseCase) GetCommentsByPostId(ctx context.Context, req *req.GetCommentsReq) *res.GetCommentsRes
- type PostUseCase
- func (uc *PostUseCase) CreatePost(ctx context.Context, req *req.CreatePostReq) *res.CommonRes
- func (uc *PostUseCase) GetAllPosts(ctx context.Context) *res.GetAllPostsRes
- func (uc *PostUseCase) LikePost(ctx context.Context, req *req.LikeUnlikePostReq) *res.CommonRes
- func (uc *PostUseCase) UnlikePost(ctx context.Context, req *req.LikeUnlikePostReq) *res.CommonRes
- type UserUseCase
- func (uc *UserUseCase) FollowUser(ctx context.Context, req *req.FollowUnfollowUserReq) *res.CommonRes
- func (uc *UserUseCase) GetFollowers(ctx context.Context, req *req.UserId) *res.UserProfileRes
- func (uc *UserUseCase) GetFollowing(ctx context.Context, req *req.UserId) *res.UserProfileRes
- func (uc *UserUseCase) Login(ctx context.Context, req *req.LoginReq) *res.LoginRes
- func (uc *UserUseCase) SignUp(ctx context.Context, req *req.SignUpReq) *res.SignUpRes
- func (uc *UserUseCase) UnfollowUser(ctx context.Context, req *req.FollowUnfollowUserReq) *res.CommonRes
- func (uc *UserUseCase) VerifyOtp(ctx context.Context, req *req.VerifyOtp) *res.CommonRes
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) Login ¶
func (uc *AdminUseCase) Login(ctx context.Context, req *req.AdminLoginReq) *res.AdminLoginRes
func (*AdminUseCase) UnblockUser ¶
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) UnfollowUser ¶
func (uc *UserUseCase) UnfollowUser(ctx context.Context, req *req.FollowUnfollowUserReq) *res.CommonRes
Click to show internal directories.
Click to hide internal directories.