wfz 3 éve
szülő
commit
76e656f0f3

+ 1 - 1
api/partner/partner.proto

@@ -113,7 +113,7 @@ service Partner {
       body:"*"
     };
   };
-  // 获取标签列表
+  // 获取在线列表
   rpc FindOnlineList (common.ListPage2Request) returns (common.OnlinePersonListReply){
     option (google.api.http) = {
       post: "/api/partner/list/online",

+ 2 - 2
api/partner/partner_grpc.pb.go

@@ -56,7 +56,7 @@ type PartnerClient interface {
 	CreateUserPartnerRoom(ctx context.Context, in *common.PersonIDParam, opts ...grpc.CallOption) (*chat.RoomReply, error)
 	// 获取标签列表
 	FindTagListBySex(ctx context.Context, in *common.SexReq, opts ...grpc.CallOption) (*common.TagListReply, error)
-	// 获取标签列表
+	// 获取在线列表
 	FindOnlineList(ctx context.Context, in *common.ListPage2Request, opts ...grpc.CallOption) (*common.OnlinePersonListReply, error)
 	// 未读列表(排队中)
 	FindUnReplyRoomList(ctx context.Context, in *common.ListPageRequest, opts ...grpc.CallOption) (*chat.PartnerFindRoomListReply, error)
@@ -310,7 +310,7 @@ type PartnerServer interface {
 	CreateUserPartnerRoom(context.Context, *common.PersonIDParam) (*chat.RoomReply, error)
 	// 获取标签列表
 	FindTagListBySex(context.Context, *common.SexReq) (*common.TagListReply, error)
-	// 获取标签列表
+	// 获取在线列表
 	FindOnlineList(context.Context, *common.ListPage2Request) (*common.OnlinePersonListReply, error)
 	// 未读列表(排队中)
 	FindUnReplyRoomList(context.Context, *common.ListPageRequest) (*chat.PartnerFindRoomListReply, error)

+ 39 - 29
api/user/user.pb.go

@@ -498,7 +498,7 @@ var file_user_proto_rawDesc = []byte{
 	0x52, 0x04, 0x63, 0x69, 0x74, 0x79, 0x12, 0x12, 0x0a, 0x04, 0x61, 0x72, 0x65, 0x61, 0x18, 0x0d,
 	0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x61, 0x72, 0x65, 0x61, 0x22, 0x1e, 0x0a, 0x0a, 0x4b, 0x65,
 	0x79, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x10, 0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18,
-	0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x6b, 0x65, 0x79, 0x32, 0xfb, 0x11, 0x0a, 0x04, 0x55,
+	0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x6b, 0x65, 0x79, 0x32, 0xe6, 0x12, 0x0a, 0x04, 0x55,
 	0x73, 0x65, 0x72, 0x12, 0x7e, 0x0a, 0x15, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x55, 0x73, 0x65,
 	0x72, 0x49, 0x6e, 0x66, 0x6f, 0x72, 0x6d, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x24, 0x2e, 0x61,
 	0x70, 0x69, 0x2e, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2e, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65,
@@ -642,11 +642,18 @@ var file_user_proto_rawDesc = []byte{
 	0x70, 0x74, 0x79, 0x1a, 0x15, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x75, 0x73, 0x65, 0x72, 0x2e, 0x55,
 	0x73, 0x65, 0x72, 0x42, 0x61, 0x6c, 0x61, 0x6e, 0x63, 0x65, 0x22, 0x1c, 0x82, 0xd3, 0xe4, 0x93,
 	0x02, 0x16, 0x22, 0x11, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x75, 0x73, 0x65, 0x72, 0x2f, 0x62, 0x61,
-	0x6c, 0x61, 0x6e, 0x63, 0x65, 0x3a, 0x01, 0x2a, 0x42, 0x3d, 0x0a, 0x08, 0x61, 0x70, 0x69, 0x2e,
-	0x75, 0x73, 0x65, 0x72, 0x50, 0x01, 0x5a, 0x2f, 0x67, 0x69, 0x74, 0x2e, 0x69, 0x6b, 0x75, 0x62,
-	0x61, 0x6e, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x73, 0x65, 0x72, 0x76, 0x65, 0x72, 0x2f, 0x70, 0x77,
-	0x2d, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x75, 0x73,
-	0x65, 0x72, 0x3b, 0x75, 0x73, 0x65, 0x72, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
+	0x6c, 0x61, 0x6e, 0x63, 0x65, 0x3a, 0x01, 0x2a, 0x12, 0x69, 0x0a, 0x0e, 0x47, 0x65, 0x74, 0x55,
+	0x73, 0x65, 0x72, 0x4c, 0x6f, 0x6f, 0x6b, 0x4e, 0x75, 0x6d, 0x12, 0x16, 0x2e, 0x67, 0x6f, 0x6f,
+	0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x45, 0x6d, 0x70,
+	0x74, 0x79, 0x1a, 0x20, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x73, 0x74, 0x61, 0x74, 0x69, 0x73, 0x74,
+	0x69, 0x63, 0x73, 0x2e, 0x4c, 0x6f, 0x6f, 0x6b, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x52,
+	0x65, 0x70, 0x6c, 0x79, 0x22, 0x1d, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x17, 0x22, 0x12, 0x2f, 0x61,
+	0x70, 0x69, 0x2f, 0x75, 0x73, 0x65, 0x72, 0x2f, 0x6c, 0x6f, 0x6f, 0x6b, 0x2f, 0x6e, 0x75, 0x6d,
+	0x3a, 0x01, 0x2a, 0x42, 0x3d, 0x0a, 0x08, 0x61, 0x70, 0x69, 0x2e, 0x75, 0x73, 0x65, 0x72, 0x50,
+	0x01, 0x5a, 0x2f, 0x67, 0x69, 0x74, 0x2e, 0x69, 0x6b, 0x75, 0x62, 0x61, 0x6e, 0x2e, 0x63, 0x6f,
+	0x6d, 0x2f, 0x73, 0x65, 0x72, 0x76, 0x65, 0x72, 0x2f, 0x70, 0x77, 0x2d, 0x70, 0x72, 0x6f, 0x74,
+	0x6f, 0x62, 0x75, 0x66, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x75, 0x73, 0x65, 0x72, 0x3b, 0x75, 0x73,
+	0x65, 0x72, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
 }
 
 var (
@@ -692,6 +699,7 @@ var file_user_proto_goTypes = []interface{}{
 	(*common.TagListReply)(nil),                      // 26: api.common.TagListReply
 	(*common.OnlinePersonListReply)(nil),             // 27: api.common.OnlinePersonListReply
 	(*common.LookedAndLikedNum)(nil),                 // 28: api.common.LookedAndLikedNum
+	(*statistics.LookMessageReply)(nil),              // 29: api.statistics.LookMessageReply
 }
 var file_user_proto_depIdxs = []int32{
 	2,  // 0: api.user.UserFindChatListReply.list:type_name -> api.user.UserChatInfo
@@ -716,29 +724,31 @@ var file_user_proto_depIdxs = []int32{
 	13, // 19: api.user.User.FindOverSevenDayRoomList:input_type -> api.common.ListPageRequest
 	11, // 20: api.user.User.UserGetPersonLikedAndLooked:input_type -> api.common.PersonParam
 	6,  // 21: api.user.User.GetUserBalance:input_type -> google.protobuf.Empty
-	6,  // 22: api.user.User.UpdateUserInformation:output_type -> google.protobuf.Empty
-	3,  // 23: api.user.User.GetUserInfo:output_type -> api.user.UserInfo
-	17, // 24: api.user.User.GetUserDBMsg:output_type -> api.common.PersonMsg
-	6,  // 25: api.user.User.SendPhoneCode:output_type -> google.protobuf.Empty
-	6,  // 26: api.user.User.CheckPhoneCode:output_type -> google.protobuf.Empty
-	18, // 27: api.user.User.CheckUserPartnerIsRelationship:output_type -> api.chat.CheckUserPartnerIsRelationshipReply
-	19, // 28: api.user.User.CreateUserPartnerRoom:output_type -> api.chat.RoomReply
-	20, // 29: api.user.User.GetPartnerCircleInfo:output_type -> api.common.AddFriendMessageInfo
-	21, // 30: api.user.User.UserGetHomeInfo:output_type -> api.common.HomeInfo
-	22, // 31: api.user.User.FindUserDBList:output_type -> api.common.PersonDBReply
-	23, // 32: api.user.User.FindLookList:output_type -> api.statistics.LookAndLikeListReply
-	23, // 33: api.user.User.FindLikeList:output_type -> api.statistics.LookAndLikeListReply
-	23, // 34: api.user.User.FindLikedList:output_type -> api.statistics.LookAndLikeListReply
-	24, // 35: api.user.User.GetLookAndLikeStatisticsMessage:output_type -> api.statistics.LookAndLikeMessageReply
-	25, // 36: api.user.User.WxConf:output_type -> api.common.WxConfResponse
-	26, // 37: api.user.User.FindTagListBySex:output_type -> api.common.TagListReply
-	27, // 38: api.user.User.FindOnlineList:output_type -> api.common.OnlinePersonListReply
-	1,  // 39: api.user.User.FindWithinSevenDayRoomList:output_type -> api.user.UserFindChatListReply
-	1,  // 40: api.user.User.FindOverSevenDayRoomList:output_type -> api.user.UserFindChatListReply
-	28, // 41: api.user.User.UserGetPersonLikedAndLooked:output_type -> api.common.LookedAndLikedNum
-	0,  // 42: api.user.User.GetUserBalance:output_type -> api.user.UserBalance
-	22, // [22:43] is the sub-list for method output_type
-	1,  // [1:22] is the sub-list for method input_type
+	6,  // 22: api.user.User.GetUserLookNum:input_type -> google.protobuf.Empty
+	6,  // 23: api.user.User.UpdateUserInformation:output_type -> google.protobuf.Empty
+	3,  // 24: api.user.User.GetUserInfo:output_type -> api.user.UserInfo
+	17, // 25: api.user.User.GetUserDBMsg:output_type -> api.common.PersonMsg
+	6,  // 26: api.user.User.SendPhoneCode:output_type -> google.protobuf.Empty
+	6,  // 27: api.user.User.CheckPhoneCode:output_type -> google.protobuf.Empty
+	18, // 28: api.user.User.CheckUserPartnerIsRelationship:output_type -> api.chat.CheckUserPartnerIsRelationshipReply
+	19, // 29: api.user.User.CreateUserPartnerRoom:output_type -> api.chat.RoomReply
+	20, // 30: api.user.User.GetPartnerCircleInfo:output_type -> api.common.AddFriendMessageInfo
+	21, // 31: api.user.User.UserGetHomeInfo:output_type -> api.common.HomeInfo
+	22, // 32: api.user.User.FindUserDBList:output_type -> api.common.PersonDBReply
+	23, // 33: api.user.User.FindLookList:output_type -> api.statistics.LookAndLikeListReply
+	23, // 34: api.user.User.FindLikeList:output_type -> api.statistics.LookAndLikeListReply
+	23, // 35: api.user.User.FindLikedList:output_type -> api.statistics.LookAndLikeListReply
+	24, // 36: api.user.User.GetLookAndLikeStatisticsMessage:output_type -> api.statistics.LookAndLikeMessageReply
+	25, // 37: api.user.User.WxConf:output_type -> api.common.WxConfResponse
+	26, // 38: api.user.User.FindTagListBySex:output_type -> api.common.TagListReply
+	27, // 39: api.user.User.FindOnlineList:output_type -> api.common.OnlinePersonListReply
+	1,  // 40: api.user.User.FindWithinSevenDayRoomList:output_type -> api.user.UserFindChatListReply
+	1,  // 41: api.user.User.FindOverSevenDayRoomList:output_type -> api.user.UserFindChatListReply
+	28, // 42: api.user.User.UserGetPersonLikedAndLooked:output_type -> api.common.LookedAndLikedNum
+	0,  // 43: api.user.User.GetUserBalance:output_type -> api.user.UserBalance
+	29, // 44: api.user.User.GetUserLookNum:output_type -> api.statistics.LookMessageReply
+	23, // [23:45] is the sub-list for method output_type
+	1,  // [1:23] is the sub-list for method input_type
 	1,  // [1:1] is the sub-list for extension type_name
 	1,  // [1:1] is the sub-list for extension extendee
 	0,  // [0:1] is the sub-list for field type_name

+ 8 - 1
api/user/user.proto

@@ -116,7 +116,7 @@ service User {
       body:"*"
     };
   };
-  // 获取标签列表
+  // 获取在线列表
   rpc FindOnlineList (common.ListPage2Request) returns (common.OnlinePersonListReply){
     option (google.api.http) = {
       post: "/api/user/list/online",
@@ -151,6 +151,13 @@ service User {
       body:"*"
     };
   };
+  // 获取用户访问数详情
+  rpc GetUserLookNum (google.protobuf.Empty) returns (statistics.LookMessageReply){
+    option (google.api.http) = {
+      post: "/api/user/look/num",
+      body:"*"
+    };
+  };
 }
 
 message UserBalance{

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

@@ -54,7 +54,7 @@ type UserClient interface {
 	WxConf(ctx context.Context, in *common.WxConfReq, opts ...grpc.CallOption) (*common.WxConfResponse, error)
 	// 获取标签列表
 	FindTagListBySex(ctx context.Context, in *common.SexReq, opts ...grpc.CallOption) (*common.TagListReply, error)
-	// 获取标签列表
+	// 获取在线列表
 	FindOnlineList(ctx context.Context, in *common.ListPage2Request, opts ...grpc.CallOption) (*common.OnlinePersonListReply, error)
 	// 七天内列表(当前会话)
 	FindWithinSevenDayRoomList(ctx context.Context, in *common.ListPageRequest, opts ...grpc.CallOption) (*UserFindChatListReply, error)
@@ -64,6 +64,8 @@ type UserClient interface {
 	UserGetPersonLikedAndLooked(ctx context.Context, in *common.PersonParam, opts ...grpc.CallOption) (*common.LookedAndLikedNum, error)
 	// 获取用户的金额信息
 	GetUserBalance(ctx context.Context, in *emptypb.Empty, opts ...grpc.CallOption) (*UserBalance, error)
+	// 获取用户访问数详情
+	GetUserLookNum(ctx context.Context, in *emptypb.Empty, opts ...grpc.CallOption) (*statistics.LookMessageReply, error)
 }
 
 type userClient struct {
@@ -263,6 +265,15 @@ func (c *userClient) GetUserBalance(ctx context.Context, in *emptypb.Empty, opts
 	return out, nil
 }
 
+func (c *userClient) GetUserLookNum(ctx context.Context, in *emptypb.Empty, opts ...grpc.CallOption) (*statistics.LookMessageReply, error) {
+	out := new(statistics.LookMessageReply)
+	err := c.cc.Invoke(ctx, "/api.user.User/GetUserLookNum", in, out, opts...)
+	if err != nil {
+		return nil, err
+	}
+	return out, nil
+}
+
 // UserServer is the server API for User service.
 // All implementations must embed UnimplementedUserServer
 // for forward compatibility
@@ -299,7 +310,7 @@ type UserServer interface {
 	WxConf(context.Context, *common.WxConfReq) (*common.WxConfResponse, error)
 	// 获取标签列表
 	FindTagListBySex(context.Context, *common.SexReq) (*common.TagListReply, error)
-	// 获取标签列表
+	// 获取在线列表
 	FindOnlineList(context.Context, *common.ListPage2Request) (*common.OnlinePersonListReply, error)
 	// 七天内列表(当前会话)
 	FindWithinSevenDayRoomList(context.Context, *common.ListPageRequest) (*UserFindChatListReply, error)
@@ -309,6 +320,8 @@ type UserServer interface {
 	UserGetPersonLikedAndLooked(context.Context, *common.PersonParam) (*common.LookedAndLikedNum, error)
 	// 获取用户的金额信息
 	GetUserBalance(context.Context, *emptypb.Empty) (*UserBalance, error)
+	// 获取用户访问数详情
+	GetUserLookNum(context.Context, *emptypb.Empty) (*statistics.LookMessageReply, error)
 	mustEmbedUnimplementedUserServer()
 }
 
@@ -379,6 +392,9 @@ func (UnimplementedUserServer) UserGetPersonLikedAndLooked(context.Context, *com
 func (UnimplementedUserServer) GetUserBalance(context.Context, *emptypb.Empty) (*UserBalance, error) {
 	return nil, status.Errorf(codes.Unimplemented, "method GetUserBalance not implemented")
 }
+func (UnimplementedUserServer) GetUserLookNum(context.Context, *emptypb.Empty) (*statistics.LookMessageReply, error) {
+	return nil, status.Errorf(codes.Unimplemented, "method GetUserLookNum not implemented")
+}
 func (UnimplementedUserServer) mustEmbedUnimplementedUserServer() {}
 
 // UnsafeUserServer may be embedded to opt out of forward compatibility for this service.
@@ -770,6 +786,24 @@ func _User_GetUserBalance_Handler(srv interface{}, ctx context.Context, dec func
 	return interceptor(ctx, in, info, handler)
 }
 
+func _User_GetUserLookNum_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
+	in := new(emptypb.Empty)
+	if err := dec(in); err != nil {
+		return nil, err
+	}
+	if interceptor == nil {
+		return srv.(UserServer).GetUserLookNum(ctx, in)
+	}
+	info := &grpc.UnaryServerInfo{
+		Server:     srv,
+		FullMethod: "/api.user.User/GetUserLookNum",
+	}
+	handler := func(ctx context.Context, req interface{}) (interface{}, error) {
+		return srv.(UserServer).GetUserLookNum(ctx, req.(*emptypb.Empty))
+	}
+	return interceptor(ctx, in, info, handler)
+}
+
 // User_ServiceDesc is the grpc.ServiceDesc for User service.
 // It's only intended for direct use with grpc.RegisterService,
 // and not to be introspected or modified (even as a copy)
@@ -861,6 +895,10 @@ var User_ServiceDesc = grpc.ServiceDesc{
 			MethodName: "GetUserBalance",
 			Handler:    _User_GetUserBalance_Handler,
 		},
+		{
+			MethodName: "GetUserLookNum",
+			Handler:    _User_GetUserLookNum_Handler,
+		},
 	},
 	Streams:  []grpc.StreamDesc{},
 	Metadata: "user.proto",

+ 43 - 0
api/user/user_http.pb.go

@@ -44,6 +44,7 @@ type UserHTTPServer interface {
 	GetPartnerCircleInfo(context.Context, *KeyRequest) (*common.AddFriendMessageInfo, error)
 	GetUserBalance(context.Context, *emptypb.Empty) (*UserBalance, error)
 	GetUserInfo(context.Context, *emptypb.Empty) (*UserInfo, error)
+	GetUserLookNum(context.Context, *emptypb.Empty) (*statistics.LookMessageReply, error)
 	SendPhoneCode(context.Context, *common.SendPhoneCodeRequest) (*emptypb.Empty, error)
 	UpdateUserInformation(context.Context, *common.UpdateInformationRequest) (*emptypb.Empty, error)
 	UserGetHomeInfo(context.Context, *common.PersonParam) (*common.HomeInfo, error)
@@ -72,6 +73,7 @@ func RegisterUserHTTPServer(s *http.Server, srv UserHTTPServer) {
 	r.POST("/api/user/list/chat/over", _User_FindOverSevenDayRoomList0_HTTP_Handler(srv))
 	r.POST("/api/user/num", _User_UserGetPersonLikedAndLooked0_HTTP_Handler(srv))
 	r.POST("/api/user/balance", _User_GetUserBalance0_HTTP_Handler(srv))
+	r.POST("/api/user/look/num", _User_GetUserLookNum0_HTTP_Handler(srv))
 }
 
 func _User_UpdateUserInformation0_HTTP_Handler(srv UserHTTPServer) func(ctx http.Context) error {
@@ -587,6 +589,33 @@ func _User_GetUserBalance0_HTTP_Handler(srv UserHTTPServer) func(ctx http.Contex
 	}
 }
 
+func _User_GetUserLookNum0_HTTP_Handler(srv UserHTTPServer) func(ctx http.Context) error {
+	return func(ctx http.Context) error {
+		var in emptypb.Empty
+		if err := ctx.Bind(&in); err != nil {
+			return err
+		}
+		if err := ctx.BindQuery(&in); err != nil {
+			return err
+		}
+		http.SetOperation(ctx, "/api.user.User/GetUserLookNum")
+		h := ctx.Middleware(func(ctx context.Context, req interface{}) (interface{}, error) {
+			return srv.GetUserLookNum(ctx, req.(*emptypb.Empty))
+		})
+		out, err := h(ctx, &in)
+		if err != nil {
+			return err
+		}
+		success := &reply.SuccessReply{
+			Code: 0,
+		}
+		if out != nil {
+			success.Data = out
+		}
+		return ctx.Result(200, success)
+	}
+}
+
 type UserHTTPClient interface {
 	CheckPhoneCode(ctx context.Context, req *common.CheckPhoneCodeRequest, opts ...http.CallOption) (rsp *emptypb.Empty, err error)
 	CheckUserPartnerIsRelationship(ctx context.Context, req *common.PartnerIDParam, opts ...http.CallOption) (rsp *chat.CheckUserPartnerIsRelationshipReply, err error)
@@ -602,6 +631,7 @@ type UserHTTPClient interface {
 	GetPartnerCircleInfo(ctx context.Context, req *KeyRequest, opts ...http.CallOption) (rsp *common.AddFriendMessageInfo, err error)
 	GetUserBalance(ctx context.Context, req *emptypb.Empty, opts ...http.CallOption) (rsp *UserBalance, err error)
 	GetUserInfo(ctx context.Context, req *emptypb.Empty, opts ...http.CallOption) (rsp *UserInfo, err error)
+	GetUserLookNum(ctx context.Context, req *emptypb.Empty, opts ...http.CallOption) (rsp *statistics.LookMessageReply, err error)
 	SendPhoneCode(ctx context.Context, req *common.SendPhoneCodeRequest, opts ...http.CallOption) (rsp *emptypb.Empty, err error)
 	UpdateUserInformation(ctx context.Context, req *common.UpdateInformationRequest, opts ...http.CallOption) (rsp *emptypb.Empty, err error)
 	UserGetHomeInfo(ctx context.Context, req *common.PersonParam, opts ...http.CallOption) (rsp *common.HomeInfo, err error)
@@ -799,6 +829,19 @@ func (c *UserHTTPClientImpl) GetUserInfo(ctx context.Context, in *emptypb.Empty,
 	return &out, err
 }
 
+func (c *UserHTTPClientImpl) GetUserLookNum(ctx context.Context, in *emptypb.Empty, opts ...http.CallOption) (*statistics.LookMessageReply, error) {
+	var out statistics.LookMessageReply
+	pattern := "/api/user/look/num"
+	path := binding.EncodeURL(pattern, in, false)
+	opts = append(opts, http.Operation("/api.user.User/GetUserLookNum"))
+	opts = append(opts, http.PathTemplate(pattern))
+	err := c.cc.Invoke(ctx, "POST", path, in, &out, opts...)
+	if err != nil {
+		return nil, err
+	}
+	return &out, err
+}
+
 func (c *UserHTTPClientImpl) SendPhoneCode(ctx context.Context, in *common.SendPhoneCodeRequest, opts ...http.CallOption) (*emptypb.Empty, error) {
 	var out emptypb.Empty
 	pattern := "/api/user/code/send"

+ 1 - 1
js/api/partner/partner_http_pb.ts

@@ -71,7 +71,7 @@ const PartnerService = {
 	const res = await request.post<{ data: TagListReply, code: string, message: string }>('/api/partner/list/tag', req);
     return res.data.data;
   },
-  /**  获取标签列表 */
+  /**  获取在线列表 */
   FindOnlineList: async (req?: ListPage2Request) => {
 	const res = await request.post<{ data: OnlinePersonListReply, code: string, message: string }>('/api/partner/list/online', req);
     return res.data.data;

+ 7 - 2
js/api/user/user_http_pb.ts

@@ -3,7 +3,7 @@ import request from '@/libs/request';
 import {UpdateInformationRequest,PersonIDParam,PersonMsg,SendPhoneCodeRequest,CheckPhoneCodeRequest,PartnerIDParam,AddFriendMessageInfo,PersonParam,HomeInfo,PersonIDList,PersonDBReply,ListPageRequest,WxConfReq,WxConfResponse,SexReq,TagListReply,ListPage2Request,OnlinePersonListReply,LookedAndLikedNum} from "../common/common_pb";
 import {UserInfo,KeyRequest,UserFindChatListReply,UserBalance} from "./user_pb";
 import {CheckUserPartnerIsRelationshipReply,RoomReply} from "../chat/chat_pb";
-import {LookAndLikeListReply,LookAndLikeMessageReply} from "../statistics/statistics_pb";
+import {LookAndLikeListReply,LookAndLikeMessageReply,LookMessageReply} from "../statistics/statistics_pb";
 
 const UserService = {
   /**  更新用户信息 */
@@ -76,7 +76,7 @@ const UserService = {
 	const res = await request.post<{ data: TagListReply, code: string, message: string }>('/api/user/list/tag', req);
     return res.data.data;
   },
-  /**  获取标签列表 */
+  /**  获取在线列表 */
   FindOnlineList: async (req?: ListPage2Request) => {
 	const res = await request.post<{ data: OnlinePersonListReply, code: string, message: string }>('/api/user/list/online', req);
     return res.data.data;
@@ -101,6 +101,11 @@ const UserService = {
 	const res = await request.post<{ data: UserBalance, code: string, message: string }>('/api/user/balance', req);
     return res.data.data;
   },
+  /**  获取用户访问数详情 */
+  GetUserLookNum: async (req?: undefined) => {
+	const res = await request.post<{ data: LookMessageReply, code: string, message: string }>('/api/user/look/num', req);
+    return res.data.data;
+  },
 
 };