refactor: localize protobuf definitions
This commit is contained in:
@@ -2,9 +2,9 @@
|
||||
package server
|
||||
|
||||
import (
|
||||
"context"
|
||||
"bsm/full/module/base/cms/internal/logic/post"
|
||||
pb "bsm/full/module/base/cms/pb"
|
||||
"context"
|
||||
)
|
||||
|
||||
type PostServer struct {
|
||||
@@ -31,7 +31,7 @@ func (s *PostServer) GetByKey(ctx context.Context, in *pb.GetPostByKeyRequest) (
|
||||
}
|
||||
|
||||
// 搜索文章
|
||||
func (s *PostServer) Search(ctx context.Context, in *pb.SearchRequest) (*pb.PostListReply, error) {
|
||||
func (s *PostServer) Search(ctx context.Context, in *pb.CmsSearchRequest) (*pb.PostListReply, error) {
|
||||
return post.Search(ctx, in)
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user