refactor: localize protobuf definitions
This commit is contained in:
@@ -12,7 +12,7 @@ import (
|
||||
)
|
||||
|
||||
// 取消订单
|
||||
func Cancel(ctx context.Context, in *pb.CancelRequest) (reply *pb.StatusReply, err error) {
|
||||
func Cancel(ctx context.Context, in *pb.CancelRequest) (reply *pb.OrderStatusReply, err error) {
|
||||
// parse authorization meta.
|
||||
_, err = service.ParseMetaCtx(ctx, nil)
|
||||
if err != nil {
|
||||
@@ -50,7 +50,7 @@ func Cancel(ctx context.Context, in *pb.CancelRequest) (reply *pb.StatusReply, e
|
||||
}
|
||||
}
|
||||
|
||||
return &pb.StatusReply{
|
||||
return &pb.OrderStatusReply{
|
||||
Code: 0,
|
||||
Identity: summary.Identity,
|
||||
Message: "OK",
|
||||
|
||||
Reference in New Issue
Block a user