114 lines
2.5 KiB
Protocol Buffer
114 lines
2.5 KiB
Protocol Buffer
syntax = "proto3";
|
|
package tradde.resellerv1;
|
|
option go_package = "./trade/resellerv1;resellerv1";
|
|
|
|
service Card {
|
|
// 创建卡密订单
|
|
rpc CreateCardOrder(CreateCardOrderReq) returns (CreateCardOrderResp);
|
|
// 查询卡密订单
|
|
rpc QueryCardOrder(QueryCardOrderReq) returns (QueryCardOrderResp);
|
|
// 查询传输订单结果
|
|
rpc QueryCardIssue(QueryCardIssueReq) returns (QueryCardIssueResp);
|
|
// 查询卡密状态
|
|
rpc QueryCardStatus(QueryCardStatusReq) returns (QueryCardStatusResp);
|
|
|
|
// 创建xw卡密订单
|
|
rpc CreateCardOrderXw(CreateCardOrderXwReq) returns (CreateCardOrderXwResp);
|
|
// 查询xw卡密订单
|
|
rpc QueryCardOrderXw(QueryCardOrderXwReq) returns (QueryCardOrderXwResp);
|
|
}
|
|
|
|
message QueryCardStatusReq {
|
|
int32 merchant_id = 1;
|
|
string out_trade_no = 2;
|
|
}
|
|
|
|
message QueryCardStatusResp {
|
|
string code = 1;
|
|
optional string message = 2;
|
|
message Data {
|
|
string card_code = 1;
|
|
int32 code_status = 2;
|
|
}
|
|
repeated Data data = 3;
|
|
}
|
|
|
|
message QueryCardIssueReq {
|
|
int32 merchant_id = 1;
|
|
string out_trade_no = 2;
|
|
}
|
|
|
|
message QueryCardIssueResp {
|
|
string code = 1;
|
|
string message = 2;
|
|
string status = 3;
|
|
string out_trade_no = 4;
|
|
}
|
|
|
|
message CreateCardOrderReq {
|
|
int32 merchant_id = 1;
|
|
string out_trade_no = 2;
|
|
int32 product_id = 3;
|
|
string mobile = 4;
|
|
string notify_url = 5;
|
|
int32 number = 6;
|
|
string extend_parameter = 7;
|
|
double price = 8;
|
|
int32 is_sync = 9;
|
|
int32 appid = 10;
|
|
int64 create_ip = 11;
|
|
}
|
|
|
|
message CreateCardOrderResp {
|
|
string code = 1;
|
|
string message = 2;
|
|
string trade_no = 3;
|
|
int32 status = 4;
|
|
optional string cards = 5;
|
|
}
|
|
|
|
message QueryCardOrderReq {
|
|
int32 merchant_id = 1;
|
|
string out_trade_no = 2;
|
|
int32 appid = 3;
|
|
}
|
|
|
|
message QueryCardOrderResp {
|
|
string code = 1;
|
|
string message = 2;
|
|
optional string status = 3;
|
|
optional string out_trade_no = 4;
|
|
optional string trade_no = 5;
|
|
optional string card_code = 6;
|
|
}
|
|
|
|
message CreateCardOrderXwReq {
|
|
int32 merchant_id = 1;
|
|
string out_trade_no = 2;
|
|
int32 product_id = 3;
|
|
string mobile = 4;
|
|
string notify_url = 5;
|
|
int32 number = 6;
|
|
string extend_parameter = 7;
|
|
double price = 8;
|
|
}
|
|
|
|
message CreateCardOrderXwResp {
|
|
string code = 1;
|
|
string message = 2;
|
|
int32 status = 4;
|
|
optional string cards = 5;
|
|
optional string expire_date = 6;
|
|
}
|
|
|
|
message QueryCardOrderXwReq {
|
|
int32 merchant_id = 1;
|
|
string out_trade_no = 2;
|
|
}
|
|
|
|
message QueryCardOrderXwResp {
|
|
string code = 1;
|
|
optional string status = 3;
|
|
optional string cards = 6;
|
|
string expire_date = 7;
|
|
} |