voucher/api/v1/order.proto

36 lines
1.3 KiB
Protocol Buffer
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

syntax = "proto3";
package api.v1;
option go_package = "voucher/api/v1;v1";
import "validate/validate.proto";
message OrderCmbRequest {
// 唯一流水号需支持14天内幂等
string transactionId = 1 [json_name = "transactionId", (validate.rules).string = {min_len: 1,max_len: 50}];
// 外部合作方权益批次号
string activityId = 2 [json_name = "activityId", (validate.rules).string = {min_len: 1,max_len: 32}];
// 招商银行用户号 用户标识比如手机号、支付宝openId
string cmbUid = 3 [json_name = "cmbUid", (validate.rules).string = {min_len: 1,max_len: 100}];
// 用户标识类型0-手机号1-支付宝openId
string cmbUidType = 4 [json_name = "cmbUidType", (validate.rules).string = {min_len: 1,max_len: 10}];
// 时间戳长度为13位精度为毫秒
string timestamp = 5 [json_name = "timestamp", (validate.rules).string = {min_len: 1,max_len: 20}];
}
message OrderCmbReply {
// 接口调用返回码1000 成功1001 失败
string respCode = 1 [json_name = "respCode"];
// 返回信息,失败信息落此字段
string respMsg = 2 [json_name = "respMsg"];
// 权益标识优惠券券码最大长度为50位
string codeNo = 3 [json_name = "codeNo"];
}
message QueryCmbRequest {
}
message QueryCmbReply {
}