update protobuf
This commit is contained in:
parent
cf1dcf3a7a
commit
1383ab10a8
97
orders.pb.go
97
orders.pb.go
@ -40,22 +40,24 @@ type Orders struct {
|
|||||||
StoreNo string `protobuf:"bytes,7,opt,name=StoreNo,proto3" json:"StoreNo,omitempty" dc:"门店编号"` // 门店编号
|
StoreNo string `protobuf:"bytes,7,opt,name=StoreNo,proto3" json:"StoreNo,omitempty" dc:"门店编号"` // 门店编号
|
||||||
TokenNo string `protobuf:"bytes,8,opt,name=TokenNo,proto3" json:"TokenNo,omitempty" dc:"TokenId"` // TokenId
|
TokenNo string `protobuf:"bytes,8,opt,name=TokenNo,proto3" json:"TokenNo,omitempty" dc:"TokenId"` // TokenId
|
||||||
DeviceNo string `protobuf:"bytes,9,opt,name=DeviceNo,proto3" json:"DeviceNo,omitempty" dc:"设备编号"` // 设备编号
|
DeviceNo string `protobuf:"bytes,9,opt,name=DeviceNo,proto3" json:"DeviceNo,omitempty" dc:"设备编号"` // 设备编号
|
||||||
Via string `protobuf:"bytes,10,opt,name=Via,proto3" json:"Via,omitempty" dc:"支付方式"` // 支付方式
|
Type string `protobuf:"bytes,10,opt,name=Type,proto3" json:"Type,omitempty" dc:"支付类型,如:bank=银行转账,qrcode=扫码支付, online=在线支付"` // 支付类型,如:bank=银行转账,qrcode=扫码支付, online=在线支付
|
||||||
Area string `protobuf:"bytes,11,opt,name=Area,proto3" json:"Area,omitempty" dc:"地区"` // 地区
|
Via string `protobuf:"bytes,11,opt,name=Via,proto3" json:"Via,omitempty" dc:"支付方式"` // 支付方式
|
||||||
Ccy string `protobuf:"bytes,12,opt,name=Ccy,proto3" json:"Ccy,omitempty" dc:"币种"` // 币种
|
Area string `protobuf:"bytes,12,opt,name=Area,proto3" json:"Area,omitempty" dc:"国家/地区"` // 国家/地区
|
||||||
Amount string `protobuf:"bytes,13,opt,name=Amount,proto3" json:"Amount,omitempty" dc:"金额"` // 金额
|
Ccy string `protobuf:"bytes,13,opt,name=Ccy,proto3" json:"Ccy,omitempty" dc:"币种"` // 币种
|
||||||
Deduct string `protobuf:"bytes,14,opt,name=Deduct,proto3" json:"Deduct,omitempty" dc:"费用/扣款/手续费"` // 费用/扣款/手续费
|
Amount string `protobuf:"bytes,14,opt,name=Amount,proto3" json:"Amount,omitempty" dc:"金额"` // 金额
|
||||||
Amounted string `protobuf:"bytes,15,opt,name=Amounted,proto3" json:"Amounted,omitempty" dc:"实付金额"` // 实付金额
|
Deduct string `protobuf:"bytes,15,opt,name=Deduct,proto3" json:"Deduct,omitempty" dc:"费用/扣款/手续费"` // 费用/扣款/手续费
|
||||||
Cheque string `protobuf:"bytes,16,opt,name=Cheque,proto3" json:"Cheque,omitempty" dc:"凭证/回单URL或"` // 凭证/回单URL或
|
Amounted string `protobuf:"bytes,16,opt,name=Amounted,proto3" json:"Amounted,omitempty" dc:"实付金额"` // 实付金额
|
||||||
Metadata string `protobuf:"bytes,17,opt,name=Metadata,proto3" json:"Metadata,omitempty" dc:"Meta数据"` // Meta数据
|
Cheque string `protobuf:"bytes,17,opt,name=Cheque,proto3" json:"Cheque,omitempty" dc:"凭证/回单URL或"` // 凭证/回单URL或
|
||||||
Description string `protobuf:"bytes,18,opt,name=Description,proto3" json:"Description,omitempty" dc:"订单备注/摘要"` // 订单备注/摘要
|
Metadata string `protobuf:"bytes,18,opt,name=Metadata,proto3" json:"Metadata,omitempty" dc:"Meta数据/额外数据"` // Meta数据/额外数据
|
||||||
Context string `protobuf:"bytes,19,opt,name=Context,proto3" json:"Context,omitempty" dc:"渠道上下文>>下一跳/跳转地址/二维码地址或代码"` // 渠道上下文>>下一跳/跳转地址/二维码地址或代码
|
Description string `protobuf:"bytes,19,opt,name=Description,proto3" json:"Description,omitempty" dc:"订单备注/摘要"` // 订单备注/摘要
|
||||||
Response string `protobuf:"bytes,20,opt,name=Response,proto3" json:"Response,omitempty" dc:"订单响应/回调数据"` // 订单响应/回调数据
|
Context string `protobuf:"bytes,20,opt,name=Context,proto3" json:"Context,omitempty" dc:"支付上下文>>二维码或代码"` // 支付上下文>>二维码或代码
|
||||||
State int32 `protobuf:"varint,21,opt,name=State,proto3" json:"State,omitempty" dc:"状态:-1=Failure, 0=Pending, 1=Success"` // 状态:-1=Failure, 0=Pending, 1=Success
|
Redirect string `protobuf:"bytes,21,opt,name=Redirect,proto3" json:"Redirect,omitempty" dc:"支付下一跳>>跳转地址/支付网关URL"` // 支付下一跳>>跳转地址/支付网关URL
|
||||||
StateText string `protobuf:"bytes,22,opt,name=StateText,proto3" json:"StateText,omitempty" dc:"状态原文/原因"` // 状态原文/原因
|
Response string `protobuf:"bytes,22,opt,name=Response,proto3" json:"Response,omitempty" dc:"订单响应/回调数据"` // 订单响应/回调数据
|
||||||
CreatedAt *timestamppb.Timestamp `protobuf:"bytes,23,opt,name=CreatedAt,proto3" json:"CreatedAt,omitempty"` //
|
State int32 `protobuf:"varint,23,opt,name=State,proto3" json:"State,omitempty" dc:"状态:-1=Failure, 0=Pending, 1=Success"` // 状态:-1=Failure, 0=Pending, 1=Success
|
||||||
UpdatedAt *timestamppb.Timestamp `protobuf:"bytes,24,opt,name=UpdatedAt,proto3" json:"UpdatedAt,omitempty"` //
|
StateText string `protobuf:"bytes,24,opt,name=StateText,proto3" json:"StateText,omitempty" dc:"状态原文/原因"` // 状态原文/原因
|
||||||
SuccessAt *timestamppb.Timestamp `protobuf:"bytes,25,opt,name=SuccessAt,proto3" json:"SuccessAt,omitempty" dc:"支付完成时间"` // 支付完成时间
|
CreatedAt *timestamppb.Timestamp `protobuf:"bytes,25,opt,name=CreatedAt,proto3" json:"CreatedAt,omitempty"` //
|
||||||
|
UpdatedAt *timestamppb.Timestamp `protobuf:"bytes,26,opt,name=UpdatedAt,proto3" json:"UpdatedAt,omitempty"` //
|
||||||
|
SuccessAt *timestamppb.Timestamp `protobuf:"bytes,27,opt,name=SuccessAt,proto3" json:"SuccessAt,omitempty" dc:"支付完成时间"` // 支付完成时间
|
||||||
}
|
}
|
||||||
|
|
||||||
func (x *Orders) Reset() {
|
func (x *Orders) Reset() {
|
||||||
@ -151,6 +153,13 @@ func (x *Orders) GetDeviceNo() string {
|
|||||||
return ""
|
return ""
|
||||||
}
|
}
|
||||||
|
|
||||||
|
func (x *Orders) GetType() string {
|
||||||
|
if x != nil {
|
||||||
|
return x.Type
|
||||||
|
}
|
||||||
|
return ""
|
||||||
|
}
|
||||||
|
|
||||||
func (x *Orders) GetVia() string {
|
func (x *Orders) GetVia() string {
|
||||||
if x != nil {
|
if x != nil {
|
||||||
return x.Via
|
return x.Via
|
||||||
@ -221,6 +230,13 @@ func (x *Orders) GetContext() string {
|
|||||||
return ""
|
return ""
|
||||||
}
|
}
|
||||||
|
|
||||||
|
func (x *Orders) GetRedirect() string {
|
||||||
|
if x != nil {
|
||||||
|
return x.Redirect
|
||||||
|
}
|
||||||
|
return ""
|
||||||
|
}
|
||||||
|
|
||||||
func (x *Orders) GetResponse() string {
|
func (x *Orders) GetResponse() string {
|
||||||
if x != nil {
|
if x != nil {
|
||||||
return x.Response
|
return x.Response
|
||||||
@ -269,7 +285,7 @@ var file_orders_proto_rawDesc = []byte{
|
|||||||
0x0a, 0x0c, 0x6f, 0x72, 0x64, 0x65, 0x72, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x08,
|
0x0a, 0x0c, 0x6f, 0x72, 0x64, 0x65, 0x72, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x08,
|
||||||
0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x1a, 0x1f, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65,
|
0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x1a, 0x1f, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65,
|
||||||
0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2f, 0x74, 0x69, 0x6d, 0x65, 0x73, 0x74,
|
0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2f, 0x74, 0x69, 0x6d, 0x65, 0x73, 0x74,
|
||||||
0x61, 0x6d, 0x70, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0xc0, 0x05, 0x0a, 0x06, 0x4f, 0x72,
|
0x61, 0x6d, 0x70, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0xf0, 0x05, 0x0a, 0x06, 0x4f, 0x72,
|
||||||
0x64, 0x65, 0x72, 0x73, 0x12, 0x0e, 0x0a, 0x02, 0x49, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x04,
|
0x64, 0x65, 0x72, 0x73, 0x12, 0x0e, 0x0a, 0x02, 0x49, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x04,
|
||||||
0x52, 0x02, 0x49, 0x64, 0x12, 0x10, 0x0a, 0x03, 0x4b, 0x69, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28,
|
0x52, 0x02, 0x49, 0x64, 0x12, 0x10, 0x0a, 0x03, 0x4b, 0x69, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28,
|
||||||
0x04, 0x52, 0x03, 0x4b, 0x69, 0x64, 0x12, 0x10, 0x0a, 0x03, 0x55, 0x69, 0x64, 0x18, 0x03, 0x20,
|
0x04, 0x52, 0x03, 0x4b, 0x69, 0x64, 0x12, 0x10, 0x0a, 0x03, 0x55, 0x69, 0x64, 0x18, 0x03, 0x20,
|
||||||
@ -282,36 +298,39 @@ var file_orders_proto_rawDesc = []byte{
|
|||||||
0x72, 0x65, 0x4e, 0x6f, 0x12, 0x18, 0x0a, 0x07, 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x4e, 0x6f, 0x18,
|
0x72, 0x65, 0x4e, 0x6f, 0x12, 0x18, 0x0a, 0x07, 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x4e, 0x6f, 0x18,
|
||||||
0x08, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x4e, 0x6f, 0x12, 0x1a,
|
0x08, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x4e, 0x6f, 0x12, 0x1a,
|
||||||
0x0a, 0x08, 0x44, 0x65, 0x76, 0x69, 0x63, 0x65, 0x4e, 0x6f, 0x18, 0x09, 0x20, 0x01, 0x28, 0x09,
|
0x0a, 0x08, 0x44, 0x65, 0x76, 0x69, 0x63, 0x65, 0x4e, 0x6f, 0x18, 0x09, 0x20, 0x01, 0x28, 0x09,
|
||||||
0x52, 0x08, 0x44, 0x65, 0x76, 0x69, 0x63, 0x65, 0x4e, 0x6f, 0x12, 0x10, 0x0a, 0x03, 0x56, 0x69,
|
0x52, 0x08, 0x44, 0x65, 0x76, 0x69, 0x63, 0x65, 0x4e, 0x6f, 0x12, 0x12, 0x0a, 0x04, 0x54, 0x79,
|
||||||
0x61, 0x18, 0x0a, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x56, 0x69, 0x61, 0x12, 0x12, 0x0a, 0x04,
|
0x70, 0x65, 0x18, 0x0a, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x54, 0x79, 0x70, 0x65, 0x12, 0x10,
|
||||||
0x41, 0x72, 0x65, 0x61, 0x18, 0x0b, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x41, 0x72, 0x65, 0x61,
|
0x0a, 0x03, 0x56, 0x69, 0x61, 0x18, 0x0b, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x56, 0x69, 0x61,
|
||||||
0x12, 0x10, 0x0a, 0x03, 0x43, 0x63, 0x79, 0x18, 0x0c, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x43,
|
0x12, 0x12, 0x0a, 0x04, 0x41, 0x72, 0x65, 0x61, 0x18, 0x0c, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04,
|
||||||
0x63, 0x79, 0x12, 0x16, 0x0a, 0x06, 0x41, 0x6d, 0x6f, 0x75, 0x6e, 0x74, 0x18, 0x0d, 0x20, 0x01,
|
0x41, 0x72, 0x65, 0x61, 0x12, 0x10, 0x0a, 0x03, 0x43, 0x63, 0x79, 0x18, 0x0d, 0x20, 0x01, 0x28,
|
||||||
0x28, 0x09, 0x52, 0x06, 0x41, 0x6d, 0x6f, 0x75, 0x6e, 0x74, 0x12, 0x16, 0x0a, 0x06, 0x44, 0x65,
|
0x09, 0x52, 0x03, 0x43, 0x63, 0x79, 0x12, 0x16, 0x0a, 0x06, 0x41, 0x6d, 0x6f, 0x75, 0x6e, 0x74,
|
||||||
0x64, 0x75, 0x63, 0x74, 0x18, 0x0e, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x44, 0x65, 0x64, 0x75,
|
0x18, 0x0e, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x41, 0x6d, 0x6f, 0x75, 0x6e, 0x74, 0x12, 0x16,
|
||||||
0x63, 0x74, 0x12, 0x1a, 0x0a, 0x08, 0x41, 0x6d, 0x6f, 0x75, 0x6e, 0x74, 0x65, 0x64, 0x18, 0x0f,
|
0x0a, 0x06, 0x44, 0x65, 0x64, 0x75, 0x63, 0x74, 0x18, 0x0f, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06,
|
||||||
0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x41, 0x6d, 0x6f, 0x75, 0x6e, 0x74, 0x65, 0x64, 0x12, 0x16,
|
0x44, 0x65, 0x64, 0x75, 0x63, 0x74, 0x12, 0x1a, 0x0a, 0x08, 0x41, 0x6d, 0x6f, 0x75, 0x6e, 0x74,
|
||||||
0x0a, 0x06, 0x43, 0x68, 0x65, 0x71, 0x75, 0x65, 0x18, 0x10, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06,
|
0x65, 0x64, 0x18, 0x10, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x41, 0x6d, 0x6f, 0x75, 0x6e, 0x74,
|
||||||
0x43, 0x68, 0x65, 0x71, 0x75, 0x65, 0x12, 0x1a, 0x0a, 0x08, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61,
|
0x65, 0x64, 0x12, 0x16, 0x0a, 0x06, 0x43, 0x68, 0x65, 0x71, 0x75, 0x65, 0x18, 0x11, 0x20, 0x01,
|
||||||
0x74, 0x61, 0x18, 0x11, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61,
|
0x28, 0x09, 0x52, 0x06, 0x43, 0x68, 0x65, 0x71, 0x75, 0x65, 0x12, 0x1a, 0x0a, 0x08, 0x4d, 0x65,
|
||||||
0x74, 0x61, 0x12, 0x20, 0x0a, 0x0b, 0x44, 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f,
|
0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x18, 0x12, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x4d, 0x65,
|
||||||
0x6e, 0x18, 0x12, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x44, 0x65, 0x73, 0x63, 0x72, 0x69, 0x70,
|
0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x12, 0x20, 0x0a, 0x0b, 0x44, 0x65, 0x73, 0x63, 0x72, 0x69,
|
||||||
0x74, 0x69, 0x6f, 0x6e, 0x12, 0x18, 0x0a, 0x07, 0x43, 0x6f, 0x6e, 0x74, 0x65, 0x78, 0x74, 0x18,
|
0x70, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x13, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x44, 0x65, 0x73,
|
||||||
0x13, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x43, 0x6f, 0x6e, 0x74, 0x65, 0x78, 0x74, 0x12, 0x1a,
|
0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x18, 0x0a, 0x07, 0x43, 0x6f, 0x6e, 0x74,
|
||||||
0x0a, 0x08, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x18, 0x14, 0x20, 0x01, 0x28, 0x09,
|
0x65, 0x78, 0x74, 0x18, 0x14, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x43, 0x6f, 0x6e, 0x74, 0x65,
|
||||||
|
0x78, 0x74, 0x12, 0x1a, 0x0a, 0x08, 0x52, 0x65, 0x64, 0x69, 0x72, 0x65, 0x63, 0x74, 0x18, 0x15,
|
||||||
|
0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x52, 0x65, 0x64, 0x69, 0x72, 0x65, 0x63, 0x74, 0x12, 0x1a,
|
||||||
|
0x0a, 0x08, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x18, 0x16, 0x20, 0x01, 0x28, 0x09,
|
||||||
0x52, 0x08, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x14, 0x0a, 0x05, 0x53, 0x74,
|
0x52, 0x08, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x14, 0x0a, 0x05, 0x53, 0x74,
|
||||||
0x61, 0x74, 0x65, 0x18, 0x15, 0x20, 0x01, 0x28, 0x05, 0x52, 0x05, 0x53, 0x74, 0x61, 0x74, 0x65,
|
0x61, 0x74, 0x65, 0x18, 0x17, 0x20, 0x01, 0x28, 0x05, 0x52, 0x05, 0x53, 0x74, 0x61, 0x74, 0x65,
|
||||||
0x12, 0x1c, 0x0a, 0x09, 0x53, 0x74, 0x61, 0x74, 0x65, 0x54, 0x65, 0x78, 0x74, 0x18, 0x16, 0x20,
|
0x12, 0x1c, 0x0a, 0x09, 0x53, 0x74, 0x61, 0x74, 0x65, 0x54, 0x65, 0x78, 0x74, 0x18, 0x18, 0x20,
|
||||||
0x01, 0x28, 0x09, 0x52, 0x09, 0x53, 0x74, 0x61, 0x74, 0x65, 0x54, 0x65, 0x78, 0x74, 0x12, 0x38,
|
0x01, 0x28, 0x09, 0x52, 0x09, 0x53, 0x74, 0x61, 0x74, 0x65, 0x54, 0x65, 0x78, 0x74, 0x12, 0x38,
|
||||||
0x0a, 0x09, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x64, 0x41, 0x74, 0x18, 0x17, 0x20, 0x01, 0x28,
|
0x0a, 0x09, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x64, 0x41, 0x74, 0x18, 0x19, 0x20, 0x01, 0x28,
|
||||||
0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f,
|
0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f,
|
||||||
0x62, 0x75, 0x66, 0x2e, 0x54, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x52, 0x09, 0x43,
|
0x62, 0x75, 0x66, 0x2e, 0x54, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x52, 0x09, 0x43,
|
||||||
0x72, 0x65, 0x61, 0x74, 0x65, 0x64, 0x41, 0x74, 0x12, 0x38, 0x0a, 0x09, 0x55, 0x70, 0x64, 0x61,
|
0x72, 0x65, 0x61, 0x74, 0x65, 0x64, 0x41, 0x74, 0x12, 0x38, 0x0a, 0x09, 0x55, 0x70, 0x64, 0x61,
|
||||||
0x74, 0x65, 0x64, 0x41, 0x74, 0x18, 0x18, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x6f,
|
0x74, 0x65, 0x64, 0x41, 0x74, 0x18, 0x1a, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x6f,
|
||||||
0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x54, 0x69,
|
0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x54, 0x69,
|
||||||
0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x52, 0x09, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x64,
|
0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x52, 0x09, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x64,
|
||||||
0x41, 0x74, 0x12, 0x38, 0x0a, 0x09, 0x53, 0x75, 0x63, 0x63, 0x65, 0x73, 0x73, 0x41, 0x74, 0x18,
|
0x41, 0x74, 0x12, 0x38, 0x0a, 0x09, 0x53, 0x75, 0x63, 0x63, 0x65, 0x73, 0x73, 0x41, 0x74, 0x18,
|
||||||
0x19, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70,
|
0x1b, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70,
|
||||||
0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x54, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d,
|
0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x54, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d,
|
||||||
0x70, 0x52, 0x09, 0x53, 0x75, 0x63, 0x63, 0x65, 0x73, 0x73, 0x41, 0x74, 0x42, 0x25, 0x5a, 0x23,
|
0x70, 0x52, 0x09, 0x53, 0x75, 0x63, 0x63, 0x65, 0x73, 0x73, 0x41, 0x74, 0x42, 0x25, 0x5a, 0x23,
|
||||||
0x67, 0x69, 0x74, 0x2e, 0x6c, 0x69, 0x6e, 0x6b, 0x69, 0x69, 0x6f, 0x2e, 0x63, 0x6e, 0x2f, 0x6c,
|
0x67, 0x69, 0x74, 0x2e, 0x6c, 0x69, 0x6e, 0x6b, 0x69, 0x69, 0x6f, 0x2e, 0x63, 0x6e, 0x2f, 0x6c,
|
||||||
|
|||||||
61
org.pb.go
61
org.pb.go
@ -1027,7 +1027,7 @@ var file_org_proto_rawDesc = []byte{
|
|||||||
0x44, 0x61, 0x74, 0x61, 0x2a, 0x37, 0x0a, 0x05, 0x53, 0x74, 0x61, 0x74, 0x65, 0x12, 0x0b, 0x0a,
|
0x44, 0x61, 0x74, 0x61, 0x2a, 0x37, 0x0a, 0x05, 0x53, 0x74, 0x61, 0x74, 0x65, 0x12, 0x0b, 0x0a,
|
||||||
0x07, 0x50, 0x65, 0x6e, 0x64, 0x69, 0x6e, 0x67, 0x10, 0x00, 0x12, 0x14, 0x0a, 0x07, 0x46, 0x61,
|
0x07, 0x50, 0x65, 0x6e, 0x64, 0x69, 0x6e, 0x67, 0x10, 0x00, 0x12, 0x14, 0x0a, 0x07, 0x46, 0x61,
|
||||||
0x69, 0x6c, 0x75, 0x72, 0x65, 0x10, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0x01,
|
0x69, 0x6c, 0x75, 0x72, 0x65, 0x10, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0x01,
|
||||||
0x12, 0x0b, 0x0a, 0x07, 0x53, 0x75, 0x63, 0x63, 0x65, 0x73, 0x73, 0x10, 0x01, 0x32, 0x8a, 0x02,
|
0x12, 0x0b, 0x0a, 0x07, 0x53, 0x75, 0x63, 0x63, 0x65, 0x73, 0x73, 0x10, 0x01, 0x32, 0x8c, 0x02,
|
||||||
0x0a, 0x03, 0x4f, 0x72, 0x67, 0x12, 0x1d, 0x0a, 0x05, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x12, 0x09,
|
0x0a, 0x03, 0x4f, 0x72, 0x67, 0x12, 0x1d, 0x0a, 0x05, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x12, 0x09,
|
||||||
0x2e, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x52, 0x65, 0x71, 0x1a, 0x09, 0x2e, 0x45, 0x76, 0x65, 0x6e,
|
0x2e, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x52, 0x65, 0x71, 0x1a, 0x09, 0x2e, 0x45, 0x76, 0x65, 0x6e,
|
||||||
0x74, 0x52, 0x65, 0x73, 0x12, 0x1a, 0x0a, 0x04, 0x50, 0x69, 0x6e, 0x67, 0x12, 0x08, 0x2e, 0x50,
|
0x74, 0x52, 0x65, 0x73, 0x12, 0x1a, 0x0a, 0x04, 0x50, 0x69, 0x6e, 0x67, 0x12, 0x08, 0x2e, 0x50,
|
||||||
@ -1036,22 +1036,25 @@ var file_org_proto_rawDesc = []byte{
|
|||||||
0x1a, 0x10, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x4f, 0x72, 0x64, 0x65,
|
0x1a, 0x10, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x4f, 0x72, 0x64, 0x65,
|
||||||
0x72, 0x73, 0x12, 0x27, 0x0a, 0x06, 0x52, 0x65, 0x66, 0x75, 0x6e, 0x64, 0x12, 0x0a, 0x2e, 0x52,
|
0x72, 0x73, 0x12, 0x27, 0x0a, 0x06, 0x52, 0x65, 0x66, 0x75, 0x6e, 0x64, 0x12, 0x0a, 0x2e, 0x52,
|
||||||
0x65, 0x66, 0x75, 0x6e, 0x64, 0x52, 0x65, 0x71, 0x1a, 0x11, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f,
|
0x65, 0x66, 0x75, 0x6e, 0x64, 0x52, 0x65, 0x71, 0x1a, 0x11, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f,
|
||||||
0x62, 0x75, 0x66, 0x2e, 0x52, 0x65, 0x66, 0x75, 0x6e, 0x64, 0x73, 0x12, 0x25, 0x0a, 0x06, 0x52,
|
0x62, 0x75, 0x66, 0x2e, 0x52, 0x65, 0x66, 0x75, 0x6e, 0x64, 0x73, 0x12, 0x27, 0x0a, 0x06, 0x52,
|
||||||
0x65, 0x76, 0x6f, 0x6b, 0x65, 0x12, 0x09, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x52, 0x65, 0x71,
|
0x65, 0x76, 0x6f, 0x6b, 0x65, 0x12, 0x0a, 0x2e, 0x52, 0x65, 0x66, 0x75, 0x6e, 0x64, 0x52, 0x65,
|
||||||
0x1a, 0x10, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x4f, 0x72, 0x64, 0x65,
|
0x71, 0x1a, 0x11, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x52, 0x65, 0x66,
|
||||||
0x72, 0x73, 0x12, 0x29, 0x0a, 0x0a, 0x51, 0x75, 0x65, 0x72, 0x79, 0x4f, 0x72, 0x64, 0x65, 0x72,
|
0x75, 0x6e, 0x64, 0x73, 0x12, 0x29, 0x0a, 0x0a, 0x51, 0x75, 0x65, 0x72, 0x79, 0x4f, 0x72, 0x64,
|
||||||
0x12, 0x09, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x52, 0x65, 0x71, 0x1a, 0x10, 0x2e, 0x70, 0x72,
|
0x65, 0x72, 0x12, 0x09, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x52, 0x65, 0x71, 0x1a, 0x10, 0x2e,
|
||||||
0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x4f, 0x72, 0x64, 0x65, 0x72, 0x73, 0x12, 0x2b, 0x0a,
|
0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x4f, 0x72, 0x64, 0x65, 0x72, 0x73, 0x12,
|
||||||
0x0b, 0x51, 0x75, 0x65, 0x72, 0x79, 0x52, 0x65, 0x66, 0x75, 0x6e, 0x64, 0x12, 0x09, 0x2e, 0x51,
|
0x2b, 0x0a, 0x0b, 0x51, 0x75, 0x65, 0x72, 0x79, 0x52, 0x65, 0x66, 0x75, 0x6e, 0x64, 0x12, 0x09,
|
||||||
0x75, 0x65, 0x72, 0x79, 0x52, 0x65, 0x71, 0x1a, 0x11, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62,
|
0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x52, 0x65, 0x71, 0x1a, 0x11, 0x2e, 0x70, 0x72, 0x6f, 0x74,
|
||||||
0x75, 0x66, 0x2e, 0x52, 0x65, 0x66, 0x75, 0x6e, 0x64, 0x73, 0x32, 0x36, 0x0a, 0x03, 0x42, 0x73,
|
0x6f, 0x62, 0x75, 0x66, 0x2e, 0x52, 0x65, 0x66, 0x75, 0x6e, 0x64, 0x73, 0x32, 0x6a, 0x0a, 0x03,
|
||||||
0x73, 0x12, 0x2f, 0x0a, 0x05, 0x4f, 0x72, 0x64, 0x65, 0x72, 0x12, 0x10, 0x2e, 0x70, 0x72, 0x6f,
|
0x42, 0x73, 0x73, 0x12, 0x2f, 0x0a, 0x05, 0x4f, 0x72, 0x64, 0x65, 0x72, 0x12, 0x10, 0x2e, 0x70,
|
||||||
0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x4f, 0x72, 0x64, 0x65, 0x72, 0x73, 0x1a, 0x10, 0x2e, 0x70,
|
0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x4f, 0x72, 0x64, 0x65, 0x72, 0x73, 0x1a, 0x10,
|
||||||
0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x4f, 0x72, 0x64, 0x65, 0x72, 0x73, 0x28, 0x01,
|
0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x4f, 0x72, 0x64, 0x65, 0x72, 0x73,
|
||||||
0x30, 0x01, 0x42, 0x25, 0x5a, 0x23, 0x67, 0x69, 0x74, 0x2e, 0x6c, 0x69, 0x6e, 0x6b, 0x69, 0x69,
|
0x28, 0x01, 0x30, 0x01, 0x12, 0x32, 0x0a, 0x06, 0x52, 0x65, 0x66, 0x75, 0x6e, 0x64, 0x12, 0x11,
|
||||||
0x6f, 0x2e, 0x63, 0x6e, 0x2f, 0x6c, 0x69, 0x6e, 0x6b, 0x70, 0x61, 0x79, 0x2f, 0x61, 0x70, 0x69,
|
0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x52, 0x65, 0x66, 0x75, 0x6e, 0x64,
|
||||||
0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f,
|
0x73, 0x1a, 0x11, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x52, 0x65, 0x66,
|
||||||
0x33,
|
0x75, 0x6e, 0x64, 0x73, 0x28, 0x01, 0x30, 0x01, 0x42, 0x25, 0x5a, 0x23, 0x67, 0x69, 0x74, 0x2e,
|
||||||
|
0x6c, 0x69, 0x6e, 0x6b, 0x69, 0x69, 0x6f, 0x2e, 0x63, 0x6e, 0x2f, 0x6c, 0x69, 0x6e, 0x6b, 0x70,
|
||||||
|
0x61, 0x79, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x62,
|
||||||
|
0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
|
||||||
}
|
}
|
||||||
|
|
||||||
var (
|
var (
|
||||||
@ -1102,20 +1105,22 @@ var file_org_proto_depIdxs = []int32{
|
|||||||
1, // 10: Org.Ping:input_type -> PingReq
|
1, // 10: Org.Ping:input_type -> PingReq
|
||||||
4, // 11: Org.Pay:input_type -> PayReq
|
4, // 11: Org.Pay:input_type -> PayReq
|
||||||
5, // 12: Org.Refund:input_type -> RefundReq
|
5, // 12: Org.Refund:input_type -> RefundReq
|
||||||
6, // 13: Org.Revoke:input_type -> QueryReq
|
5, // 13: Org.Revoke:input_type -> RefundReq
|
||||||
6, // 14: Org.QueryOrder:input_type -> QueryReq
|
6, // 14: Org.QueryOrder:input_type -> QueryReq
|
||||||
6, // 15: Org.QueryRefund:input_type -> QueryReq
|
6, // 15: Org.QueryRefund:input_type -> QueryReq
|
||||||
16, // 16: Bss.Order:input_type -> protobuf.Orders
|
16, // 16: Bss.Order:input_type -> protobuf.Orders
|
||||||
8, // 17: Org.Event:output_type -> EventRes
|
17, // 17: Bss.Refund:input_type -> protobuf.Refunds
|
||||||
3, // 18: Org.Ping:output_type -> PongRes
|
8, // 18: Org.Event:output_type -> EventRes
|
||||||
16, // 19: Org.Pay:output_type -> protobuf.Orders
|
3, // 19: Org.Ping:output_type -> PongRes
|
||||||
17, // 20: Org.Refund:output_type -> protobuf.Refunds
|
16, // 20: Org.Pay:output_type -> protobuf.Orders
|
||||||
16, // 21: Org.Revoke:output_type -> protobuf.Orders
|
17, // 21: Org.Refund:output_type -> protobuf.Refunds
|
||||||
16, // 22: Org.QueryOrder:output_type -> protobuf.Orders
|
17, // 22: Org.Revoke:output_type -> protobuf.Refunds
|
||||||
17, // 23: Org.QueryRefund:output_type -> protobuf.Refunds
|
16, // 23: Org.QueryOrder:output_type -> protobuf.Orders
|
||||||
16, // 24: Bss.Order:output_type -> protobuf.Orders
|
17, // 24: Org.QueryRefund:output_type -> protobuf.Refunds
|
||||||
17, // [17:25] is the sub-list for method output_type
|
16, // 25: Bss.Order:output_type -> protobuf.Orders
|
||||||
9, // [9:17] is the sub-list for method input_type
|
17, // 26: Bss.Refund:output_type -> protobuf.Refunds
|
||||||
|
18, // [18:27] is the sub-list for method output_type
|
||||||
|
9, // [9:18] is the sub-list for method input_type
|
||||||
9, // [9:9] is the sub-list for extension type_name
|
9, // [9:9] is the sub-list for extension type_name
|
||||||
9, // [9:9] is the sub-list for extension extendee
|
9, // [9:9] is the sub-list for extension extendee
|
||||||
0, // [0:9] is the sub-list for field type_name
|
0, // [0:9] is the sub-list for field type_name
|
||||||
|
|||||||
@ -37,7 +37,7 @@ type OrgClient interface {
|
|||||||
Ping(ctx context.Context, in *PingReq, opts ...grpc.CallOption) (*PongRes, error)
|
Ping(ctx context.Context, in *PingReq, opts ...grpc.CallOption) (*PongRes, error)
|
||||||
Pay(ctx context.Context, in *PayReq, opts ...grpc.CallOption) (*Orders, error)
|
Pay(ctx context.Context, in *PayReq, opts ...grpc.CallOption) (*Orders, error)
|
||||||
Refund(ctx context.Context, in *RefundReq, opts ...grpc.CallOption) (*Refunds, error)
|
Refund(ctx context.Context, in *RefundReq, opts ...grpc.CallOption) (*Refunds, error)
|
||||||
Revoke(ctx context.Context, in *QueryReq, opts ...grpc.CallOption) (*Orders, error)
|
Revoke(ctx context.Context, in *RefundReq, opts ...grpc.CallOption) (*Refunds, error)
|
||||||
QueryOrder(ctx context.Context, in *QueryReq, opts ...grpc.CallOption) (*Orders, error)
|
QueryOrder(ctx context.Context, in *QueryReq, opts ...grpc.CallOption) (*Orders, error)
|
||||||
QueryRefund(ctx context.Context, in *QueryReq, opts ...grpc.CallOption) (*Refunds, error)
|
QueryRefund(ctx context.Context, in *QueryReq, opts ...grpc.CallOption) (*Refunds, error)
|
||||||
}
|
}
|
||||||
@ -90,9 +90,9 @@ func (c *orgClient) Refund(ctx context.Context, in *RefundReq, opts ...grpc.Call
|
|||||||
return out, nil
|
return out, nil
|
||||||
}
|
}
|
||||||
|
|
||||||
func (c *orgClient) Revoke(ctx context.Context, in *QueryReq, opts ...grpc.CallOption) (*Orders, error) {
|
func (c *orgClient) Revoke(ctx context.Context, in *RefundReq, opts ...grpc.CallOption) (*Refunds, error) {
|
||||||
cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...)
|
cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...)
|
||||||
out := new(Orders)
|
out := new(Refunds)
|
||||||
err := c.cc.Invoke(ctx, Org_Revoke_FullMethodName, in, out, cOpts...)
|
err := c.cc.Invoke(ctx, Org_Revoke_FullMethodName, in, out, cOpts...)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return nil, err
|
return nil, err
|
||||||
@ -128,7 +128,7 @@ type OrgServer interface {
|
|||||||
Ping(context.Context, *PingReq) (*PongRes, error)
|
Ping(context.Context, *PingReq) (*PongRes, error)
|
||||||
Pay(context.Context, *PayReq) (*Orders, error)
|
Pay(context.Context, *PayReq) (*Orders, error)
|
||||||
Refund(context.Context, *RefundReq) (*Refunds, error)
|
Refund(context.Context, *RefundReq) (*Refunds, error)
|
||||||
Revoke(context.Context, *QueryReq) (*Orders, error)
|
Revoke(context.Context, *RefundReq) (*Refunds, error)
|
||||||
QueryOrder(context.Context, *QueryReq) (*Orders, error)
|
QueryOrder(context.Context, *QueryReq) (*Orders, error)
|
||||||
QueryRefund(context.Context, *QueryReq) (*Refunds, error)
|
QueryRefund(context.Context, *QueryReq) (*Refunds, error)
|
||||||
mustEmbedUnimplementedOrgServer()
|
mustEmbedUnimplementedOrgServer()
|
||||||
@ -153,7 +153,7 @@ func (UnimplementedOrgServer) Pay(context.Context, *PayReq) (*Orders, error) {
|
|||||||
func (UnimplementedOrgServer) Refund(context.Context, *RefundReq) (*Refunds, error) {
|
func (UnimplementedOrgServer) Refund(context.Context, *RefundReq) (*Refunds, error) {
|
||||||
return nil, status.Errorf(codes.Unimplemented, "method Refund not implemented")
|
return nil, status.Errorf(codes.Unimplemented, "method Refund not implemented")
|
||||||
}
|
}
|
||||||
func (UnimplementedOrgServer) Revoke(context.Context, *QueryReq) (*Orders, error) {
|
func (UnimplementedOrgServer) Revoke(context.Context, *RefundReq) (*Refunds, error) {
|
||||||
return nil, status.Errorf(codes.Unimplemented, "method Revoke not implemented")
|
return nil, status.Errorf(codes.Unimplemented, "method Revoke not implemented")
|
||||||
}
|
}
|
||||||
func (UnimplementedOrgServer) QueryOrder(context.Context, *QueryReq) (*Orders, error) {
|
func (UnimplementedOrgServer) QueryOrder(context.Context, *QueryReq) (*Orders, error) {
|
||||||
@ -256,7 +256,7 @@ func _Org_Refund_Handler(srv interface{}, ctx context.Context, dec func(interfac
|
|||||||
}
|
}
|
||||||
|
|
||||||
func _Org_Revoke_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
func _Org_Revoke_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
||||||
in := new(QueryReq)
|
in := new(RefundReq)
|
||||||
if err := dec(in); err != nil {
|
if err := dec(in); err != nil {
|
||||||
return nil, err
|
return nil, err
|
||||||
}
|
}
|
||||||
@ -268,7 +268,7 @@ func _Org_Revoke_Handler(srv interface{}, ctx context.Context, dec func(interfac
|
|||||||
FullMethod: Org_Revoke_FullMethodName,
|
FullMethod: Org_Revoke_FullMethodName,
|
||||||
}
|
}
|
||||||
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
||||||
return srv.(OrgServer).Revoke(ctx, req.(*QueryReq))
|
return srv.(OrgServer).Revoke(ctx, req.(*RefundReq))
|
||||||
}
|
}
|
||||||
return interceptor(ctx, in, info, handler)
|
return interceptor(ctx, in, info, handler)
|
||||||
}
|
}
|
||||||
@ -351,6 +351,7 @@ var Org_ServiceDesc = grpc.ServiceDesc{
|
|||||||
|
|
||||||
const (
|
const (
|
||||||
Bss_Order_FullMethodName = "/Bss/Order"
|
Bss_Order_FullMethodName = "/Bss/Order"
|
||||||
|
Bss_Refund_FullMethodName = "/Bss/Refund"
|
||||||
)
|
)
|
||||||
|
|
||||||
// BssClient is the client API for Bss service.
|
// BssClient is the client API for Bss service.
|
||||||
@ -359,6 +360,7 @@ const (
|
|||||||
type BssClient interface {
|
type BssClient interface {
|
||||||
// rpc Event(stream protobuf.Orders) returns (); //事件通知
|
// rpc Event(stream protobuf.Orders) returns (); //事件通知
|
||||||
Order(ctx context.Context, opts ...grpc.CallOption) (grpc.BidiStreamingClient[Orders, Orders], error)
|
Order(ctx context.Context, opts ...grpc.CallOption) (grpc.BidiStreamingClient[Orders, Orders], error)
|
||||||
|
Refund(ctx context.Context, opts ...grpc.CallOption) (grpc.BidiStreamingClient[Refunds, Refunds], error)
|
||||||
}
|
}
|
||||||
|
|
||||||
type bssClient struct {
|
type bssClient struct {
|
||||||
@ -382,12 +384,26 @@ func (c *bssClient) Order(ctx context.Context, opts ...grpc.CallOption) (grpc.Bi
|
|||||||
// This type alias is provided for backwards compatibility with existing code that references the prior non-generic stream type by name.
|
// This type alias is provided for backwards compatibility with existing code that references the prior non-generic stream type by name.
|
||||||
type Bss_OrderClient = grpc.BidiStreamingClient[Orders, Orders]
|
type Bss_OrderClient = grpc.BidiStreamingClient[Orders, Orders]
|
||||||
|
|
||||||
|
func (c *bssClient) Refund(ctx context.Context, opts ...grpc.CallOption) (grpc.BidiStreamingClient[Refunds, Refunds], error) {
|
||||||
|
cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...)
|
||||||
|
stream, err := c.cc.NewStream(ctx, &Bss_ServiceDesc.Streams[1], Bss_Refund_FullMethodName, cOpts...)
|
||||||
|
if err != nil {
|
||||||
|
return nil, err
|
||||||
|
}
|
||||||
|
x := &grpc.GenericClientStream[Refunds, Refunds]{ClientStream: stream}
|
||||||
|
return x, nil
|
||||||
|
}
|
||||||
|
|
||||||
|
// This type alias is provided for backwards compatibility with existing code that references the prior non-generic stream type by name.
|
||||||
|
type Bss_RefundClient = grpc.BidiStreamingClient[Refunds, Refunds]
|
||||||
|
|
||||||
// BssServer is the server API for Bss service.
|
// BssServer is the server API for Bss service.
|
||||||
// All implementations must embed UnimplementedBssServer
|
// All implementations must embed UnimplementedBssServer
|
||||||
// for forward compatibility.
|
// for forward compatibility.
|
||||||
type BssServer interface {
|
type BssServer interface {
|
||||||
// rpc Event(stream protobuf.Orders) returns (); //事件通知
|
// rpc Event(stream protobuf.Orders) returns (); //事件通知
|
||||||
Order(grpc.BidiStreamingServer[Orders, Orders]) error
|
Order(grpc.BidiStreamingServer[Orders, Orders]) error
|
||||||
|
Refund(grpc.BidiStreamingServer[Refunds, Refunds]) error
|
||||||
mustEmbedUnimplementedBssServer()
|
mustEmbedUnimplementedBssServer()
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -401,6 +417,9 @@ type UnimplementedBssServer struct{}
|
|||||||
func (UnimplementedBssServer) Order(grpc.BidiStreamingServer[Orders, Orders]) error {
|
func (UnimplementedBssServer) Order(grpc.BidiStreamingServer[Orders, Orders]) error {
|
||||||
return status.Errorf(codes.Unimplemented, "method Order not implemented")
|
return status.Errorf(codes.Unimplemented, "method Order not implemented")
|
||||||
}
|
}
|
||||||
|
func (UnimplementedBssServer) Refund(grpc.BidiStreamingServer[Refunds, Refunds]) error {
|
||||||
|
return status.Errorf(codes.Unimplemented, "method Refund not implemented")
|
||||||
|
}
|
||||||
func (UnimplementedBssServer) mustEmbedUnimplementedBssServer() {}
|
func (UnimplementedBssServer) mustEmbedUnimplementedBssServer() {}
|
||||||
func (UnimplementedBssServer) testEmbeddedByValue() {}
|
func (UnimplementedBssServer) testEmbeddedByValue() {}
|
||||||
|
|
||||||
@ -429,6 +448,13 @@ func _Bss_Order_Handler(srv interface{}, stream grpc.ServerStream) error {
|
|||||||
// This type alias is provided for backwards compatibility with existing code that references the prior non-generic stream type by name.
|
// This type alias is provided for backwards compatibility with existing code that references the prior non-generic stream type by name.
|
||||||
type Bss_OrderServer = grpc.BidiStreamingServer[Orders, Orders]
|
type Bss_OrderServer = grpc.BidiStreamingServer[Orders, Orders]
|
||||||
|
|
||||||
|
func _Bss_Refund_Handler(srv interface{}, stream grpc.ServerStream) error {
|
||||||
|
return srv.(BssServer).Refund(&grpc.GenericServerStream[Refunds, Refunds]{ServerStream: stream})
|
||||||
|
}
|
||||||
|
|
||||||
|
// This type alias is provided for backwards compatibility with existing code that references the prior non-generic stream type by name.
|
||||||
|
type Bss_RefundServer = grpc.BidiStreamingServer[Refunds, Refunds]
|
||||||
|
|
||||||
// Bss_ServiceDesc is the grpc.ServiceDesc for Bss service.
|
// Bss_ServiceDesc is the grpc.ServiceDesc for Bss service.
|
||||||
// It's only intended for direct use with grpc.RegisterService,
|
// It's only intended for direct use with grpc.RegisterService,
|
||||||
// and not to be introspected or modified (even as a copy)
|
// and not to be introspected or modified (even as a copy)
|
||||||
@ -443,6 +469,12 @@ var Bss_ServiceDesc = grpc.ServiceDesc{
|
|||||||
ServerStreams: true,
|
ServerStreams: true,
|
||||||
ClientStreams: true,
|
ClientStreams: true,
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
StreamName: "Refund",
|
||||||
|
Handler: _Bss_Refund_Handler,
|
||||||
|
ServerStreams: true,
|
||||||
|
ClientStreams: true,
|
||||||
|
},
|
||||||
},
|
},
|
||||||
Metadata: "org.proto",
|
Metadata: "org.proto",
|
||||||
}
|
}
|
||||||
|
|||||||
@ -37,22 +37,24 @@ type Refunds struct {
|
|||||||
Org string `protobuf:"bytes,4,opt,name=Org,proto3" json:"Org,omitempty" dc:"渠道标识"` // 渠道标识
|
Org string `protobuf:"bytes,4,opt,name=Org,proto3" json:"Org,omitempty" dc:"渠道标识"` // 渠道标识
|
||||||
OrgNo string `protobuf:"bytes,5,opt,name=OrgNo,proto3" json:"OrgNo,omitempty" dc:"渠道订单号"` // 渠道订单号
|
OrgNo string `protobuf:"bytes,5,opt,name=OrgNo,proto3" json:"OrgNo,omitempty" dc:"渠道订单号"` // 渠道订单号
|
||||||
OrderNo string `protobuf:"bytes,6,opt,name=OrderNo,proto3" json:"OrderNo,omitempty" dc:"商户订单号"` // 商户订单号
|
OrderNo string `protobuf:"bytes,6,opt,name=OrderNo,proto3" json:"OrderNo,omitempty" dc:"商户订单号"` // 商户订单号
|
||||||
RefundNo string `protobuf:"bytes,7,opt,name=RefundNo,proto3" json:"RefundNo,omitempty" dc:"退单号"` // 退单号
|
TokenNo string `protobuf:"bytes,7,opt,name=TokenNo,proto3" json:"TokenNo,omitempty" dc:"退款凭证号"` // 退款凭证号
|
||||||
TokenNo string `protobuf:"bytes,8,opt,name=TokenNo,proto3" json:"TokenNo,omitempty" dc:"退款凭证号"` // 退款凭证号
|
RefundNo string `protobuf:"bytes,8,opt,name=RefundNo,proto3" json:"RefundNo,omitempty" dc:"退单号"` // 退单号
|
||||||
Via string `protobuf:"bytes,9,opt,name=Via,proto3" json:"Via,omitempty" dc:"支付方式"` // 支付方式
|
Type string `protobuf:"bytes,9,opt,name=Type,proto3" json:"Type,omitempty" dc:"退单类型 Refund=退款/Revoke=撤销"` // 退单类型 Refund=退款/Revoke=撤销
|
||||||
Ccy string `protobuf:"bytes,10,opt,name=Ccy,proto3" json:"Ccy,omitempty" dc:"币种"` // 币种
|
Via string `protobuf:"bytes,10,opt,name=Via,proto3" json:"Via,omitempty" dc:"支付方式"` // 支付方式
|
||||||
Deduct string `protobuf:"bytes,11,opt,name=Deduct,proto3" json:"Deduct,omitempty" dc:"费用/扣款/手续费"` // 费用/扣款/手续费
|
Ccy string `protobuf:"bytes,11,opt,name=Ccy,proto3" json:"Ccy,omitempty" dc:"币种"` // 币种
|
||||||
Amount string `protobuf:"bytes,12,opt,name=Amount,proto3" json:"Amount,omitempty" dc:"退款金额"` // 退款金额
|
Deduct string `protobuf:"bytes,12,opt,name=Deduct,proto3" json:"Deduct,omitempty" dc:"费用/扣款/手续费"` // 费用/扣款/手续费
|
||||||
Cheque string `protobuf:"bytes,13,opt,name=Cheque,proto3" json:"Cheque,omitempty" dc:"凭证/回单"` // 凭证/回单
|
Amount string `protobuf:"bytes,13,opt,name=Amount,proto3" json:"Amount,omitempty" dc:"退单金额"` // 退单金额
|
||||||
Goods string `protobuf:"bytes,14,opt,name=Goods,proto3" json:"Goods,omitempty" dc:"退单货品ID"` // 退单货品ID
|
Amounted string `protobuf:"bytes,14,opt,name=Amounted,proto3" json:"Amounted,omitempty" dc:"实际退款"` // 实际退款
|
||||||
Metadata string `protobuf:"bytes,15,opt,name=Metadata,proto3" json:"Metadata,omitempty" dc:"Meta数据"` // Meta数据
|
Cheque string `protobuf:"bytes,15,opt,name=Cheque,proto3" json:"Cheque,omitempty" dc:"凭证/回单"` // 凭证/回单
|
||||||
Description string `protobuf:"bytes,16,opt,name=Description,proto3" json:"Description,omitempty" dc:"退款原因/备注/描述"` // 退款原因/备注/描述
|
Goods string `protobuf:"bytes,16,opt,name=Goods,proto3" json:"Goods,omitempty" dc:"退单货品ID"` // 退单货品ID
|
||||||
Response string `protobuf:"bytes,17,opt,name=Response,proto3" json:"Response,omitempty" dc:"响应/回调数据"` // 响应/回调数据
|
Metadata string `protobuf:"bytes,17,opt,name=Metadata,proto3" json:"Metadata,omitempty" dc:"Meta数据"` // Meta数据
|
||||||
State int32 `protobuf:"varint,18,opt,name=State,proto3" json:"State,omitempty" dc:"状态:-1=Failure, 0=Pending, 1=Success"` // 状态:-1=Failure, 0=Pending, 1=Success
|
Description string `protobuf:"bytes,18,opt,name=Description,proto3" json:"Description,omitempty" dc:"退款原因/备注/描述"` // 退款原因/备注/描述
|
||||||
StateText string `protobuf:"bytes,19,opt,name=StateText,proto3" json:"StateText,omitempty" dc:"状态原文/原因"` // 状态原文/原因
|
Response string `protobuf:"bytes,19,opt,name=Response,proto3" json:"Response,omitempty" dc:"响应数据"` // 响应数据
|
||||||
CreatedAt *timestamppb.Timestamp `protobuf:"bytes,20,opt,name=CreatedAt,proto3" json:"CreatedAt,omitempty"` //
|
State int32 `protobuf:"varint,20,opt,name=State,proto3" json:"State,omitempty" dc:"状态:-1=Failure, 0=Pending, 1=Success"` // 状态:-1=Failure, 0=Pending, 1=Success
|
||||||
UpdatedAt *timestamppb.Timestamp `protobuf:"bytes,21,opt,name=UpdatedAt,proto3" json:"UpdatedAt,omitempty"` //
|
StateText string `protobuf:"bytes,21,opt,name=StateText,proto3" json:"StateText,omitempty" dc:"状态原文/原因"` // 状态原文/原因
|
||||||
SuccessAt *timestamppb.Timestamp `protobuf:"bytes,22,opt,name=SuccessAt,proto3" json:"SuccessAt,omitempty" dc:"退单完成时间"` // 退单完成时间
|
CreatedAt *timestamppb.Timestamp `protobuf:"bytes,22,opt,name=CreatedAt,proto3" json:"CreatedAt,omitempty"` //
|
||||||
|
UpdatedAt *timestamppb.Timestamp `protobuf:"bytes,23,opt,name=UpdatedAt,proto3" json:"UpdatedAt,omitempty"` //
|
||||||
|
SuccessAt *timestamppb.Timestamp `protobuf:"bytes,24,opt,name=SuccessAt,proto3" json:"SuccessAt,omitempty" dc:"退单完成时间"` // 退单完成时间
|
||||||
}
|
}
|
||||||
|
|
||||||
func (x *Refunds) Reset() {
|
func (x *Refunds) Reset() {
|
||||||
@ -127,6 +129,13 @@ func (x *Refunds) GetOrderNo() string {
|
|||||||
return ""
|
return ""
|
||||||
}
|
}
|
||||||
|
|
||||||
|
func (x *Refunds) GetTokenNo() string {
|
||||||
|
if x != nil {
|
||||||
|
return x.TokenNo
|
||||||
|
}
|
||||||
|
return ""
|
||||||
|
}
|
||||||
|
|
||||||
func (x *Refunds) GetRefundNo() string {
|
func (x *Refunds) GetRefundNo() string {
|
||||||
if x != nil {
|
if x != nil {
|
||||||
return x.RefundNo
|
return x.RefundNo
|
||||||
@ -134,9 +143,9 @@ func (x *Refunds) GetRefundNo() string {
|
|||||||
return ""
|
return ""
|
||||||
}
|
}
|
||||||
|
|
||||||
func (x *Refunds) GetTokenNo() string {
|
func (x *Refunds) GetType() string {
|
||||||
if x != nil {
|
if x != nil {
|
||||||
return x.TokenNo
|
return x.Type
|
||||||
}
|
}
|
||||||
return ""
|
return ""
|
||||||
}
|
}
|
||||||
@ -169,6 +178,13 @@ func (x *Refunds) GetAmount() string {
|
|||||||
return ""
|
return ""
|
||||||
}
|
}
|
||||||
|
|
||||||
|
func (x *Refunds) GetAmounted() string {
|
||||||
|
if x != nil {
|
||||||
|
return x.Amounted
|
||||||
|
}
|
||||||
|
return ""
|
||||||
|
}
|
||||||
|
|
||||||
func (x *Refunds) GetCheque() string {
|
func (x *Refunds) GetCheque() string {
|
||||||
if x != nil {
|
if x != nil {
|
||||||
return x.Cheque
|
return x.Cheque
|
||||||
@ -245,7 +261,7 @@ var file_refunds_proto_rawDesc = []byte{
|
|||||||
0x0a, 0x0d, 0x72, 0x65, 0x66, 0x75, 0x6e, 0x64, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12,
|
0x0a, 0x0d, 0x72, 0x65, 0x66, 0x75, 0x6e, 0x64, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12,
|
||||||
0x08, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x1a, 0x1f, 0x67, 0x6f, 0x6f, 0x67, 0x6c,
|
0x08, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x1a, 0x1f, 0x67, 0x6f, 0x6f, 0x67, 0x6c,
|
||||||
0x65, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2f, 0x74, 0x69, 0x6d, 0x65, 0x73,
|
0x65, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2f, 0x74, 0x69, 0x6d, 0x65, 0x73,
|
||||||
0x74, 0x61, 0x6d, 0x70, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0xf3, 0x04, 0x0a, 0x07, 0x52,
|
0x74, 0x61, 0x6d, 0x70, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0xa3, 0x05, 0x0a, 0x07, 0x52,
|
||||||
0x65, 0x66, 0x75, 0x6e, 0x64, 0x73, 0x12, 0x0e, 0x0a, 0x02, 0x49, 0x64, 0x18, 0x01, 0x20, 0x01,
|
0x65, 0x66, 0x75, 0x6e, 0x64, 0x73, 0x12, 0x0e, 0x0a, 0x02, 0x49, 0x64, 0x18, 0x01, 0x20, 0x01,
|
||||||
0x28, 0x04, 0x52, 0x02, 0x49, 0x64, 0x12, 0x10, 0x0a, 0x03, 0x4b, 0x69, 0x64, 0x18, 0x02, 0x20,
|
0x28, 0x04, 0x52, 0x02, 0x49, 0x64, 0x12, 0x10, 0x0a, 0x03, 0x4b, 0x69, 0x64, 0x18, 0x02, 0x20,
|
||||||
0x01, 0x28, 0x04, 0x52, 0x03, 0x4b, 0x69, 0x64, 0x12, 0x10, 0x0a, 0x03, 0x55, 0x69, 0x64, 0x18,
|
0x01, 0x28, 0x04, 0x52, 0x03, 0x4b, 0x69, 0x64, 0x12, 0x10, 0x0a, 0x03, 0x55, 0x69, 0x64, 0x18,
|
||||||
@ -253,36 +269,39 @@ var file_refunds_proto_rawDesc = []byte{
|
|||||||
0x67, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x4f, 0x72, 0x67, 0x12, 0x14, 0x0a, 0x05,
|
0x67, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x4f, 0x72, 0x67, 0x12, 0x14, 0x0a, 0x05,
|
||||||
0x4f, 0x72, 0x67, 0x4e, 0x6f, 0x18, 0x05, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x4f, 0x72, 0x67,
|
0x4f, 0x72, 0x67, 0x4e, 0x6f, 0x18, 0x05, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x4f, 0x72, 0x67,
|
||||||
0x4e, 0x6f, 0x12, 0x18, 0x0a, 0x07, 0x4f, 0x72, 0x64, 0x65, 0x72, 0x4e, 0x6f, 0x18, 0x06, 0x20,
|
0x4e, 0x6f, 0x12, 0x18, 0x0a, 0x07, 0x4f, 0x72, 0x64, 0x65, 0x72, 0x4e, 0x6f, 0x18, 0x06, 0x20,
|
||||||
0x01, 0x28, 0x09, 0x52, 0x07, 0x4f, 0x72, 0x64, 0x65, 0x72, 0x4e, 0x6f, 0x12, 0x1a, 0x0a, 0x08,
|
0x01, 0x28, 0x09, 0x52, 0x07, 0x4f, 0x72, 0x64, 0x65, 0x72, 0x4e, 0x6f, 0x12, 0x18, 0x0a, 0x07,
|
||||||
0x52, 0x65, 0x66, 0x75, 0x6e, 0x64, 0x4e, 0x6f, 0x18, 0x07, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08,
|
0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x4e, 0x6f, 0x18, 0x07, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x54,
|
||||||
0x52, 0x65, 0x66, 0x75, 0x6e, 0x64, 0x4e, 0x6f, 0x12, 0x18, 0x0a, 0x07, 0x54, 0x6f, 0x6b, 0x65,
|
0x6f, 0x6b, 0x65, 0x6e, 0x4e, 0x6f, 0x12, 0x1a, 0x0a, 0x08, 0x52, 0x65, 0x66, 0x75, 0x6e, 0x64,
|
||||||
0x6e, 0x4e, 0x6f, 0x18, 0x08, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x54, 0x6f, 0x6b, 0x65, 0x6e,
|
0x4e, 0x6f, 0x18, 0x08, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x52, 0x65, 0x66, 0x75, 0x6e, 0x64,
|
||||||
0x4e, 0x6f, 0x12, 0x10, 0x0a, 0x03, 0x56, 0x69, 0x61, 0x18, 0x09, 0x20, 0x01, 0x28, 0x09, 0x52,
|
0x4e, 0x6f, 0x12, 0x12, 0x0a, 0x04, 0x54, 0x79, 0x70, 0x65, 0x18, 0x09, 0x20, 0x01, 0x28, 0x09,
|
||||||
0x03, 0x56, 0x69, 0x61, 0x12, 0x10, 0x0a, 0x03, 0x43, 0x63, 0x79, 0x18, 0x0a, 0x20, 0x01, 0x28,
|
0x52, 0x04, 0x54, 0x79, 0x70, 0x65, 0x12, 0x10, 0x0a, 0x03, 0x56, 0x69, 0x61, 0x18, 0x0a, 0x20,
|
||||||
0x09, 0x52, 0x03, 0x43, 0x63, 0x79, 0x12, 0x16, 0x0a, 0x06, 0x44, 0x65, 0x64, 0x75, 0x63, 0x74,
|
0x01, 0x28, 0x09, 0x52, 0x03, 0x56, 0x69, 0x61, 0x12, 0x10, 0x0a, 0x03, 0x43, 0x63, 0x79, 0x18,
|
||||||
0x18, 0x0b, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x44, 0x65, 0x64, 0x75, 0x63, 0x74, 0x12, 0x16,
|
0x0b, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x43, 0x63, 0x79, 0x12, 0x16, 0x0a, 0x06, 0x44, 0x65,
|
||||||
0x0a, 0x06, 0x41, 0x6d, 0x6f, 0x75, 0x6e, 0x74, 0x18, 0x0c, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06,
|
0x64, 0x75, 0x63, 0x74, 0x18, 0x0c, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x44, 0x65, 0x64, 0x75,
|
||||||
0x41, 0x6d, 0x6f, 0x75, 0x6e, 0x74, 0x12, 0x16, 0x0a, 0x06, 0x43, 0x68, 0x65, 0x71, 0x75, 0x65,
|
0x63, 0x74, 0x12, 0x16, 0x0a, 0x06, 0x41, 0x6d, 0x6f, 0x75, 0x6e, 0x74, 0x18, 0x0d, 0x20, 0x01,
|
||||||
0x18, 0x0d, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x43, 0x68, 0x65, 0x71, 0x75, 0x65, 0x12, 0x14,
|
0x28, 0x09, 0x52, 0x06, 0x41, 0x6d, 0x6f, 0x75, 0x6e, 0x74, 0x12, 0x1a, 0x0a, 0x08, 0x41, 0x6d,
|
||||||
0x0a, 0x05, 0x47, 0x6f, 0x6f, 0x64, 0x73, 0x18, 0x0e, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x47,
|
0x6f, 0x75, 0x6e, 0x74, 0x65, 0x64, 0x18, 0x0e, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x41, 0x6d,
|
||||||
|
0x6f, 0x75, 0x6e, 0x74, 0x65, 0x64, 0x12, 0x16, 0x0a, 0x06, 0x43, 0x68, 0x65, 0x71, 0x75, 0x65,
|
||||||
|
0x18, 0x0f, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x43, 0x68, 0x65, 0x71, 0x75, 0x65, 0x12, 0x14,
|
||||||
|
0x0a, 0x05, 0x47, 0x6f, 0x6f, 0x64, 0x73, 0x18, 0x10, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x47,
|
||||||
0x6f, 0x6f, 0x64, 0x73, 0x12, 0x1a, 0x0a, 0x08, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61,
|
0x6f, 0x6f, 0x64, 0x73, 0x12, 0x1a, 0x0a, 0x08, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61,
|
||||||
0x18, 0x0f, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61,
|
0x18, 0x11, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61,
|
||||||
0x12, 0x20, 0x0a, 0x0b, 0x44, 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x18,
|
0x12, 0x20, 0x0a, 0x0b, 0x44, 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x18,
|
||||||
0x10, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x44, 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69,
|
0x12, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x44, 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69,
|
||||||
0x6f, 0x6e, 0x12, 0x1a, 0x0a, 0x08, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x18, 0x11,
|
0x6f, 0x6e, 0x12, 0x1a, 0x0a, 0x08, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x18, 0x13,
|
||||||
0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x14,
|
0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x14,
|
||||||
0x0a, 0x05, 0x53, 0x74, 0x61, 0x74, 0x65, 0x18, 0x12, 0x20, 0x01, 0x28, 0x05, 0x52, 0x05, 0x53,
|
0x0a, 0x05, 0x53, 0x74, 0x61, 0x74, 0x65, 0x18, 0x14, 0x20, 0x01, 0x28, 0x05, 0x52, 0x05, 0x53,
|
||||||
0x74, 0x61, 0x74, 0x65, 0x12, 0x1c, 0x0a, 0x09, 0x53, 0x74, 0x61, 0x74, 0x65, 0x54, 0x65, 0x78,
|
0x74, 0x61, 0x74, 0x65, 0x12, 0x1c, 0x0a, 0x09, 0x53, 0x74, 0x61, 0x74, 0x65, 0x54, 0x65, 0x78,
|
||||||
0x74, 0x18, 0x13, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x53, 0x74, 0x61, 0x74, 0x65, 0x54, 0x65,
|
0x74, 0x18, 0x15, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x53, 0x74, 0x61, 0x74, 0x65, 0x54, 0x65,
|
||||||
0x78, 0x74, 0x12, 0x38, 0x0a, 0x09, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x64, 0x41, 0x74, 0x18,
|
0x78, 0x74, 0x12, 0x38, 0x0a, 0x09, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x64, 0x41, 0x74, 0x18,
|
||||||
0x14, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70,
|
0x16, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70,
|
||||||
0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x54, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d,
|
0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x54, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d,
|
||||||
0x70, 0x52, 0x09, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x64, 0x41, 0x74, 0x12, 0x38, 0x0a, 0x09,
|
0x70, 0x52, 0x09, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x64, 0x41, 0x74, 0x12, 0x38, 0x0a, 0x09,
|
||||||
0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x64, 0x41, 0x74, 0x18, 0x15, 0x20, 0x01, 0x28, 0x0b, 0x32,
|
0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x64, 0x41, 0x74, 0x18, 0x17, 0x20, 0x01, 0x28, 0x0b, 0x32,
|
||||||
0x1a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75,
|
0x1a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75,
|
||||||
0x66, 0x2e, 0x54, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x52, 0x09, 0x55, 0x70, 0x64,
|
0x66, 0x2e, 0x54, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x52, 0x09, 0x55, 0x70, 0x64,
|
||||||
0x61, 0x74, 0x65, 0x64, 0x41, 0x74, 0x12, 0x38, 0x0a, 0x09, 0x53, 0x75, 0x63, 0x63, 0x65, 0x73,
|
0x61, 0x74, 0x65, 0x64, 0x41, 0x74, 0x12, 0x38, 0x0a, 0x09, 0x53, 0x75, 0x63, 0x63, 0x65, 0x73,
|
||||||
0x73, 0x41, 0x74, 0x18, 0x16, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x6f, 0x6f, 0x67,
|
0x73, 0x41, 0x74, 0x18, 0x18, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x6f, 0x6f, 0x67,
|
||||||
0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x54, 0x69, 0x6d, 0x65,
|
0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x54, 0x69, 0x6d, 0x65,
|
||||||
0x73, 0x74, 0x61, 0x6d, 0x70, 0x52, 0x09, 0x53, 0x75, 0x63, 0x63, 0x65, 0x73, 0x73, 0x41, 0x74,
|
0x73, 0x74, 0x61, 0x6d, 0x70, 0x52, 0x09, 0x53, 0x75, 0x63, 0x63, 0x65, 0x73, 0x73, 0x41, 0x74,
|
||||||
0x42, 0x25, 0x5a, 0x23, 0x67, 0x69, 0x74, 0x2e, 0x6c, 0x69, 0x6e, 0x6b, 0x69, 0x69, 0x6f, 0x2e,
|
0x42, 0x25, 0x5a, 0x23, 0x67, 0x69, 0x74, 0x2e, 0x6c, 0x69, 0x6e, 0x6b, 0x69, 0x69, 0x6f, 0x2e,
|
||||||
|
|||||||
@ -33,12 +33,14 @@ type Trackings struct {
|
|||||||
|
|
||||||
Id uint64 `protobuf:"varint,1,opt,name=Id,proto3" json:"Id,omitempty"` //
|
Id uint64 `protobuf:"varint,1,opt,name=Id,proto3" json:"Id,omitempty"` //
|
||||||
Kid uint64 `protobuf:"varint,2,opt,name=Kid,proto3" json:"Kid,omitempty" dc:"主体ID"` // 主体ID
|
Kid uint64 `protobuf:"varint,2,opt,name=Kid,proto3" json:"Kid,omitempty" dc:"主体ID"` // 主体ID
|
||||||
Org string `protobuf:"bytes,3,opt,name=Org,proto3" json:"Org,omitempty" dc:"渠道标识"` // 渠道标识
|
Uid string `protobuf:"bytes,3,opt,name=Uid,proto3" json:"Uid,omitempty" dc:"用户ID"` // 用户ID
|
||||||
OrgNo string `protobuf:"bytes,4,opt,name=OrgNo,proto3" json:"OrgNo,omitempty" dc:"渠道订单号"` // 渠道订单号
|
Org string `protobuf:"bytes,4,opt,name=Org,proto3" json:"Org,omitempty" dc:"渠道标识"` // 渠道标识
|
||||||
OrderNo string `protobuf:"bytes,5,opt,name=OrderNo,proto3" json:"OrderNo,omitempty" dc:"商户订单号"` // 商户订单号
|
OrgNo string `protobuf:"bytes,5,opt,name=OrgNo,proto3" json:"OrgNo,omitempty" dc:"渠道订单号"` // 渠道订单号
|
||||||
Context string `protobuf:"bytes,6,opt,name=Context,proto3" json:"Context,omitempty" dc:"上下文"` // 上下文
|
OrderNo string `protobuf:"bytes,6,opt,name=OrderNo,proto3" json:"OrderNo,omitempty" dc:"商户订单号"` // 商户订单号
|
||||||
CreatedAt *timestamppb.Timestamp `protobuf:"bytes,7,opt,name=CreatedAt,proto3" json:"CreatedAt,omitempty"` //
|
Action string `protobuf:"bytes,7,opt,name=Action,proto3" json:"Action,omitempty" dc:"动作"` // 动作
|
||||||
UpdatedAt *timestamppb.Timestamp `protobuf:"bytes,8,opt,name=UpdatedAt,proto3" json:"UpdatedAt,omitempty"` //
|
Content string `protobuf:"bytes,8,opt,name=Content,proto3" json:"Content,omitempty" dc:"内容"` // 内容
|
||||||
|
CreatedAt *timestamppb.Timestamp `protobuf:"bytes,9,opt,name=CreatedAt,proto3" json:"CreatedAt,omitempty"` //
|
||||||
|
UpdatedAt *timestamppb.Timestamp `protobuf:"bytes,10,opt,name=UpdatedAt,proto3" json:"UpdatedAt,omitempty"` //
|
||||||
}
|
}
|
||||||
|
|
||||||
func (x *Trackings) Reset() {
|
func (x *Trackings) Reset() {
|
||||||
@ -85,6 +87,13 @@ func (x *Trackings) GetKid() uint64 {
|
|||||||
return 0
|
return 0
|
||||||
}
|
}
|
||||||
|
|
||||||
|
func (x *Trackings) GetUid() string {
|
||||||
|
if x != nil {
|
||||||
|
return x.Uid
|
||||||
|
}
|
||||||
|
return ""
|
||||||
|
}
|
||||||
|
|
||||||
func (x *Trackings) GetOrg() string {
|
func (x *Trackings) GetOrg() string {
|
||||||
if x != nil {
|
if x != nil {
|
||||||
return x.Org
|
return x.Org
|
||||||
@ -106,9 +115,16 @@ func (x *Trackings) GetOrderNo() string {
|
|||||||
return ""
|
return ""
|
||||||
}
|
}
|
||||||
|
|
||||||
func (x *Trackings) GetContext() string {
|
func (x *Trackings) GetAction() string {
|
||||||
if x != nil {
|
if x != nil {
|
||||||
return x.Context
|
return x.Action
|
||||||
|
}
|
||||||
|
return ""
|
||||||
|
}
|
||||||
|
|
||||||
|
func (x *Trackings) GetContent() string {
|
||||||
|
if x != nil {
|
||||||
|
return x.Content
|
||||||
}
|
}
|
||||||
return ""
|
return ""
|
||||||
}
|
}
|
||||||
@ -133,26 +149,29 @@ var file_trackings_proto_rawDesc = []byte{
|
|||||||
0x0a, 0x0f, 0x74, 0x72, 0x61, 0x63, 0x6b, 0x69, 0x6e, 0x67, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74,
|
0x0a, 0x0f, 0x74, 0x72, 0x61, 0x63, 0x6b, 0x69, 0x6e, 0x67, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74,
|
||||||
0x6f, 0x12, 0x08, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x1a, 0x1f, 0x67, 0x6f, 0x6f,
|
0x6f, 0x12, 0x08, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x1a, 0x1f, 0x67, 0x6f, 0x6f,
|
||||||
0x67, 0x6c, 0x65, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2f, 0x74, 0x69, 0x6d,
|
0x67, 0x6c, 0x65, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2f, 0x74, 0x69, 0x6d,
|
||||||
0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0xfd, 0x01, 0x0a,
|
0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0xa7, 0x02, 0x0a,
|
||||||
0x09, 0x54, 0x72, 0x61, 0x63, 0x6b, 0x69, 0x6e, 0x67, 0x73, 0x12, 0x0e, 0x0a, 0x02, 0x49, 0x64,
|
0x09, 0x54, 0x72, 0x61, 0x63, 0x6b, 0x69, 0x6e, 0x67, 0x73, 0x12, 0x0e, 0x0a, 0x02, 0x49, 0x64,
|
||||||
0x18, 0x01, 0x20, 0x01, 0x28, 0x04, 0x52, 0x02, 0x49, 0x64, 0x12, 0x10, 0x0a, 0x03, 0x4b, 0x69,
|
0x18, 0x01, 0x20, 0x01, 0x28, 0x04, 0x52, 0x02, 0x49, 0x64, 0x12, 0x10, 0x0a, 0x03, 0x4b, 0x69,
|
||||||
0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x04, 0x52, 0x03, 0x4b, 0x69, 0x64, 0x12, 0x10, 0x0a, 0x03,
|
0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x04, 0x52, 0x03, 0x4b, 0x69, 0x64, 0x12, 0x10, 0x0a, 0x03,
|
||||||
0x4f, 0x72, 0x67, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x4f, 0x72, 0x67, 0x12, 0x14,
|
0x55, 0x69, 0x64, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x55, 0x69, 0x64, 0x12, 0x10,
|
||||||
0x0a, 0x05, 0x4f, 0x72, 0x67, 0x4e, 0x6f, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x4f,
|
0x0a, 0x03, 0x4f, 0x72, 0x67, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x4f, 0x72, 0x67,
|
||||||
0x72, 0x67, 0x4e, 0x6f, 0x12, 0x18, 0x0a, 0x07, 0x4f, 0x72, 0x64, 0x65, 0x72, 0x4e, 0x6f, 0x18,
|
0x12, 0x14, 0x0a, 0x05, 0x4f, 0x72, 0x67, 0x4e, 0x6f, 0x18, 0x05, 0x20, 0x01, 0x28, 0x09, 0x52,
|
||||||
0x05, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x4f, 0x72, 0x64, 0x65, 0x72, 0x4e, 0x6f, 0x12, 0x18,
|
0x05, 0x4f, 0x72, 0x67, 0x4e, 0x6f, 0x12, 0x18, 0x0a, 0x07, 0x4f, 0x72, 0x64, 0x65, 0x72, 0x4e,
|
||||||
0x0a, 0x07, 0x43, 0x6f, 0x6e, 0x74, 0x65, 0x78, 0x74, 0x18, 0x06, 0x20, 0x01, 0x28, 0x09, 0x52,
|
0x6f, 0x18, 0x06, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x4f, 0x72, 0x64, 0x65, 0x72, 0x4e, 0x6f,
|
||||||
0x07, 0x43, 0x6f, 0x6e, 0x74, 0x65, 0x78, 0x74, 0x12, 0x38, 0x0a, 0x09, 0x43, 0x72, 0x65, 0x61,
|
0x12, 0x16, 0x0a, 0x06, 0x41, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x07, 0x20, 0x01, 0x28, 0x09,
|
||||||
0x74, 0x65, 0x64, 0x41, 0x74, 0x18, 0x07, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x6f,
|
0x52, 0x06, 0x41, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x18, 0x0a, 0x07, 0x43, 0x6f, 0x6e, 0x74,
|
||||||
0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x54, 0x69,
|
0x65, 0x6e, 0x74, 0x18, 0x08, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x43, 0x6f, 0x6e, 0x74, 0x65,
|
||||||
0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x52, 0x09, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x64,
|
0x6e, 0x74, 0x12, 0x38, 0x0a, 0x09, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x64, 0x41, 0x74, 0x18,
|
||||||
0x41, 0x74, 0x12, 0x38, 0x0a, 0x09, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x64, 0x41, 0x74, 0x18,
|
0x09, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70,
|
||||||
0x08, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70,
|
|
||||||
0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x54, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d,
|
0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x54, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d,
|
||||||
0x70, 0x52, 0x09, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x64, 0x41, 0x74, 0x42, 0x25, 0x5a, 0x23,
|
0x70, 0x52, 0x09, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x64, 0x41, 0x74, 0x12, 0x38, 0x0a, 0x09,
|
||||||
0x67, 0x69, 0x74, 0x2e, 0x6c, 0x69, 0x6e, 0x6b, 0x69, 0x69, 0x6f, 0x2e, 0x63, 0x6e, 0x2f, 0x6c,
|
0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x64, 0x41, 0x74, 0x18, 0x0a, 0x20, 0x01, 0x28, 0x0b, 0x32,
|
||||||
0x69, 0x6e, 0x6b, 0x70, 0x61, 0x79, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f,
|
0x1a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75,
|
||||||
0x62, 0x75, 0x66, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
|
0x66, 0x2e, 0x54, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x52, 0x09, 0x55, 0x70, 0x64,
|
||||||
|
0x61, 0x74, 0x65, 0x64, 0x41, 0x74, 0x42, 0x25, 0x5a, 0x23, 0x67, 0x69, 0x74, 0x2e, 0x6c, 0x69,
|
||||||
|
0x6e, 0x6b, 0x69, 0x69, 0x6f, 0x2e, 0x63, 0x6e, 0x2f, 0x6c, 0x69, 0x6e, 0x6b, 0x70, 0x61, 0x79,
|
||||||
|
0x2f, 0x61, 0x70, 0x69, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x62, 0x06, 0x70,
|
||||||
|
0x72, 0x6f, 0x74, 0x6f, 0x33,
|
||||||
}
|
}
|
||||||
|
|
||||||
var (
|
var (
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user