Documentation ¶
Index ¶
- Constants
- type AddCatPopularityReq
- type AddCatPopularityResp
- type AddScoreReq
- type AddScoreResp
- type CatPop
- type DailyUpdateReq
- type DailyUpdateResp
- type DoLikeReq
- type DoLikeResp
- type GetLikedUsersReq
- type GetLikedUsersResp
- type GetTargetLikesReq
- type GetTargetLikesResp
- type GetTopKReq
- type GetTopKResp
- type GetUserLikedReq
- type GetUserLikedResp
- type GetUserLikesReq
- type GetUserLikesResp
- type ItemScore
- type Like
- type Likerpc
- type ListCatPopularityReq
- type ListCatPopularityResp
- type ListTopCatReq
- type ListTopCatResp
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 DailyUpdateReq ¶
type DailyUpdateReq = pb.DailyUpdateReq
type DailyUpdateResp ¶
type DailyUpdateResp = pb.DailyUpdateResp
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 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 ¶
type ListCatPopularityReq ¶
type ListCatPopularityReq = pb.ListCatPopularityReq
type ListCatPopularityResp ¶
type ListCatPopularityResp = pb.ListCatPopularityResp
type ListTopCatReq ¶
type ListTopCatReq = pb.ListTopCatReq
type ListTopCatResp ¶
type ListTopCatResp = pb.ListTopCatResp
Click to show internal directories.
Click to hide internal directories.