Documentation
¶
Index ¶
- type Store
- func (s *Store) Create(ctx context.Context, newLike like.Like) (like.Like, error)
- func (s *Store) DeleteByID(ctx context.Context, likeID string) error
- func (s *Store) QueryAllByPostID(ctx context.Context, postID string) ([]like.Like, error)
- func (s *Store) QueryAllByUserID(ctx context.Context, userID string) ([]like.Like, error)
- func (s *Store) QueryByID(ctx context.Context, likeID string) (like.Like, error)
- func (s *Store) QueryByUserAndPostID(ctx context.Context, userID string, postID int64) (like.Like, error)
- func (s *Store) Update(ctx context.Context, updatedLike like.Like) (like.Like, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Store ¶
type Store struct {
// contains filtered or unexported fields
}
func (*Store) DeleteByID ¶
DeleteByID removes a Like document by its ID.
func (*Store) QueryAllByPostID ¶
QueryAllByPostID retrieves all Like documents for a specific post.
func (*Store) QueryAllByUserID ¶
QueryAllByUserID retrieves all Like documents for a specific user.
Click to show internal directories.
Click to hide internal directories.