like

package
v1.1.5 Latest Latest
Warning

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

Go to latest
Published: Apr 22, 2023 License: GPL-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
const (
	TargetTypePost    = 1
	TargetTypeComment = 2
	TargetTypeCat     = 3
	TargetTypeMoment  = 4
)

Variables

This section is empty.

Functions

This section is empty.

Types

type AddCatPopularityReq added in v1.1.3

type AddCatPopularityReq = pb.AddCatPopularityReq

type AddCatPopularityResp added in v1.1.3

type AddCatPopularityResp = pb.AddCatPopularityResp

type AddScoreReq added in v1.1.3

type AddScoreReq = pb.AddScoreReq

type AddScoreResp added in v1.1.3

type AddScoreResp = pb.AddScoreResp

type CatPop added in v1.1.3

type CatPop = pb.CatPop

type DailyUpdateReq added in v1.1.3

type DailyUpdateReq = pb.DailyUpdateReq

type DailyUpdateResp added in v1.1.3

type DailyUpdateResp = pb.DailyUpdateResp

type DoLikeReq

type DoLikeReq = pb.DoLikeReq

type DoLikeResp

type DoLikeResp = pb.DoLikeResp

type GetLikedUsersReq added in v1.1.5

type GetLikedUsersReq = pb.GetLikedUsersReq

type GetLikedUsersResp added in v1.1.5

type GetLikedUsersResp = pb.GetLikedUsersResp

type GetTargetLikesReq

type GetTargetLikesReq = pb.GetTargetLikesReq

type GetTargetLikesResp

type GetTargetLikesResp = pb.GetTargetLikesResp

type GetTopKReq added in v1.1.3

type GetTopKReq = pb.GetTopKReq

type GetTopKResp added in v1.1.3

type GetTopKResp = pb.GetTopKResp

type GetUserLikedReq

type GetUserLikedReq = pb.GetUserLikedReq

type GetUserLikedResp

type GetUserLikedResp = pb.GetUserLikedResp

type GetUserLikesReq added in v1.1.5

type GetUserLikesReq = pb.GetUserLikesReq

type GetUserLikesResp added in v1.1.5

type GetUserLikesResp = pb.GetUserLikesResp

type ItemScore added in v1.1.3

type ItemScore = pb.ItemScore

type Like

type Like interface {
	// 点赞/取消赞
	DoLike(ctx context.Context, in *DoLikeReq, opts ...grpc.CallOption) (*DoLikeResp, error)
	// 获取用户是否点赞
	GetUserLike(ctx context.Context, in *GetUserLikedReq, opts ...grpc.CallOption) (*GetUserLikedResp, error)
	// 获取目标点赞数
	GetTargetLikes(ctx context.Context, in *GetTargetLikesReq, opts ...grpc.CallOption) (*GetTargetLikesResp, error)
	// 查看用户点赞列表
	GetUserLikes(ctx context.Context, in *GetUserLikesReq, opts ...grpc.CallOption) (*GetUserLikesResp, error)
	// 查看喜欢某个东西的用户
	GetLikedUsers(ctx context.Context, in *GetLikedUsersReq, opts ...grpc.CallOption) (*GetLikedUsersResp, error)
	GetTopK(ctx context.Context, in *GetTopKReq, opts ...grpc.CallOption) (*GetTopKResp, error)
	AddScore(ctx context.Context, in *AddScoreReq, opts ...grpc.CallOption) (*AddScoreResp, error)
	DailyUpdate(ctx context.Context, in *DailyUpdateReq, opts ...grpc.CallOption) (*DailyUpdateResp, error)
	// popularity
	ListCatPopularity(ctx context.Context, in *ListCatPopularityReq, opts ...grpc.CallOption) (*ListCatPopularityResp, error)
	AddCatPopularity(ctx context.Context, in *AddCatPopularityReq, opts ...grpc.CallOption) (*AddCatPopularityResp, error)
	ListTopCat(ctx context.Context, in *ListTopCatReq, opts ...grpc.CallOption) (*ListTopCatResp, error)
}

func NewLike

func NewLike(cli zrpc.Client) Like

type ListCatPopularityReq added in v1.1.3

type ListCatPopularityReq = pb.ListCatPopularityReq

type ListCatPopularityResp added in v1.1.3

type ListCatPopularityResp = pb.ListCatPopularityResp

type ListTopCatReq added in v1.1.3

type ListTopCatReq = pb.ListTopCatReq

type ListTopCatResp added in v1.1.3

type ListTopCatResp = pb.ListTopCatResp

Jump to

Keyboard shortcuts

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