rpc

package
v0.0.0-...-422268b Latest Latest
Warning

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

Go to latest
Published: Jul 11, 2023 License: MIT Imports: 5 Imported by: 0

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)
}

Jump to

Keyboard shortcuts

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