likerpc

package
v1.1.8 Latest Latest
Warning

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

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

Documentation

Index

Constants

View Source
const (
	TargetTypePost     = 1
	TargetTypeComment  = 2
	TargetTypeCat      = 3
	TargetTypeMoment   = 4
	TargetTypeCatPhoto = 5
	TargetTypeUser     = 6
)

Variables

This section is empty.

Functions

This section is empty.

Types

type AddCatPopularityReq

type AddCatPopularityReq = pb.AddCatPopularityReq

type AddCatPopularityResp

type AddCatPopularityResp = pb.AddCatPopularityResp

type AddScoreReq

type AddScoreReq = pb.AddScoreReq

type AddScoreResp

type AddScoreResp = pb.AddScoreResp

type CatPop

type CatPop = pb.CatPop

type DailyUpdateReq

type DailyUpdateReq = pb.DailyUpdateReq

type DailyUpdateResp

type DailyUpdateResp = pb.DailyUpdateResp

type DoLikeReq

type DoLikeReq = pb.DoLikeReq

type DoLikeResp

type DoLikeResp = pb.DoLikeResp

type GetLikedUsersReq

type GetLikedUsersReq = pb.GetLikedUsersReq

type GetLikedUsersResp

type GetLikedUsersResp = pb.GetLikedUsersResp

type GetTargetLikesReq

type GetTargetLikesReq = pb.GetTargetLikesReq

type GetTargetLikesResp

type GetTargetLikesResp = pb.GetTargetLikesResp

type GetTopKReq

type GetTopKReq = pb.GetTopKReq

type GetTopKResp

type GetTopKResp = pb.GetTopKResp

type GetUserLikedReq

type GetUserLikedReq = pb.GetUserLikedReq

type GetUserLikedResp

type GetUserLikedResp = pb.GetUserLikedResp

type GetUserLikesReq

type GetUserLikesReq = pb.GetUserLikesReq

type GetUserLikesResp

type GetUserLikesResp = pb.GetUserLikesResp

type ItemScore

type ItemScore = pb.ItemScore

type Like

type Like = pb.Like

type Likerpc

type Likerpc 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 NewLikerpc

func NewLikerpc(cli zrpc.Client) Likerpc

type ListCatPopularityReq

type ListCatPopularityReq = pb.ListCatPopularityReq

type ListCatPopularityResp

type ListCatPopularityResp = pb.ListCatPopularityResp

type ListTopCatReq

type ListTopCatReq = pb.ListTopCatReq

type ListTopCatResp

type ListTopCatResp = pb.ListTopCatResp

Jump to

Keyboard shortcuts

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