v2: pagination total_count (removed optional)
Signed-off-by: nfel <nfilsaraee@gmail.com>
This commit is contained in:
parent
5d163cac54
commit
b6fe01f00b
@ -34,7 +34,7 @@ message PermissionList {
|
|||||||
repeated Permission list = 1;
|
repeated Permission list = 1;
|
||||||
uint32 page_no = 2;
|
uint32 page_no = 2;
|
||||||
uint32 page_size = 3;
|
uint32 page_size = 3;
|
||||||
optional uint32 total_count = 4;
|
uint32 total_count = 4;
|
||||||
}
|
}
|
||||||
|
|
||||||
/*
|
/*
|
||||||
@ -206,7 +206,7 @@ message BankInfoList {
|
|||||||
repeated BankInfo list = 1;
|
repeated BankInfo list = 1;
|
||||||
uint32 page_no = 2;
|
uint32 page_no = 2;
|
||||||
uint32 page_size = 3;
|
uint32 page_size = 3;
|
||||||
optional uint32 total_count = 4;
|
uint32 total_count = 4;
|
||||||
}
|
}
|
||||||
|
|
||||||
// Status 0: Fail Verify, 1: Verified, 2: Does not Match user's credential , 3:
|
// Status 0: Fail Verify, 1: Verified, 2: Does not Match user's credential , 3:
|
||||||
@ -300,5 +300,5 @@ message BasicUserInfoList {
|
|||||||
repeated BasicUserInfo list = 1;
|
repeated BasicUserInfo list = 1;
|
||||||
uint32 page_no = 2;
|
uint32 page_no = 2;
|
||||||
uint32 page_size = 3;
|
uint32 page_size = 3;
|
||||||
optional uint32 total_count = 4;
|
uint32 total_count = 4;
|
||||||
}
|
}
|
||||||
|
|||||||
@ -22,5 +22,5 @@ message PaginationRespSample {
|
|||||||
|
|
||||||
uint32 page_no = 2;
|
uint32 page_no = 2;
|
||||||
uint32 page_size = 3;
|
uint32 page_size = 3;
|
||||||
optional uint32 total_count = 4;
|
uint32 total_count = 4;
|
||||||
}
|
}
|
||||||
|
|||||||
@ -35,7 +35,8 @@ message CalcMarketReq {
|
|||||||
double amount = 4;
|
double amount = 4;
|
||||||
double unit_price = 5;
|
double unit_price = 5;
|
||||||
MarketParticipantType type = 6;
|
MarketParticipantType type = 6;
|
||||||
wallet.v1.BuyAssetSide req_side = 7; // For Calculation : can be from asset or irt
|
wallet.v1.BuyAssetSide req_side =
|
||||||
|
7; // For Calculation : can be from asset or irt
|
||||||
}
|
}
|
||||||
|
|
||||||
message CalcMarketRes {
|
message CalcMarketRes {
|
||||||
@ -43,7 +44,8 @@ message CalcMarketRes {
|
|||||||
double calculated_asset_amount = 2;
|
double calculated_asset_amount = 2;
|
||||||
wallet.v1.EffectiveCommission commission = 3;
|
wallet.v1.EffectiveCommission commission = 3;
|
||||||
MarketParticipantType type = 4;
|
MarketParticipantType type = 4;
|
||||||
wallet.v1.BuyAssetSide req_side = 5; // For Calculation : can be from asset or irt
|
wallet.v1.BuyAssetSide req_side =
|
||||||
|
5; // For Calculation : can be from asset or irt
|
||||||
}
|
}
|
||||||
|
|
||||||
message MPHistoryFilter {}
|
message MPHistoryFilter {}
|
||||||
@ -75,7 +77,8 @@ message MarketOrder {
|
|||||||
}
|
}
|
||||||
|
|
||||||
message MarketAssetListReq {
|
message MarketAssetListReq {
|
||||||
optional auth.v1.InternalIAM iam = 1; // If not set, will returns only public orders which are limited by a
|
optional auth.v1.InternalIAM iam =
|
||||||
|
1; // If not set, will returns only public orders which are limited by a
|
||||||
optional uint32 page_no = 2;
|
optional uint32 page_no = 2;
|
||||||
optional uint32 page_size = 3;
|
optional uint32 page_size = 3;
|
||||||
}
|
}
|
||||||
@ -84,14 +87,15 @@ message MarketAssetList {
|
|||||||
repeated wallet.v1.Asset list = 1;
|
repeated wallet.v1.Asset list = 1;
|
||||||
uint32 page_no = 2;
|
uint32 page_no = 2;
|
||||||
uint32 page_size = 3;
|
uint32 page_size = 3;
|
||||||
optional uint32 total_count = 4;
|
uint32 total_count = 4;
|
||||||
}
|
}
|
||||||
|
|
||||||
message PurchaseReq {
|
message PurchaseReq {
|
||||||
auth.v1.InternalIAM iam = 1;
|
auth.v1.InternalIAM iam = 1;
|
||||||
uint64 order_id = 2;
|
uint64 order_id = 2;
|
||||||
double amount = 3;
|
double amount = 3;
|
||||||
wallet.v1.BuyAssetSide req_side = 7; // For Calculation : can be from asset or irt
|
wallet.v1.BuyAssetSide req_side =
|
||||||
|
7; // For Calculation : can be from asset or irt
|
||||||
optional bool accepted_contract = 4;
|
optional bool accepted_contract = 4;
|
||||||
optional auth.v1.TFA tfa = 5;
|
optional auth.v1.TFA tfa = 5;
|
||||||
}
|
}
|
||||||
@ -108,7 +112,7 @@ message MarketOrderList {
|
|||||||
repeated MarketOrder list = 1;
|
repeated MarketOrder list = 1;
|
||||||
uint32 page_no = 2;
|
uint32 page_no = 2;
|
||||||
uint32 page_size = 3;
|
uint32 page_size = 3;
|
||||||
optional uint32 total_count = 4;
|
uint32 total_count = 4;
|
||||||
}
|
}
|
||||||
|
|
||||||
message NewMarketReq {
|
message NewMarketReq {
|
||||||
@ -118,7 +122,8 @@ message NewMarketReq {
|
|||||||
double amount = 4;
|
double amount = 4;
|
||||||
double unit_price = 5;
|
double unit_price = 5;
|
||||||
MarketParticipantType type = 6;
|
MarketParticipantType type = 6;
|
||||||
wallet.v1.BuyAssetSide req_side = 7; // For Calculation : can be from asset or irt
|
wallet.v1.BuyAssetSide req_side =
|
||||||
|
7; // For Calculation : can be from asset or irt
|
||||||
MarketOrderSide side = 8;
|
MarketOrderSide side = 8;
|
||||||
optional auth.v1.TFA tfa = 9;
|
optional auth.v1.TFA tfa = 9;
|
||||||
optional bool accepted_contract = 10;
|
optional bool accepted_contract = 10;
|
||||||
|
|||||||
@ -51,7 +51,7 @@ message WalletList {
|
|||||||
|
|
||||||
uint32 page_no = 6;
|
uint32 page_no = 6;
|
||||||
uint32 page_size = 7;
|
uint32 page_size = 7;
|
||||||
optional uint32 total_count = 8;
|
uint32 total_count = 8;
|
||||||
}
|
}
|
||||||
|
|
||||||
message Wallet {
|
message Wallet {
|
||||||
@ -152,7 +152,7 @@ message AssetList {
|
|||||||
repeated Asset list = 1;
|
repeated Asset list = 1;
|
||||||
uint32 page_no = 2;
|
uint32 page_no = 2;
|
||||||
uint32 page_size = 3;
|
uint32 page_size = 3;
|
||||||
optional uint32 total_count = 4;
|
uint32 total_count = 4;
|
||||||
}
|
}
|
||||||
|
|
||||||
message AssetFilter {
|
message AssetFilter {
|
||||||
@ -323,7 +323,7 @@ message BNPLList {
|
|||||||
repeated BNPLInfo list = 1;
|
repeated BNPLInfo list = 1;
|
||||||
uint32 page_no = 2;
|
uint32 page_no = 2;
|
||||||
uint32 page_size = 3;
|
uint32 page_size = 3;
|
||||||
optional uint32 total_count = 4;
|
uint32 total_count = 4;
|
||||||
}
|
}
|
||||||
|
|
||||||
/*
|
/*
|
||||||
@ -334,7 +334,7 @@ message TransactionList {
|
|||||||
repeated Transaction list = 1;
|
repeated Transaction list = 1;
|
||||||
uint32 page_no = 2;
|
uint32 page_no = 2;
|
||||||
uint32 page_size = 3;
|
uint32 page_size = 3;
|
||||||
optional uint32 total_count = 4;
|
uint32 total_count = 4;
|
||||||
}
|
}
|
||||||
|
|
||||||
enum TransactionType {
|
enum TransactionType {
|
||||||
@ -471,7 +471,7 @@ message RedeemTokenResList {
|
|||||||
repeated RedeemTokenRes list = 1;
|
repeated RedeemTokenRes list = 1;
|
||||||
uint32 page_no = 2;
|
uint32 page_no = 2;
|
||||||
uint32 page_size = 3;
|
uint32 page_size = 3;
|
||||||
optional uint32 total_count = 4;
|
uint32 total_count = 4;
|
||||||
}
|
}
|
||||||
|
|
||||||
/*
|
/*
|
||||||
@ -515,7 +515,7 @@ message NetworkList {
|
|||||||
repeated Network list = 1;
|
repeated Network list = 1;
|
||||||
uint32 page_no = 2;
|
uint32 page_no = 2;
|
||||||
uint32 page_size = 3;
|
uint32 page_size = 3;
|
||||||
optional uint32 total_count = 4;
|
uint32 total_count = 4;
|
||||||
}
|
}
|
||||||
|
|
||||||
/*
|
/*
|
||||||
@ -549,7 +549,7 @@ message CommissionList {
|
|||||||
repeated Commission list = 1;
|
repeated Commission list = 1;
|
||||||
uint32 page_no = 2;
|
uint32 page_no = 2;
|
||||||
uint32 page_size = 3;
|
uint32 page_size = 3;
|
||||||
optional uint32 total_count = 4;
|
uint32 total_count = 4;
|
||||||
}
|
}
|
||||||
|
|
||||||
message EffectiveCommission {
|
message EffectiveCommission {
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user