Forráskód Böngészése

修复获取用户帖子列表

huangguangrong 9 hónapja
szülő
commit
ac0f00a257

+ 1 - 1
proto/slowwild.proto

@@ -517,7 +517,7 @@ service SlowWildServer {
     // 删除回复/评论
     rpc CommentDelete (CommentDeleteReq) returns (CommentDeleteRsp);
     // 获取用户发布的帖子
-    rpc GetUserPostList (GetUserPostLikeListReq) returns (GetUserPostListRsp);
+    rpc GetUserPostList (GetUserPostListReq) returns (GetUserPostListRsp);
     // 获取用户收藏的帖子
     rpc GetUserPostCollectionList (GetUserPostCollectionListReq) returns (GetUserPostCollectionListRsp);
     // 获取用户点赞过的帖子

+ 23 - 23
slowwild/slowwildserver/slowwild.pb.go

@@ -5220,7 +5220,7 @@ var file_proto_slowwild_proto_rawDesc = []byte{
 	0x73, 0x65, 0x72, 0x76, 0x65, 0x72, 0x2e, 0x47, 0x65, 0x74, 0x50, 0x6f, 0x73, 0x74, 0x4c, 0x69,
 	0x73, 0x74, 0x49, 0x74, 0x65, 0x6d, 0x52, 0x04, 0x4c, 0x69, 0x73, 0x74, 0x12, 0x14, 0x0a, 0x05,
 	0x74, 0x6f, 0x74, 0x61, 0x6c, 0x18, 0x02, 0x20, 0x01, 0x28, 0x03, 0x52, 0x05, 0x74, 0x6f, 0x74,
-	0x61, 0x6c, 0x32, 0x8e, 0x12, 0x0a, 0x0e, 0x53, 0x6c, 0x6f, 0x77, 0x57, 0x69, 0x6c, 0x64, 0x53,
+	0x61, 0x6c, 0x32, 0x8a, 0x12, 0x0a, 0x0e, 0x53, 0x6c, 0x6f, 0x77, 0x57, 0x69, 0x6c, 0x64, 0x53,
 	0x65, 0x72, 0x76, 0x65, 0x72, 0x12, 0x46, 0x0a, 0x05, 0x4c, 0x6f, 0x67, 0x69, 0x6e, 0x12, 0x18,
 	0x2e, 0x73, 0x6c, 0x6f, 0x77, 0x77, 0x69, 0x6c, 0x64, 0x73, 0x65, 0x72, 0x76, 0x65, 0x72, 0x2e,
 	0x4c, 0x6f, 0x67, 0x69, 0x6e, 0x52, 0x65, 0x71, 0x1a, 0x23, 0x2e, 0x73, 0x6c, 0x6f, 0x77, 0x77,
@@ -5345,29 +5345,29 @@ var file_proto_slowwild_proto_rawDesc = []byte{
 	0x72, 0x2e, 0x43, 0x6f, 0x6d, 0x6d, 0x65, 0x6e, 0x74, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x52,
 	0x65, 0x71, 0x1a, 0x20, 0x2e, 0x73, 0x6c, 0x6f, 0x77, 0x77, 0x69, 0x6c, 0x64, 0x73, 0x65, 0x72,
 	0x76, 0x65, 0x72, 0x2e, 0x43, 0x6f, 0x6d, 0x6d, 0x65, 0x6e, 0x74, 0x44, 0x65, 0x6c, 0x65, 0x74,
-	0x65, 0x52, 0x73, 0x70, 0x12, 0x5d, 0x0a, 0x0f, 0x47, 0x65, 0x74, 0x55, 0x73, 0x65, 0x72, 0x50,
-	0x6f, 0x73, 0x74, 0x4c, 0x69, 0x73, 0x74, 0x12, 0x26, 0x2e, 0x73, 0x6c, 0x6f, 0x77, 0x77, 0x69,
+	0x65, 0x52, 0x73, 0x70, 0x12, 0x59, 0x0a, 0x0f, 0x47, 0x65, 0x74, 0x55, 0x73, 0x65, 0x72, 0x50,
+	0x6f, 0x73, 0x74, 0x4c, 0x69, 0x73, 0x74, 0x12, 0x22, 0x2e, 0x73, 0x6c, 0x6f, 0x77, 0x77, 0x69,
 	0x6c, 0x64, 0x73, 0x65, 0x72, 0x76, 0x65, 0x72, 0x2e, 0x47, 0x65, 0x74, 0x55, 0x73, 0x65, 0x72,
-	0x50, 0x6f, 0x73, 0x74, 0x4c, 0x69, 0x6b, 0x65, 0x4c, 0x69, 0x73, 0x74, 0x52, 0x65, 0x71, 0x1a,
-	0x22, 0x2e, 0x73, 0x6c, 0x6f, 0x77, 0x77, 0x69, 0x6c, 0x64, 0x73, 0x65, 0x72, 0x76, 0x65, 0x72,
-	0x2e, 0x47, 0x65, 0x74, 0x55, 0x73, 0x65, 0x72, 0x50, 0x6f, 0x73, 0x74, 0x4c, 0x69, 0x73, 0x74,
-	0x52, 0x73, 0x70, 0x12, 0x77, 0x0a, 0x19, 0x47, 0x65, 0x74, 0x55, 0x73, 0x65, 0x72, 0x50, 0x6f,
-	0x73, 0x74, 0x43, 0x6f, 0x6c, 0x6c, 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x4c, 0x69, 0x73, 0x74,
-	0x12, 0x2c, 0x2e, 0x73, 0x6c, 0x6f, 0x77, 0x77, 0x69, 0x6c, 0x64, 0x73, 0x65, 0x72, 0x76, 0x65,
-	0x72, 0x2e, 0x47, 0x65, 0x74, 0x55, 0x73, 0x65, 0x72, 0x50, 0x6f, 0x73, 0x74, 0x43, 0x6f, 0x6c,
-	0x6c, 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x4c, 0x69, 0x73, 0x74, 0x52, 0x65, 0x71, 0x1a, 0x2c,
-	0x2e, 0x73, 0x6c, 0x6f, 0x77, 0x77, 0x69, 0x6c, 0x64, 0x73, 0x65, 0x72, 0x76, 0x65, 0x72, 0x2e,
-	0x47, 0x65, 0x74, 0x55, 0x73, 0x65, 0x72, 0x50, 0x6f, 0x73, 0x74, 0x43, 0x6f, 0x6c, 0x6c, 0x65,
-	0x63, 0x74, 0x69, 0x6f, 0x6e, 0x4c, 0x69, 0x73, 0x74, 0x52, 0x73, 0x70, 0x12, 0x65, 0x0a, 0x13,
-	0x47, 0x65, 0x74, 0x55, 0x73, 0x65, 0x72, 0x50, 0x6f, 0x73, 0x74, 0x4c, 0x69, 0x6b, 0x65, 0x4c,
-	0x69, 0x73, 0x74, 0x12, 0x26, 0x2e, 0x73, 0x6c, 0x6f, 0x77, 0x77, 0x69, 0x6c, 0x64, 0x73, 0x65,
-	0x72, 0x76, 0x65, 0x72, 0x2e, 0x47, 0x65, 0x74, 0x55, 0x73, 0x65, 0x72, 0x50, 0x6f, 0x73, 0x74,
-	0x4c, 0x69, 0x6b, 0x65, 0x4c, 0x69, 0x73, 0x74, 0x52, 0x65, 0x71, 0x1a, 0x26, 0x2e, 0x73, 0x6c,
+	0x50, 0x6f, 0x73, 0x74, 0x4c, 0x69, 0x73, 0x74, 0x52, 0x65, 0x71, 0x1a, 0x22, 0x2e, 0x73, 0x6c,
 	0x6f, 0x77, 0x77, 0x69, 0x6c, 0x64, 0x73, 0x65, 0x72, 0x76, 0x65, 0x72, 0x2e, 0x47, 0x65, 0x74,
-	0x55, 0x73, 0x65, 0x72, 0x50, 0x6f, 0x73, 0x74, 0x4c, 0x69, 0x6b, 0x65, 0x4c, 0x69, 0x73, 0x74,
-	0x52, 0x73, 0x70, 0x42, 0x19, 0x5a, 0x17, 0x73, 0x6c, 0x6f, 0x77, 0x77, 0x69, 0x6c, 0x64, 0x2f,
-	0x73, 0x6c, 0x6f, 0x77, 0x77, 0x69, 0x6c, 0x64, 0x73, 0x65, 0x72, 0x76, 0x65, 0x72, 0x62, 0x06,
-	0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
+	0x55, 0x73, 0x65, 0x72, 0x50, 0x6f, 0x73, 0x74, 0x4c, 0x69, 0x73, 0x74, 0x52, 0x73, 0x70, 0x12,
+	0x77, 0x0a, 0x19, 0x47, 0x65, 0x74, 0x55, 0x73, 0x65, 0x72, 0x50, 0x6f, 0x73, 0x74, 0x43, 0x6f,
+	0x6c, 0x6c, 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x4c, 0x69, 0x73, 0x74, 0x12, 0x2c, 0x2e, 0x73,
+	0x6c, 0x6f, 0x77, 0x77, 0x69, 0x6c, 0x64, 0x73, 0x65, 0x72, 0x76, 0x65, 0x72, 0x2e, 0x47, 0x65,
+	0x74, 0x55, 0x73, 0x65, 0x72, 0x50, 0x6f, 0x73, 0x74, 0x43, 0x6f, 0x6c, 0x6c, 0x65, 0x63, 0x74,
+	0x69, 0x6f, 0x6e, 0x4c, 0x69, 0x73, 0x74, 0x52, 0x65, 0x71, 0x1a, 0x2c, 0x2e, 0x73, 0x6c, 0x6f,
+	0x77, 0x77, 0x69, 0x6c, 0x64, 0x73, 0x65, 0x72, 0x76, 0x65, 0x72, 0x2e, 0x47, 0x65, 0x74, 0x55,
+	0x73, 0x65, 0x72, 0x50, 0x6f, 0x73, 0x74, 0x43, 0x6f, 0x6c, 0x6c, 0x65, 0x63, 0x74, 0x69, 0x6f,
+	0x6e, 0x4c, 0x69, 0x73, 0x74, 0x52, 0x73, 0x70, 0x12, 0x65, 0x0a, 0x13, 0x47, 0x65, 0x74, 0x55,
+	0x73, 0x65, 0x72, 0x50, 0x6f, 0x73, 0x74, 0x4c, 0x69, 0x6b, 0x65, 0x4c, 0x69, 0x73, 0x74, 0x12,
+	0x26, 0x2e, 0x73, 0x6c, 0x6f, 0x77, 0x77, 0x69, 0x6c, 0x64, 0x73, 0x65, 0x72, 0x76, 0x65, 0x72,
+	0x2e, 0x47, 0x65, 0x74, 0x55, 0x73, 0x65, 0x72, 0x50, 0x6f, 0x73, 0x74, 0x4c, 0x69, 0x6b, 0x65,
+	0x4c, 0x69, 0x73, 0x74, 0x52, 0x65, 0x71, 0x1a, 0x26, 0x2e, 0x73, 0x6c, 0x6f, 0x77, 0x77, 0x69,
+	0x6c, 0x64, 0x73, 0x65, 0x72, 0x76, 0x65, 0x72, 0x2e, 0x47, 0x65, 0x74, 0x55, 0x73, 0x65, 0x72,
+	0x50, 0x6f, 0x73, 0x74, 0x4c, 0x69, 0x6b, 0x65, 0x4c, 0x69, 0x73, 0x74, 0x52, 0x73, 0x70, 0x42,
+	0x19, 0x5a, 0x17, 0x73, 0x6c, 0x6f, 0x77, 0x77, 0x69, 0x6c, 0x64, 0x2f, 0x73, 0x6c, 0x6f, 0x77,
+	0x77, 0x69, 0x6c, 0x64, 0x73, 0x65, 0x72, 0x76, 0x65, 0x72, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74,
+	0x6f, 0x33,
 }
 
 var (
@@ -5500,7 +5500,7 @@ var file_proto_slowwild_proto_depIdxs = []int32{
 	52, // 47: slowwildserver.SlowWildServer.PostCommentUpvote:input_type -> slowwildserver.PostCommentUpvoteReq
 	54, // 48: slowwildserver.SlowWildServer.PostDelete:input_type -> slowwildserver.PostDeleteReq
 	56, // 49: slowwildserver.SlowWildServer.CommentDelete:input_type -> slowwildserver.CommentDeleteReq
-	62, // 50: slowwildserver.SlowWildServer.GetUserPostList:input_type -> slowwildserver.GetUserPostLikeListReq
+	58, // 50: slowwildserver.SlowWildServer.GetUserPostList:input_type -> slowwildserver.GetUserPostListReq
 	60, // 51: slowwildserver.SlowWildServer.GetUserPostCollectionList:input_type -> slowwildserver.GetUserPostCollectionListReq
 	62, // 52: slowwildserver.SlowWildServer.GetUserPostLikeList:input_type -> slowwildserver.GetUserPostLikeListReq
 	3,  // 53: slowwildserver.SlowWildServer.Login:output_type -> slowwildserver.LoginAndRegisterRsp

+ 6 - 6
slowwild/slowwildserver/slowwild_grpc.pb.go

@@ -104,7 +104,7 @@ type SlowWildServerClient interface {
 	// 删除回复/评论
 	CommentDelete(ctx context.Context, in *CommentDeleteReq, opts ...grpc.CallOption) (*CommentDeleteRsp, error)
 	// 获取用户发布的帖子
-	GetUserPostList(ctx context.Context, in *GetUserPostLikeListReq, opts ...grpc.CallOption) (*GetUserPostListRsp, error)
+	GetUserPostList(ctx context.Context, in *GetUserPostListReq, opts ...grpc.CallOption) (*GetUserPostListRsp, error)
 	// 获取用户收藏的帖子
 	GetUserPostCollectionList(ctx context.Context, in *GetUserPostCollectionListReq, opts ...grpc.CallOption) (*GetUserPostCollectionListRsp, error)
 	// 获取用户点赞过的帖子
@@ -369,7 +369,7 @@ func (c *slowWildServerClient) CommentDelete(ctx context.Context, in *CommentDel
 	return out, nil
 }
 
-func (c *slowWildServerClient) GetUserPostList(ctx context.Context, in *GetUserPostLikeListReq, opts ...grpc.CallOption) (*GetUserPostListRsp, error) {
+func (c *slowWildServerClient) GetUserPostList(ctx context.Context, in *GetUserPostListReq, opts ...grpc.CallOption) (*GetUserPostListRsp, error) {
 	cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...)
 	out := new(GetUserPostListRsp)
 	err := c.cc.Invoke(ctx, SlowWildServer_GetUserPostList_FullMethodName, in, out, cOpts...)
@@ -454,7 +454,7 @@ type SlowWildServerServer interface {
 	// 删除回复/评论
 	CommentDelete(context.Context, *CommentDeleteReq) (*CommentDeleteRsp, error)
 	// 获取用户发布的帖子
-	GetUserPostList(context.Context, *GetUserPostLikeListReq) (*GetUserPostListRsp, error)
+	GetUserPostList(context.Context, *GetUserPostListReq) (*GetUserPostListRsp, error)
 	// 获取用户收藏的帖子
 	GetUserPostCollectionList(context.Context, *GetUserPostCollectionListReq) (*GetUserPostCollectionListRsp, error)
 	// 获取用户点赞过的帖子
@@ -541,7 +541,7 @@ func (UnimplementedSlowWildServerServer) PostDelete(context.Context, *PostDelete
 func (UnimplementedSlowWildServerServer) CommentDelete(context.Context, *CommentDeleteReq) (*CommentDeleteRsp, error) {
 	return nil, status.Errorf(codes.Unimplemented, "method CommentDelete not implemented")
 }
-func (UnimplementedSlowWildServerServer) GetUserPostList(context.Context, *GetUserPostLikeListReq) (*GetUserPostListRsp, error) {
+func (UnimplementedSlowWildServerServer) GetUserPostList(context.Context, *GetUserPostListReq) (*GetUserPostListRsp, error) {
 	return nil, status.Errorf(codes.Unimplemented, "method GetUserPostList not implemented")
 }
 func (UnimplementedSlowWildServerServer) GetUserPostCollectionList(context.Context, *GetUserPostCollectionListReq) (*GetUserPostCollectionListRsp, error) {
@@ -1014,7 +1014,7 @@ func _SlowWildServer_CommentDelete_Handler(srv interface{}, ctx context.Context,
 }
 
 func _SlowWildServer_GetUserPostList_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
-	in := new(GetUserPostLikeListReq)
+	in := new(GetUserPostListReq)
 	if err := dec(in); err != nil {
 		return nil, err
 	}
@@ -1026,7 +1026,7 @@ func _SlowWildServer_GetUserPostList_Handler(srv interface{}, ctx context.Contex
 		FullMethod: SlowWildServer_GetUserPostList_FullMethodName,
 	}
 	handler := func(ctx context.Context, req interface{}) (interface{}, error) {
-		return srv.(SlowWildServerServer).GetUserPostList(ctx, req.(*GetUserPostLikeListReq))
+		return srv.(SlowWildServerServer).GetUserPostList(ctx, req.(*GetUserPostListReq))
 	}
 	return interceptor(ctx, in, info, handler)
 }