refactor: localize protobuf definitions
This commit is contained in:
@@ -19,7 +19,7 @@ import (
|
||||
)
|
||||
|
||||
// 将购物车的数据提交生成订单
|
||||
func Submit(ctx context.Context, in *pb.SubmitRequest) (reply *pb.StatusReply, err error) {
|
||||
func Submit(ctx context.Context, in *pb.SubmitRequest) (reply *pb.OrderStatusReply, err error) {
|
||||
// parse authorization meta.
|
||||
RoleValve := &service.ParseOptions{RoleValue: "Mall_Admin"}
|
||||
if in.GetAddress() != nil {
|
||||
@@ -236,7 +236,7 @@ func Submit(ctx context.Context, in *pb.SubmitRequest) (reply *pb.StatusReply, e
|
||||
firstOrderNo = summary[0].OrderNo
|
||||
}
|
||||
|
||||
return &pb.StatusReply{
|
||||
return &pb.OrderStatusReply{
|
||||
Code: 0,
|
||||
Identity: firstOrderNo,
|
||||
Message: strings.Join(keys, ","),
|
||||
|
||||
Reference in New Issue
Block a user