refactor: localize protobuf definitions
This commit is contained in:
@@ -15,7 +15,7 @@ import (
|
||||
)
|
||||
|
||||
// 将商品增加至购物车
|
||||
func Create(ctx context.Context, in *pb.CartAddRequest) (reply *pb.StatusReply, err error) {
|
||||
func Create(ctx context.Context, in *pb.CartAddRequest) (reply *pb.OrderStatusReply, err error) {
|
||||
auth, err := service.ParseMetaCtx(ctx, nil)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
@@ -52,7 +52,7 @@ func Create(ctx context.Context, in *pb.CartAddRequest) (reply *pb.StatusReply,
|
||||
return nil, errcode.ErrDB
|
||||
}
|
||||
|
||||
return &pb.StatusReply{
|
||||
return &pb.OrderStatusReply{
|
||||
Code: 0,
|
||||
Identity: data.Identity,
|
||||
Message: "OK",
|
||||
|
||||
Reference in New Issue
Block a user