usecase

package
v0.0.0-...-23502e9 Latest Latest
Warning

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

Go to latest
Published: Sep 3, 2024 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewFeedDefaultHandler

func NewFeedDefaultHandler(feedRepo domain.FeedRepository) domain.FeedHandler

func NewFeedFollowHandler

func NewFeedFollowHandler(feedRepo domain.FeedRepository) domain.FeedHandler

func NewFeedLikeHandler

func NewFeedLikeHandler(feedRepo domain.FeedRepository) domain.FeedHandler

func NewFeedPostHandler

func NewFeedPostHandler(feedRepo domain.FeedRepository, relationUsecase domain.RelationUsecase) domain.FeedHandler

Types

type FeedFollowHandler

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

func (*FeedFollowHandler) CreateFeedEvent

func (h *FeedFollowHandler) CreateFeedEvent(c context.Context, t string, content domain.FeedContent) error

CreateFeedEvent need: follower followee

func (*FeedFollowHandler) FindFeedEvent

func (h *FeedFollowHandler) FindFeedEvent(c context.Context, userID, timestamp, limit int64) ([]domain.Feed, error)

type FeedLikeHandler

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

func (*FeedLikeHandler) CreateFeedEvent

func (h *FeedLikeHandler) CreateFeedEvent(c context.Context, t string, content domain.FeedContent) error

CreateFeedEvent need: liker liked biz bizID

func (*FeedLikeHandler) FindFeedEvent

func (h *FeedLikeHandler) FindFeedEvent(c context.Context, userID, timestamp, limit int64) ([]domain.Feed, error)

type FeedPostHandler

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

func (*FeedPostHandler) CreateFeedEvent

func (h *FeedPostHandler) CreateFeedEvent(c context.Context, t string, content domain.FeedContent) error

CreateFeedEvent need: user_id

func (*FeedPostHandler) FindFeedEvent

func (h *FeedPostHandler) FindFeedEvent(c context.Context, userID, timestamp, limit int64) ([]domain.Feed, error)

Jump to

Keyboard shortcuts

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