Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewService ¶
func NewService(ac appctx.AppContext, business UserLikeItemBusiness) *service
Types ¶
type UserLikeItemBusiness ¶
type UserLikeItemBusiness interface { LikeItem(ctx context.Context, data *entity.Like) error UnlikeItem(ctx context.Context, userID, itemID int) error ListUsersLikedItem(ctx context.Context, itemID int, paging *core.Paging) ([]core.SimpleUser, error) GetItemLikes(ctx context.Context, ids []int) (map[int]int, error) }
Click to show internal directories.
Click to hide internal directories.