diff --git a/base/v1/msg.proto b/base/v1/msg.proto index 918db7f..5384341 100644 --- a/base/v1/msg.proto +++ b/base/v1/msg.proto @@ -13,7 +13,15 @@ message IdRes { message IdReq { int64 id = 1; } -message Pagination { + + +message PaginationReq { + uint32 page = 1; // in query param it will be p + uint32 page_size = 2; // in query param it will be pz +} + + +message PaginationResp { uint32 page = 1; // in query param it will be p uint32 page_size = 2; // in query param it will be pz optional uint32 total_count = 3; // reponse @@ -21,5 +29,5 @@ message Pagination { message BaseQueryParam { repeated string sort = 2; // sort by - optional Pagination page = 3; + optional PaginationReq page = 3; } diff --git a/market/v1/srv.proto b/market/v1/srv.proto index f7e7e0f..9357ddd 100644 --- a/market/v1/srv.proto +++ b/market/v1/srv.proto @@ -7,21 +7,24 @@ import "base/v1/msg.proto"; import "market/v1/msg.proto"; service MarketplaceSrv { - rpc GetAssetList(MarketAssetListReq) returns (MarketAssetList); // assets that can be listed in marketplace - rpc GetSellerList(OrderListFilter) returns (MarketOrderList); // list of orders by sellers - rpc GetBuyerList(OrderListFilter) returns (MarketOrderList); // list of orders by buyers rpc GetMarketOrderDet(auth.v1.IdReqWithIAM) returns (MarketOrder); // details of an order by id rpc GetAllOrderList(OrderListFilter) returns (MarketOrderList); // list of all orders (seller and buyer combined) - rpc GetMarketHistory(OrderListFilter) returns (MarketOrderList); // This is for public market + rpc GetAssetList(MarketAssetListReq) returns (MarketAssetList); // assets that can be listed in marketplace - rpc Purchace(PurchaseReq) returns (PurchaseRes); // purchase from an order + rpc GetSellerList(OrderListFilter) returns (MarketOrderList); // list of orders by sellers + rpc GetBuyerList(OrderListFilter) returns (MarketOrderList); // list of orders by buyers rpc NewSellOrder(NewMarketReq) returns (NewMarketRes); // insert new sell order to market rpc NewBuyOrder(NewMarketReq) returns (NewMarketRes); // insert new buy order to market + + rpc Purchace(PurchaseReq) returns (PurchaseRes); // purchase from an order + rpc CancelOrder(CancelOrderReq) returns (base.v1.StatusRes); // cancel an order + rpc GetMarketHistory(OrderListFilter) returns (MarketOrderList); // This is for public market + rpc GetBuyHistory(OrderListFilterWithIAM) returns (MarketOrderList); // list of order + purchase related to buying an asset rpc GetSellHistory(OrderListFilterWithIAM) returns (MarketOrderList); // list of order + purchase related to selling an asset }