MarketPlace: new srv market added #14

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

View File

@ -95,6 +95,10 @@ message ReqWithIAMAndParams {
optional bool accepted = 2; optional bool accepted = 2;
} }
message ReqWithOptioanlIAM {
optional InternalIAM iam = 1;
}
/* /*
User User
*/ */

View File

@ -30,6 +30,14 @@ message MarketOrder {
// repeated string attachments = 14; // possible files included by seller/buyer // repeated string attachments = 14; // possible files included by seller/buyer
} }
message MarketAssetListReq{
base.v1.BaseQueryParam base = 1;
optional auth.v1.InternalIAM iam = 2;
}
message MarketAssetList{
repeated wallet.v1.Asset list = 1;
}
message PurchaseReq { message PurchaseReq {
uint64 order_id = 1; uint64 order_id = 1;
double amount = 2; double amount = 2;

View File

@ -6,6 +6,7 @@ import "base/v1/msg.proto";
import "market/v1/msg.proto"; import "market/v1/msg.proto";
service MarketplaceSrv { service MarketplaceSrv {
rpc GetAssetList(MarketAssetListReq) returns (MarketAssetList);
rpc GetSellerList(OrderListFilter) returns (MarketOrderList); rpc GetSellerList(OrderListFilter) returns (MarketOrderList);
rpc GetBuyerList(OrderListFilter) returns (MarketOrderList); rpc GetBuyerList(OrderListFilter) returns (MarketOrderList);
rpc GetAllOrderList(OrderListFilter) returns (MarketOrderList); rpc GetAllOrderList(OrderListFilter) returns (MarketOrderList);