transfer_middleware/cmd/rpc/pb/transfer.proto

221 lines
4.2 KiB
Protocol Buffer
Raw Normal View History

2024-06-07 11:11:04 +08:00
syntax = "proto3";
package transfer;
option go_package="./transfer";
message DefaultRes {
string code=1;
string message=2;
}
message DefaultReq {
string merchantId = 1;
uint64 timeStamp = 2;
string sign = 3;
}
service Transfer {
2024-06-07 11:11:04 +08:00
rpc zltxOrderRecharge(ZltxOrderRechargeReq) returns(DefaultRes);
rpc zltxOrderRechargeQuery(ZltxOrderRechargeQueryReq) returns(ZltxOrderRechargeQueryRes);
rpc zltxOrderCard(ZltxOrderCardReq) returns(DefaultRes);
rpc zltxOrderCardQuery(ZltxOrderCardQueryReq) returns(ZltxOrderCardQueryRes);
rpc zltxOrderSms(ZltxOrderSmsReq) returns(ZltxOrderSmsRes);
rpc zltxRechargeInfo(DefaultReq) returns(ZltxRechargeInfoRes);
rpc zltxRechargeProduct(DefaultReq) returns(ZltxRechargeProductRes);
rpc marketKeySend(MarketKeySendReq) returns(MarketKeySendRes);
rpc marketKeyDiscard(MarketKeyDiscardReq) returns(MarketKeyDiscardRes);
rpc marketQuery(MarketQueryReq) returns(MarketQueryRes);
2024-06-07 11:11:04 +08:00
}
message MarketQueryRes {
string errCode=1;
string msg=2;
Data data=3;
message Data{
string voucherId = 1;
string voucherCode = 2;
string voucherStatus = 5;
}
}
message MarketQueryReq {
string appId = 1;
uint64 sign = 2;
string reqCode = 3;
string memId = 4;
string reqSerialNo = 5;
string timestamp = 6;
string voucherId = 8;
string voucherCode = 9;
2024-06-07 11:11:04 +08:00
}
message MarketKeyDiscardRes {
string errCode=1;
string msg=2;
Data data=3;
message Data{
string voucherId = 1;
string voucherCode = 2;
string voucherDate = 4;
string voucherStatus = 5;
}
}
message MarketKeyDiscardReq {
string appId = 1;
uint64 sign = 2;
string reqCode = 3;
string memId = 4;
string reqSerialNo = 5;
string timestamp = 6;
string voucherId = 8;
string voucherCode = 9;
}
message MarketKeySendRes {
string errCode=1;
string msg=2;
Data data=3;
message Data{
string voucherId = 1;
string voucherCode = 2;
string shortUrl = 3;
string voucherSdate = 4;
string voucherEdate = 5;
string codeType = 6;
}
}
message MarketKeySendReq {
string appId = 1;
uint64 sign = 2;
string reqCode = 3;
string memId = 4;
string reqSerialNo = 5;
string timestamp = 6;
string posId = 7;
string voucherId = 8;
int64 voucherNum = 9;
string mobileNo = 10;
string sendMsg = 11;
}
2024-06-07 11:11:04 +08:00
message ZltxRechargeProductRes {
string code=1;
repeated Product products=2;
message Product{
int64 productId=1;
string channelPrice=2;
string itemName=3;
string originalPrice=4;
}
}
message ZltxRechargeInfoRes {
string code=1;
string balance=2;
}
message ZltxOrderSmsRes {
string code=1;
string message=2;
string status = 3;
string outTradeNo=4;
}
message ZltxOrderSmsReq {
string merchantId = 1;
uint64 timeStamp = 2;
string sign = 3;
string outTradeNo = 4;
}
message ZltxOrderCardQueryRes {
string code=1;
string message=2;
string status = 3;
string outTradeNo=4;
}
message ZltxOrderCardQueryReq {
string merchantId = 1;
uint64 timeStamp = 2;
string sign = 3;
string outTradeNo = 4;
}
message ZltxOrderCardReq {
string merchantId = 1;
string sign = 2;
uint64 timeStamp = 3;
string outTradeNo = 4;
int64 productId=5;
string mobile=6;
uint32 accountType=7;
int32 number=8;
string notifyUrl=9;
string extendParameter=10;
}
message ZltxOrderRechargeQueryRes {
string code=1;
string message=2;
string status = 3;
string outTradeNo=4;
}
message ZltxOrderRechargeQueryReq {
string merchantId = 1;
uint64 timeStamp = 2;
string sign = 3;
string outTradeNo = 4;
}
message ZltxOrderRechargeReq {
string merchantId = 1;
string sign = 2;
uint64 timeStamp = 3;
string outTradeNo = 4;
int64 productId=5;
string mobile=6;
uint32 accountType=7;
int32 number=8;
string notifyUrl=9;
string extendParameter=10;
}
message GetResellerByAppIdReq {
string appId = 1;
}
message GetResellerByAppIdRes {
int64 id=1;
string merchantId=2;
string resellerId=3;
string appId=4;
string posId=5;
string storeId=6;
int32 apiMod=7;
string publicKey=8;
string privateKey=9;
string merchantPublicKey=10;
string secretKey=11;
string notifyUrl=12;
string subscribeEvent=13;
int32 status=14;
string createTime=15;
}