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

@@ -15,7 +15,7 @@ import (
)
// 新建评论
func AddComment(ctx context.Context, in *pb.CommentItem) (reply *pb.StatusReply, err error) {
func AddComment(ctx context.Context, in *pb.CommentItem) (reply *pb.DataStatusReply, err error) {
auth, err := service.ParseMetaCtx(ctx, nil)
if err != nil {
return nil, err
@@ -32,7 +32,7 @@ func AddComment(ctx context.Context, in *pb.CommentItem) (reply *pb.StatusReply,
printer.Error(err.Error())
return nil, errcode.ErrDB
}
return &pb.StatusReply{
return &pb.DataStatusReply{
Data: data.Identity,
Timeseq: time.Now().UnixNano(),
}, nil