MarketPlace: new srv market added #14

Merged
mapoofano merged 10 commits from MarketPlace into v2 2025-02-19 12:46:29 +00:00
2 changed files with 18 additions and 7 deletions
Showing only changes of commit fd4c1da9a4 - Show all commits

View File

@ -13,7 +13,15 @@ message IdRes {
message IdReq { message IdReq {
int64 id = 1; 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 = 1; // in query param it will be p
uint32 page_size = 2; // in query param it will be pz uint32 page_size = 2; // in query param it will be pz
optional uint32 total_count = 3; // reponse optional uint32 total_count = 3; // reponse
@ -21,5 +29,5 @@ message Pagination {
message BaseQueryParam { message BaseQueryParam {
repeated string sort = 2; // sort by repeated string sort = 2; // sort by
optional Pagination page = 3; optional PaginationReq page = 3;
} }

View File

@ -7,21 +7,24 @@ import "base/v1/msg.proto";
import "market/v1/msg.proto"; import "market/v1/msg.proto";
service MarketplaceSrv { 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 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 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 NewSellOrder(NewMarketReq) returns (NewMarketRes); // insert new sell order to market
rpc NewBuyOrder(NewMarketReq) returns (NewMarketRes); // insert new buy 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 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 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 rpc GetSellHistory(OrderListFilterWithIAM) returns (MarketOrderList); // list of order + purchase related to selling an asset
} }