refactor: localize protobuf definitions

This commit is contained in:
2026-08-09 20:14:57 +08:00
parent 9f6f318bbb
commit 5ea45a76fe
429 changed files with 54058 additions and 61623 deletions

View File

@@ -7,7 +7,6 @@
package cms
import (
protobuf "bsm/full/protobuf"
context "context"
grpc "google.golang.org/grpc"
codes "google.golang.org/grpc/codes"
@@ -54,37 +53,37 @@ type PostClient interface {
// 获取文章详情 By Key
GetByKey(ctx context.Context, in *GetPostByKeyRequest, opts ...grpc.CallOption) (*PostItem, error)
// 搜索文章
Search(ctx context.Context, in *protobuf.CmsSearchRequest, opts ...grpc.CallOption) (*PostListReply, error)
Search(ctx context.Context, in *CmsSearchRequest, opts ...grpc.CallOption) (*PostListReply, error)
// 发布文章
Create(ctx context.Context, in *PostItem, opts ...grpc.CallOption) (*protobuf.StatusReply, error)
Create(ctx context.Context, in *PostItem, opts ...grpc.CallOption) (*StatusReply, error)
// 修改文章
Modify(ctx context.Context, in *PostItem, opts ...grpc.CallOption) (*protobuf.StatusReply, error)
Modify(ctx context.Context, in *PostItem, opts ...grpc.CallOption) (*StatusReply, error)
// 删除文章
Delete(ctx context.Context, in *protobuf.IdentRequest, opts ...grpc.CallOption) (*protobuf.StatusReply, error)
Delete(ctx context.Context, in *IdentRequest, opts ...grpc.CallOption) (*StatusReply, error)
// 文章点赞处理
IncrPostLike(ctx context.Context, in *PostOpIdentityRequest, opts ...grpc.CallOption) (*protobuf.StatusReply, error)
IncrPostLike(ctx context.Context, in *PostOpIdentityRequest, opts ...grpc.CallOption) (*StatusReply, error)
// 文章点赞取消处理
DescPostLike(ctx context.Context, in *PostOpIdentityRequest, opts ...grpc.CallOption) (*protobuf.StatusReply, error)
DescPostLike(ctx context.Context, in *PostOpIdentityRequest, opts ...grpc.CallOption) (*StatusReply, error)
// 文章点踩处理
IncrPostUnlike(ctx context.Context, in *PostOpIdentityRequest, opts ...grpc.CallOption) (*protobuf.StatusReply, error)
IncrPostUnlike(ctx context.Context, in *PostOpIdentityRequest, opts ...grpc.CallOption) (*StatusReply, error)
// 文章点踩取消处理
DescPostUnlike(ctx context.Context, in *PostOpIdentityRequest, opts ...grpc.CallOption) (*protobuf.StatusReply, error)
DescPostUnlike(ctx context.Context, in *PostOpIdentityRequest, opts ...grpc.CallOption) (*StatusReply, error)
// 评论列表
CommentList(ctx context.Context, in *CommentListRequest, opts ...grpc.CallOption) (*CommentListResponse, error)
// 发布评论
AddComment(ctx context.Context, in *CommentItem, opts ...grpc.CallOption) (*protobuf.StatusReply, error)
AddComment(ctx context.Context, in *CommentItem, opts ...grpc.CallOption) (*StatusReply, error)
// 修改评论
ModifyComment(ctx context.Context, in *CommentItem, opts ...grpc.CallOption) (*protobuf.StatusReply, error)
ModifyComment(ctx context.Context, in *CommentItem, opts ...grpc.CallOption) (*StatusReply, error)
// 删除评论
DeleteComment(ctx context.Context, in *DeleteCommentRequest, opts ...grpc.CallOption) (*protobuf.StatusReply, error)
DeleteComment(ctx context.Context, in *DeleteCommentRequest, opts ...grpc.CallOption) (*StatusReply, error)
// 评论点赞处理
IncrCommentLike(ctx context.Context, in *CommentOpIdentityRequest, opts ...grpc.CallOption) (*protobuf.StatusReply, error)
IncrCommentLike(ctx context.Context, in *CommentOpIdentityRequest, opts ...grpc.CallOption) (*StatusReply, error)
// 评论点赞取消处理
DescCommentLike(ctx context.Context, in *CommentOpIdentityRequest, opts ...grpc.CallOption) (*protobuf.StatusReply, error)
DescCommentLike(ctx context.Context, in *CommentOpIdentityRequest, opts ...grpc.CallOption) (*StatusReply, error)
// 评论点踩处理
IncrCommentUnlike(ctx context.Context, in *CommentOpIdentityRequest, opts ...grpc.CallOption) (*protobuf.StatusReply, error)
IncrCommentUnlike(ctx context.Context, in *CommentOpIdentityRequest, opts ...grpc.CallOption) (*StatusReply, error)
// 评论点踩取消处理
DescCommentUnlike(ctx context.Context, in *CommentOpIdentityRequest, opts ...grpc.CallOption) (*protobuf.StatusReply, error)
DescCommentUnlike(ctx context.Context, in *CommentOpIdentityRequest, opts ...grpc.CallOption) (*StatusReply, error)
}
type postClient struct {
@@ -125,7 +124,7 @@ func (c *postClient) GetByKey(ctx context.Context, in *GetPostByKeyRequest, opts
return out, nil
}
func (c *postClient) Search(ctx context.Context, in *protobuf.CmsSearchRequest, opts ...grpc.CallOption) (*PostListReply, error) {
func (c *postClient) Search(ctx context.Context, in *CmsSearchRequest, opts ...grpc.CallOption) (*PostListReply, error) {
cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...)
out := new(PostListReply)
err := c.cc.Invoke(ctx, Post_Search_FullMethodName, in, out, cOpts...)
@@ -135,9 +134,9 @@ func (c *postClient) Search(ctx context.Context, in *protobuf.CmsSearchRequest,
return out, nil
}
func (c *postClient) Create(ctx context.Context, in *PostItem, opts ...grpc.CallOption) (*protobuf.StatusReply, error) {
func (c *postClient) Create(ctx context.Context, in *PostItem, opts ...grpc.CallOption) (*StatusReply, error) {
cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...)
out := new(protobuf.StatusReply)
out := new(StatusReply)
err := c.cc.Invoke(ctx, Post_Create_FullMethodName, in, out, cOpts...)
if err != nil {
return nil, err
@@ -145,9 +144,9 @@ func (c *postClient) Create(ctx context.Context, in *PostItem, opts ...grpc.Call
return out, nil
}
func (c *postClient) Modify(ctx context.Context, in *PostItem, opts ...grpc.CallOption) (*protobuf.StatusReply, error) {
func (c *postClient) Modify(ctx context.Context, in *PostItem, opts ...grpc.CallOption) (*StatusReply, error) {
cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...)
out := new(protobuf.StatusReply)
out := new(StatusReply)
err := c.cc.Invoke(ctx, Post_Modify_FullMethodName, in, out, cOpts...)
if err != nil {
return nil, err
@@ -155,9 +154,9 @@ func (c *postClient) Modify(ctx context.Context, in *PostItem, opts ...grpc.Call
return out, nil
}
func (c *postClient) Delete(ctx context.Context, in *protobuf.IdentRequest, opts ...grpc.CallOption) (*protobuf.StatusReply, error) {
func (c *postClient) Delete(ctx context.Context, in *IdentRequest, opts ...grpc.CallOption) (*StatusReply, error) {
cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...)
out := new(protobuf.StatusReply)
out := new(StatusReply)
err := c.cc.Invoke(ctx, Post_Delete_FullMethodName, in, out, cOpts...)
if err != nil {
return nil, err
@@ -165,9 +164,9 @@ func (c *postClient) Delete(ctx context.Context, in *protobuf.IdentRequest, opts
return out, nil
}
func (c *postClient) IncrPostLike(ctx context.Context, in *PostOpIdentityRequest, opts ...grpc.CallOption) (*protobuf.StatusReply, error) {
func (c *postClient) IncrPostLike(ctx context.Context, in *PostOpIdentityRequest, opts ...grpc.CallOption) (*StatusReply, error) {
cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...)
out := new(protobuf.StatusReply)
out := new(StatusReply)
err := c.cc.Invoke(ctx, Post_IncrPostLike_FullMethodName, in, out, cOpts...)
if err != nil {
return nil, err
@@ -175,9 +174,9 @@ func (c *postClient) IncrPostLike(ctx context.Context, in *PostOpIdentityRequest
return out, nil
}
func (c *postClient) DescPostLike(ctx context.Context, in *PostOpIdentityRequest, opts ...grpc.CallOption) (*protobuf.StatusReply, error) {
func (c *postClient) DescPostLike(ctx context.Context, in *PostOpIdentityRequest, opts ...grpc.CallOption) (*StatusReply, error) {
cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...)
out := new(protobuf.StatusReply)
out := new(StatusReply)
err := c.cc.Invoke(ctx, Post_DescPostLike_FullMethodName, in, out, cOpts...)
if err != nil {
return nil, err
@@ -185,9 +184,9 @@ func (c *postClient) DescPostLike(ctx context.Context, in *PostOpIdentityRequest
return out, nil
}
func (c *postClient) IncrPostUnlike(ctx context.Context, in *PostOpIdentityRequest, opts ...grpc.CallOption) (*protobuf.StatusReply, error) {
func (c *postClient) IncrPostUnlike(ctx context.Context, in *PostOpIdentityRequest, opts ...grpc.CallOption) (*StatusReply, error) {
cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...)
out := new(protobuf.StatusReply)
out := new(StatusReply)
err := c.cc.Invoke(ctx, Post_IncrPostUnlike_FullMethodName, in, out, cOpts...)
if err != nil {
return nil, err
@@ -195,9 +194,9 @@ func (c *postClient) IncrPostUnlike(ctx context.Context, in *PostOpIdentityReque
return out, nil
}
func (c *postClient) DescPostUnlike(ctx context.Context, in *PostOpIdentityRequest, opts ...grpc.CallOption) (*protobuf.StatusReply, error) {
func (c *postClient) DescPostUnlike(ctx context.Context, in *PostOpIdentityRequest, opts ...grpc.CallOption) (*StatusReply, error) {
cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...)
out := new(protobuf.StatusReply)
out := new(StatusReply)
err := c.cc.Invoke(ctx, Post_DescPostUnlike_FullMethodName, in, out, cOpts...)
if err != nil {
return nil, err
@@ -215,9 +214,9 @@ func (c *postClient) CommentList(ctx context.Context, in *CommentListRequest, op
return out, nil
}
func (c *postClient) AddComment(ctx context.Context, in *CommentItem, opts ...grpc.CallOption) (*protobuf.StatusReply, error) {
func (c *postClient) AddComment(ctx context.Context, in *CommentItem, opts ...grpc.CallOption) (*StatusReply, error) {
cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...)
out := new(protobuf.StatusReply)
out := new(StatusReply)
err := c.cc.Invoke(ctx, Post_AddComment_FullMethodName, in, out, cOpts...)
if err != nil {
return nil, err
@@ -225,9 +224,9 @@ func (c *postClient) AddComment(ctx context.Context, in *CommentItem, opts ...gr
return out, nil
}
func (c *postClient) ModifyComment(ctx context.Context, in *CommentItem, opts ...grpc.CallOption) (*protobuf.StatusReply, error) {
func (c *postClient) ModifyComment(ctx context.Context, in *CommentItem, opts ...grpc.CallOption) (*StatusReply, error) {
cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...)
out := new(protobuf.StatusReply)
out := new(StatusReply)
err := c.cc.Invoke(ctx, Post_ModifyComment_FullMethodName, in, out, cOpts...)
if err != nil {
return nil, err
@@ -235,9 +234,9 @@ func (c *postClient) ModifyComment(ctx context.Context, in *CommentItem, opts ..
return out, nil
}
func (c *postClient) DeleteComment(ctx context.Context, in *DeleteCommentRequest, opts ...grpc.CallOption) (*protobuf.StatusReply, error) {
func (c *postClient) DeleteComment(ctx context.Context, in *DeleteCommentRequest, opts ...grpc.CallOption) (*StatusReply, error) {
cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...)
out := new(protobuf.StatusReply)
out := new(StatusReply)
err := c.cc.Invoke(ctx, Post_DeleteComment_FullMethodName, in, out, cOpts...)
if err != nil {
return nil, err
@@ -245,9 +244,9 @@ func (c *postClient) DeleteComment(ctx context.Context, in *DeleteCommentRequest
return out, nil
}
func (c *postClient) IncrCommentLike(ctx context.Context, in *CommentOpIdentityRequest, opts ...grpc.CallOption) (*protobuf.StatusReply, error) {
func (c *postClient) IncrCommentLike(ctx context.Context, in *CommentOpIdentityRequest, opts ...grpc.CallOption) (*StatusReply, error) {
cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...)
out := new(protobuf.StatusReply)
out := new(StatusReply)
err := c.cc.Invoke(ctx, Post_IncrCommentLike_FullMethodName, in, out, cOpts...)
if err != nil {
return nil, err
@@ -255,9 +254,9 @@ func (c *postClient) IncrCommentLike(ctx context.Context, in *CommentOpIdentityR
return out, nil
}
func (c *postClient) DescCommentLike(ctx context.Context, in *CommentOpIdentityRequest, opts ...grpc.CallOption) (*protobuf.StatusReply, error) {
func (c *postClient) DescCommentLike(ctx context.Context, in *CommentOpIdentityRequest, opts ...grpc.CallOption) (*StatusReply, error) {
cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...)
out := new(protobuf.StatusReply)
out := new(StatusReply)
err := c.cc.Invoke(ctx, Post_DescCommentLike_FullMethodName, in, out, cOpts...)
if err != nil {
return nil, err
@@ -265,9 +264,9 @@ func (c *postClient) DescCommentLike(ctx context.Context, in *CommentOpIdentityR
return out, nil
}
func (c *postClient) IncrCommentUnlike(ctx context.Context, in *CommentOpIdentityRequest, opts ...grpc.CallOption) (*protobuf.StatusReply, error) {
func (c *postClient) IncrCommentUnlike(ctx context.Context, in *CommentOpIdentityRequest, opts ...grpc.CallOption) (*StatusReply, error) {
cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...)
out := new(protobuf.StatusReply)
out := new(StatusReply)
err := c.cc.Invoke(ctx, Post_IncrCommentUnlike_FullMethodName, in, out, cOpts...)
if err != nil {
return nil, err
@@ -275,9 +274,9 @@ func (c *postClient) IncrCommentUnlike(ctx context.Context, in *CommentOpIdentit
return out, nil
}
func (c *postClient) DescCommentUnlike(ctx context.Context, in *CommentOpIdentityRequest, opts ...grpc.CallOption) (*protobuf.StatusReply, error) {
func (c *postClient) DescCommentUnlike(ctx context.Context, in *CommentOpIdentityRequest, opts ...grpc.CallOption) (*StatusReply, error) {
cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...)
out := new(protobuf.StatusReply)
out := new(StatusReply)
err := c.cc.Invoke(ctx, Post_DescCommentUnlike_FullMethodName, in, out, cOpts...)
if err != nil {
return nil, err
@@ -298,37 +297,37 @@ type PostServer interface {
// 获取文章详情 By Key
GetByKey(context.Context, *GetPostByKeyRequest) (*PostItem, error)
// 搜索文章
Search(context.Context, *protobuf.CmsSearchRequest) (*PostListReply, error)
Search(context.Context, *CmsSearchRequest) (*PostListReply, error)
// 发布文章
Create(context.Context, *PostItem) (*protobuf.StatusReply, error)
Create(context.Context, *PostItem) (*StatusReply, error)
// 修改文章
Modify(context.Context, *PostItem) (*protobuf.StatusReply, error)
Modify(context.Context, *PostItem) (*StatusReply, error)
// 删除文章
Delete(context.Context, *protobuf.IdentRequest) (*protobuf.StatusReply, error)
Delete(context.Context, *IdentRequest) (*StatusReply, error)
// 文章点赞处理
IncrPostLike(context.Context, *PostOpIdentityRequest) (*protobuf.StatusReply, error)
IncrPostLike(context.Context, *PostOpIdentityRequest) (*StatusReply, error)
// 文章点赞取消处理
DescPostLike(context.Context, *PostOpIdentityRequest) (*protobuf.StatusReply, error)
DescPostLike(context.Context, *PostOpIdentityRequest) (*StatusReply, error)
// 文章点踩处理
IncrPostUnlike(context.Context, *PostOpIdentityRequest) (*protobuf.StatusReply, error)
IncrPostUnlike(context.Context, *PostOpIdentityRequest) (*StatusReply, error)
// 文章点踩取消处理
DescPostUnlike(context.Context, *PostOpIdentityRequest) (*protobuf.StatusReply, error)
DescPostUnlike(context.Context, *PostOpIdentityRequest) (*StatusReply, error)
// 评论列表
CommentList(context.Context, *CommentListRequest) (*CommentListResponse, error)
// 发布评论
AddComment(context.Context, *CommentItem) (*protobuf.StatusReply, error)
AddComment(context.Context, *CommentItem) (*StatusReply, error)
// 修改评论
ModifyComment(context.Context, *CommentItem) (*protobuf.StatusReply, error)
ModifyComment(context.Context, *CommentItem) (*StatusReply, error)
// 删除评论
DeleteComment(context.Context, *DeleteCommentRequest) (*protobuf.StatusReply, error)
DeleteComment(context.Context, *DeleteCommentRequest) (*StatusReply, error)
// 评论点赞处理
IncrCommentLike(context.Context, *CommentOpIdentityRequest) (*protobuf.StatusReply, error)
IncrCommentLike(context.Context, *CommentOpIdentityRequest) (*StatusReply, error)
// 评论点赞取消处理
DescCommentLike(context.Context, *CommentOpIdentityRequest) (*protobuf.StatusReply, error)
DescCommentLike(context.Context, *CommentOpIdentityRequest) (*StatusReply, error)
// 评论点踩处理
IncrCommentUnlike(context.Context, *CommentOpIdentityRequest) (*protobuf.StatusReply, error)
IncrCommentUnlike(context.Context, *CommentOpIdentityRequest) (*StatusReply, error)
// 评论点踩取消处理
DescCommentUnlike(context.Context, *CommentOpIdentityRequest) (*protobuf.StatusReply, error)
DescCommentUnlike(context.Context, *CommentOpIdentityRequest) (*StatusReply, error)
}
// UnimplementedPostServer should be embedded to have
@@ -347,52 +346,52 @@ func (UnimplementedPostServer) GetByIdentity(context.Context, *GetPostRequest) (
func (UnimplementedPostServer) GetByKey(context.Context, *GetPostByKeyRequest) (*PostItem, error) {
return nil, status.Error(codes.Unimplemented, "method GetByKey not implemented")
}
func (UnimplementedPostServer) Search(context.Context, *protobuf.CmsSearchRequest) (*PostListReply, error) {
func (UnimplementedPostServer) Search(context.Context, *CmsSearchRequest) (*PostListReply, error) {
return nil, status.Error(codes.Unimplemented, "method Search not implemented")
}
func (UnimplementedPostServer) Create(context.Context, *PostItem) (*protobuf.StatusReply, error) {
func (UnimplementedPostServer) Create(context.Context, *PostItem) (*StatusReply, error) {
return nil, status.Error(codes.Unimplemented, "method Create not implemented")
}
func (UnimplementedPostServer) Modify(context.Context, *PostItem) (*protobuf.StatusReply, error) {
func (UnimplementedPostServer) Modify(context.Context, *PostItem) (*StatusReply, error) {
return nil, status.Error(codes.Unimplemented, "method Modify not implemented")
}
func (UnimplementedPostServer) Delete(context.Context, *protobuf.IdentRequest) (*protobuf.StatusReply, error) {
func (UnimplementedPostServer) Delete(context.Context, *IdentRequest) (*StatusReply, error) {
return nil, status.Error(codes.Unimplemented, "method Delete not implemented")
}
func (UnimplementedPostServer) IncrPostLike(context.Context, *PostOpIdentityRequest) (*protobuf.StatusReply, error) {
func (UnimplementedPostServer) IncrPostLike(context.Context, *PostOpIdentityRequest) (*StatusReply, error) {
return nil, status.Error(codes.Unimplemented, "method IncrPostLike not implemented")
}
func (UnimplementedPostServer) DescPostLike(context.Context, *PostOpIdentityRequest) (*protobuf.StatusReply, error) {
func (UnimplementedPostServer) DescPostLike(context.Context, *PostOpIdentityRequest) (*StatusReply, error) {
return nil, status.Error(codes.Unimplemented, "method DescPostLike not implemented")
}
func (UnimplementedPostServer) IncrPostUnlike(context.Context, *PostOpIdentityRequest) (*protobuf.StatusReply, error) {
func (UnimplementedPostServer) IncrPostUnlike(context.Context, *PostOpIdentityRequest) (*StatusReply, error) {
return nil, status.Error(codes.Unimplemented, "method IncrPostUnlike not implemented")
}
func (UnimplementedPostServer) DescPostUnlike(context.Context, *PostOpIdentityRequest) (*protobuf.StatusReply, error) {
func (UnimplementedPostServer) DescPostUnlike(context.Context, *PostOpIdentityRequest) (*StatusReply, error) {
return nil, status.Error(codes.Unimplemented, "method DescPostUnlike not implemented")
}
func (UnimplementedPostServer) CommentList(context.Context, *CommentListRequest) (*CommentListResponse, error) {
return nil, status.Error(codes.Unimplemented, "method CommentList not implemented")
}
func (UnimplementedPostServer) AddComment(context.Context, *CommentItem) (*protobuf.StatusReply, error) {
func (UnimplementedPostServer) AddComment(context.Context, *CommentItem) (*StatusReply, error) {
return nil, status.Error(codes.Unimplemented, "method AddComment not implemented")
}
func (UnimplementedPostServer) ModifyComment(context.Context, *CommentItem) (*protobuf.StatusReply, error) {
func (UnimplementedPostServer) ModifyComment(context.Context, *CommentItem) (*StatusReply, error) {
return nil, status.Error(codes.Unimplemented, "method ModifyComment not implemented")
}
func (UnimplementedPostServer) DeleteComment(context.Context, *DeleteCommentRequest) (*protobuf.StatusReply, error) {
func (UnimplementedPostServer) DeleteComment(context.Context, *DeleteCommentRequest) (*StatusReply, error) {
return nil, status.Error(codes.Unimplemented, "method DeleteComment not implemented")
}
func (UnimplementedPostServer) IncrCommentLike(context.Context, *CommentOpIdentityRequest) (*protobuf.StatusReply, error) {
func (UnimplementedPostServer) IncrCommentLike(context.Context, *CommentOpIdentityRequest) (*StatusReply, error) {
return nil, status.Error(codes.Unimplemented, "method IncrCommentLike not implemented")
}
func (UnimplementedPostServer) DescCommentLike(context.Context, *CommentOpIdentityRequest) (*protobuf.StatusReply, error) {
func (UnimplementedPostServer) DescCommentLike(context.Context, *CommentOpIdentityRequest) (*StatusReply, error) {
return nil, status.Error(codes.Unimplemented, "method DescCommentLike not implemented")
}
func (UnimplementedPostServer) IncrCommentUnlike(context.Context, *CommentOpIdentityRequest) (*protobuf.StatusReply, error) {
func (UnimplementedPostServer) IncrCommentUnlike(context.Context, *CommentOpIdentityRequest) (*StatusReply, error) {
return nil, status.Error(codes.Unimplemented, "method IncrCommentUnlike not implemented")
}
func (UnimplementedPostServer) DescCommentUnlike(context.Context, *CommentOpIdentityRequest) (*protobuf.StatusReply, error) {
func (UnimplementedPostServer) DescCommentUnlike(context.Context, *CommentOpIdentityRequest) (*StatusReply, error) {
return nil, status.Error(codes.Unimplemented, "method DescCommentUnlike not implemented")
}
func (UnimplementedPostServer) testEmbeddedByValue() {}
@@ -470,7 +469,7 @@ func _Post_GetByKey_Handler(srv interface{}, ctx context.Context, dec func(inter
}
func _Post_Search_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(protobuf.CmsSearchRequest)
in := new(CmsSearchRequest)
if err := dec(in); err != nil {
return nil, err
}
@@ -482,7 +481,7 @@ func _Post_Search_Handler(srv interface{}, ctx context.Context, dec func(interfa
FullMethod: Post_Search_FullMethodName,
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(PostServer).Search(ctx, req.(*protobuf.CmsSearchRequest))
return srv.(PostServer).Search(ctx, req.(*CmsSearchRequest))
}
return interceptor(ctx, in, info, handler)
}
@@ -524,7 +523,7 @@ func _Post_Modify_Handler(srv interface{}, ctx context.Context, dec func(interfa
}
func _Post_Delete_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(protobuf.IdentRequest)
in := new(IdentRequest)
if err := dec(in); err != nil {
return nil, err
}
@@ -536,7 +535,7 @@ func _Post_Delete_Handler(srv interface{}, ctx context.Context, dec func(interfa
FullMethod: Post_Delete_FullMethodName,
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(PostServer).Delete(ctx, req.(*protobuf.IdentRequest))
return srv.(PostServer).Delete(ctx, req.(*IdentRequest))
}
return interceptor(ctx, in, info, handler)
}