238 lines
4.6 KiB
Protocol Buffer
238 lines
4.6 KiB
Protocol Buffer
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 {
|
|
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 zltxRsMiXue(RsCouponGrantReq) returns(RsCouponGrantRes);
|
|
|
|
rpc marketKeySend(MarketKeySendReq) returns(MarketKeySendRes);
|
|
rpc marketKeyDiscard(MarketKeyDiscardReq) returns(MarketKeyDiscardRes);
|
|
rpc marketQuery(MarketQueryReq) returns(MarketQueryRes);
|
|
|
|
rpc rsCouponGrant(RsCouponGrantReq) returns(RsCouponGrantRes);
|
|
}
|
|
|
|
message RsCouponGrantReq {
|
|
string vendorNo = 1;
|
|
string data = 2;
|
|
// message Data{
|
|
// string sipOrderNo = 1;
|
|
// string voucherTag = 2;
|
|
// int32 accountType = 3;
|
|
// string accountNo = 4;
|
|
// string accountInfo = 5;
|
|
// int32 num = 6;
|
|
// }
|
|
string sign = 3;
|
|
}
|
|
|
|
|
|
message RsCouponGrantRes {
|
|
string code = 1;
|
|
string message = 2;
|
|
string status = 3;
|
|
Data data = 4;
|
|
message Data {
|
|
string sipOrderNo = 1;
|
|
string vendorOrderNo = 2;
|
|
repeated VoucherInfo voucherInfo = 3;
|
|
message VoucherInfo {
|
|
string voucherCode = 1;
|
|
string voucherPassword = 2;
|
|
string voucherDesc = 3;
|
|
string qrCodeUrl = 4;
|
|
string startTime = 5;
|
|
string endTime = 6;
|
|
}
|
|
}
|
|
}
|
|
|
|
|
|
|
|
message MarketQueryRes {
|
|
string errCode=1;
|
|
string msg=2;
|
|
Data data=3;
|
|
message Data{
|
|
string voucher_id = 1;
|
|
string voucher_code = 2;
|
|
string voucher_status = 5;
|
|
}
|
|
}
|
|
|
|
message MarketQueryReq {
|
|
string app_id = 1;
|
|
uint64 sign = 2;
|
|
string req_code = 3;
|
|
string mem_id = 4;
|
|
string req_serial_no = 5;
|
|
string timestamp = 6;
|
|
string voucher_id = 8;
|
|
string voucher_code = 9;
|
|
}
|
|
|
|
|
|
message MarketKeyDiscardRes {
|
|
string errCode=1;
|
|
string msg=2;
|
|
Data data=3;
|
|
message Data{
|
|
string voucher_id = 1;
|
|
string voucher_code = 2;
|
|
string voucher_date = 4;
|
|
string status = 5;
|
|
}
|
|
}
|
|
|
|
message MarketKeyDiscardReq {
|
|
string app_id = 1;
|
|
uint64 sign = 2;
|
|
string req_code = 3;
|
|
string mem_id = 4;
|
|
string req_serial_no = 5;
|
|
string timestamp = 6;
|
|
string voucher_id = 8;
|
|
string voucher_code = 9;
|
|
}
|
|
|
|
|
|
message MarketKeySendRes {
|
|
string errCode=1;
|
|
string msg=2;
|
|
Data data=3;
|
|
message Data{
|
|
string voucher_id = 1;
|
|
string voucher_code = 2;
|
|
string short_url = 3;
|
|
string voucher_sdate = 4;
|
|
string voucher_edate = 5;
|
|
string code_type = 6;
|
|
}
|
|
}
|
|
|
|
message MarketKeySendReq {
|
|
string app_id = 1;
|
|
uint64 sign = 2;
|
|
string req_code = 3;
|
|
string mem_id = 4;
|
|
string req_serial_no = 5;
|
|
string timestamp = 6;
|
|
string pos_id = 7;
|
|
string voucher_id = 8;
|
|
int64 voucher_num = 9;
|
|
string mobile_no = 10;
|
|
string send_msg = 11;
|
|
}
|
|
|
|
|
|
message ZltxRechargeProductRes {
|
|
string code=1;
|
|
string message=2;
|
|
repeated Product products=3;
|
|
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 {
|
|
int64 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 {
|
|
int64 merchantId = 1;
|
|
uint64 timeStamp = 2;
|
|
string sign = 3;
|
|
string outTradeNo = 4;
|
|
}
|
|
|
|
message ZltxOrderCardReq {
|
|
int64 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 {
|
|
uint64 merchantId = 1;
|
|
uint64 timeStamp = 2;
|
|
string sign = 3;
|
|
string outTradeNo = 4;
|
|
}
|
|
|
|
message ZltxOrderRechargeReq {
|
|
uint64 merchantId = 1;
|
|
string sign = 2;
|
|
uint64 timeStamp = 3;
|
|
string outTradeNo = 4;
|
|
int64 productId=5;
|
|
string rechargeAccount=6;
|
|
uint32 accountType=7;
|
|
int32 number=8;
|
|
string notifyUrl=9;
|
|
string extendParameter=10;
|
|
}
|