Documentation ¶
Index ¶
- type IPostLikeService
- type PostLikeService
- func (s *PostLikeService) Add(ctx context.Context, postLike domain.PostLike) (string, error)
- func (s *PostLikeService) DeleteById(ctx context.Context, id string) error
- func (s *PostLikeService) FindLikeCountToday(ctx context.Context) (int64, error)
- func (s *PostLikeService) GetLikeStatus(ctx context.Context, postId string, ip string) (bool, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type IPostLikeService ¶
type PostLikeService ¶
type PostLikeService struct {
// contains filtered or unexported fields
}
func NewPostLikeService ¶
func NewPostLikeService(repo repository.IPostLikeRepository) *PostLikeService
func (*PostLikeService) DeleteById ¶
func (s *PostLikeService) DeleteById(ctx context.Context, id string) error
func (*PostLikeService) FindLikeCountToday ¶
func (s *PostLikeService) FindLikeCountToday(ctx context.Context) (int64, error)
func (*PostLikeService) GetLikeStatus ¶
Click to show internal directories.
Click to hide internal directories.