wfz 3 years ago
parent
commit
d5708f129b
3 changed files with 4 additions and 0 deletions
  1. 1 0
      api/user/user.proto
  2. 2 0
      api/user/user_grpc.pb.go
  3. 1 0
      js/api/user/user_http_pb.ts

+ 1 - 0
api/user/user.proto

@@ -100,6 +100,7 @@ service User {
       body:"*"
     };
   };
+  // 获取用户的访客数以及关注数
   rpc GetLookAndLikeStatisticsMessage (common.PersonParam) returns (statistics.LookAndLikeMessageReply){
     option (google.api.http) = {
       post: "/api/user/num/like_look",

+ 2 - 0
api/user/user_grpc.pb.go

@@ -48,6 +48,7 @@ type UserClient interface {
 	FindLikeList(ctx context.Context, in *common.ListPageRequest, opts ...grpc.CallOption) (*statistics.LookAndLikeListReply, error)
 	// 查看喜欢我的列表
 	FindLikedList(ctx context.Context, in *common.ListPageRequest, opts ...grpc.CallOption) (*statistics.LookAndLikeListReply, error)
+	// 获取用户的访客数以及关注数
 	GetLookAndLikeStatisticsMessage(ctx context.Context, in *common.PersonParam, opts ...grpc.CallOption) (*statistics.LookAndLikeMessageReply, error)
 }
 
@@ -215,6 +216,7 @@ type UserServer interface {
 	FindLikeList(context.Context, *common.ListPageRequest) (*statistics.LookAndLikeListReply, error)
 	// 查看喜欢我的列表
 	FindLikedList(context.Context, *common.ListPageRequest) (*statistics.LookAndLikeListReply, error)
+	// 获取用户的访客数以及关注数
 	GetLookAndLikeStatisticsMessage(context.Context, *common.PersonParam) (*statistics.LookAndLikeMessageReply, error)
 	mustEmbedUnimplementedUserServer()
 }

+ 1 - 0
js/api/user/user_http_pb.ts

@@ -66,6 +66,7 @@ const UserService = {
 	const res = await request.post<{ data: LookAndLikeListReply, code: string, message: string }>('/api/user/list/liked', req);
     return res.data;
   },
+  /**  获取用户的访客数以及关注数 */
   GetLookAndLikeStatisticsMessage: async (req?: PersonParam) => {
 	const res = await request.post<{ data: LookAndLikeMessageReply, code: string, message: string }>('/api/user/num/like_look', req);
     return res.data;