syntax = "proto3"; import "product.proto"; package shop; message ProductRemark { repeated string moduleIds = 1; int32 chCount = 2; int32 authCount = 3; int32 devCount = 4; repeated string sdkIds = 5; int32 serveYear = 6; } message AddCartReq { string productId = 1; int32 quantity = 2; ProductRemark productRemark = 3; string merchantNo = 4; bool isSelected = 5; } message AddCartReply { } message DeleteCartReq { repeated string ids = 1; } message DeleteCartReply { } message FindMyCartReq { } message CartProduct { string id = 1; string productId = 2; ProductDetail productDetail = 3; int32 quantity = 4; ProductRemark productRemark = 5; bool isSelected = 6; float price = 7; } message FindMyCartReply { repeated CartProduct list = 1; } service CartService { rpc FindMyCart(FindMyCartReq) returns (FindMyCartReply) {} rpc Add(AddCartReq) returns (AddCartReply) {} rpc Delete(DeleteCartReq) returns (DeleteCartReply) {} }