v2: no tfa in cancle req

Signed-off-by: nfel <nfilsaraee@gmail.com>
This commit is contained in:
nfel 2025-03-04 15:25:28 +03:30
parent ffe8c384fc
commit a3b3c56872
Signed by: nfel
GPG Key ID: DCC0BF3F92B0D45F
2 changed files with 12 additions and 6 deletions

View File

@ -85,6 +85,12 @@ message IdReqWithIAM {
InternalIAM iam = 2;
}
message IdReqWithIAMAndTFA {
int64 id = 1;
InternalIAM iam = 2;
TFA tfa = 6;
}
// Used for endpoints that need token and Query Param
message IAMWithQP {
InternalIAM iam = 1;
@ -202,11 +208,11 @@ message BankInfo {
}
/* Two Factor Authentication */
message IdReqWithIAMAndTFA {
int64 id = 1;
InternalIAM iam = 2;
string tfa_code = 3;
}
// message IdReqWithIAMAndTFA {
// int64 id = 1;
// InternalIAM iam = 2;
// string tfa_code = 3;
// }
message TFAReq {
InternalIAM iam = 1;
optional string mobile = 2;

View File

@ -16,7 +16,7 @@ service MarketplaceSrv {
rpc Purchase(PurchaseReq) returns (PurchaseRes); // purchase from an order
rpc CancelOrder(auth.v1.IdReqWithIAM) returns (base.v1.StatusRes); // cancel an order
rpc CancelOrder(auth.v1.IdReqWithIAMAndTFA) returns (base.v1.StatusRes); // cancel an order
rpc GetMarketPubHistory(OrderListFilter) returns (MarketOrderList); // This is for public market
rpc GetUserMarketHistory(OrderListFilter) returns (MarketOrderList); // list of order + purchase related to buying an asset