service

package
v0.0.0-...-35f6f21 Latest Latest
Warning

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

Go to latest
Published: May 19, 2024 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type IPostLikeService

type IPostLikeService interface {
	Add(ctx context.Context, postLike domain.PostLike) (string, error)
	DeleteById(ctx context.Context, id string) error
	GetLikeStatus(ctx context.Context, id string, ip string) (bool, error)
	FindLikeCountToday(ctx context.Context) (int64, error)
}

type PostLikeService

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

func (*PostLikeService) Add

func (s *PostLikeService) Add(ctx context.Context, postLike domain.PostLike) (string, error)

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

func (s *PostLikeService) GetLikeStatus(ctx context.Context, postId string, ip string) (bool, error)

Jump to

Keyboard shortcuts

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