|
|
@@ -14193,6 +14193,78 @@ func (x *LogoutRsp) GetRetDesc() string {
|
|
|
return ""
|
|
|
}
|
|
|
|
|
|
+// 头寸变化通知
|
|
|
+type PosChangedNtf struct {
|
|
|
+ state protoimpl.MessageState
|
|
|
+ sizeCache protoimpl.SizeCache
|
|
|
+ unknownFields protoimpl.UnknownFields
|
|
|
+
|
|
|
+ Header *MessageHead `protobuf:"bytes,1,opt,name=Header" json:"Header,omitempty"` // 消息头
|
|
|
+ NtfHeader *NotifyHead `protobuf:"bytes,2,opt,name=NtfHeader" json:"NtfHeader,omitempty"` // NotifyHead 公共消息头
|
|
|
+ AccountID *uint64 `protobuf:"varint,3,opt,name=AccountID" json:"AccountID,omitempty"` // uint64 交易账号
|
|
|
+ GoodsID *uint32 `protobuf:"varint,4,opt,name=GoodsID" json:"GoodsID,omitempty"` // uint32 商品
|
|
|
+}
|
|
|
+
|
|
|
+func (x *PosChangedNtf) Reset() {
|
|
|
+ *x = PosChangedNtf{}
|
|
|
+ if protoimpl.UnsafeEnabled {
|
|
|
+ mi := &file_mtp2_proto_msgTypes[123]
|
|
|
+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
|
+ ms.StoreMessageInfo(mi)
|
|
|
+ }
|
|
|
+}
|
|
|
+
|
|
|
+func (x *PosChangedNtf) String() string {
|
|
|
+ return protoimpl.X.MessageStringOf(x)
|
|
|
+}
|
|
|
+
|
|
|
+func (*PosChangedNtf) ProtoMessage() {}
|
|
|
+
|
|
|
+func (x *PosChangedNtf) ProtoReflect() protoreflect.Message {
|
|
|
+ mi := &file_mtp2_proto_msgTypes[123]
|
|
|
+ if protoimpl.UnsafeEnabled && x != nil {
|
|
|
+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
|
+ if ms.LoadMessageInfo() == nil {
|
|
|
+ ms.StoreMessageInfo(mi)
|
|
|
+ }
|
|
|
+ return ms
|
|
|
+ }
|
|
|
+ return mi.MessageOf(x)
|
|
|
+}
|
|
|
+
|
|
|
+// Deprecated: Use PosChangedNtf.ProtoReflect.Descriptor instead.
|
|
|
+func (*PosChangedNtf) Descriptor() ([]byte, []int) {
|
|
|
+ return file_mtp2_proto_rawDescGZIP(), []int{123}
|
|
|
+}
|
|
|
+
|
|
|
+func (x *PosChangedNtf) GetHeader() *MessageHead {
|
|
|
+ if x != nil {
|
|
|
+ return x.Header
|
|
|
+ }
|
|
|
+ return nil
|
|
|
+}
|
|
|
+
|
|
|
+func (x *PosChangedNtf) GetNtfHeader() *NotifyHead {
|
|
|
+ if x != nil {
|
|
|
+ return x.NtfHeader
|
|
|
+ }
|
|
|
+ return nil
|
|
|
+}
|
|
|
+
|
|
|
+func (x *PosChangedNtf) GetAccountID() uint64 {
|
|
|
+ if x != nil && x.AccountID != nil {
|
|
|
+ return *x.AccountID
|
|
|
+ }
|
|
|
+ return 0
|
|
|
+}
|
|
|
+
|
|
|
+func (x *PosChangedNtf) GetGoodsID() uint32 {
|
|
|
+ if x != nil && x.GoodsID != nil {
|
|
|
+ return *x.GoodsID
|
|
|
+ }
|
|
|
+ return 0
|
|
|
+}
|
|
|
+
|
|
|
var File_mtp2_proto protoreflect.FileDescriptor
|
|
|
|
|
|
var file_mtp2_proto_rawDesc = []byte{
|
|
|
@@ -16804,7 +16876,17 @@ var file_mtp2_proto_rawDesc = []byte{
|
|
|
0x12, 0x18, 0x0a, 0x07, 0x52, 0x65, 0x74, 0x43, 0x6f, 0x64, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28,
|
|
|
0x05, 0x52, 0x07, 0x52, 0x65, 0x74, 0x43, 0x6f, 0x64, 0x65, 0x12, 0x18, 0x0a, 0x07, 0x52, 0x65,
|
|
|
0x74, 0x44, 0x65, 0x73, 0x63, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x52, 0x65, 0x74,
|
|
|
- 0x44, 0x65, 0x73, 0x63,
|
|
|
+ 0x44, 0x65, 0x73, 0x63, 0x22, 0x9e, 0x01, 0x0a, 0x0d, 0x50, 0x6f, 0x73, 0x43, 0x68, 0x61, 0x6e,
|
|
|
+ 0x67, 0x65, 0x64, 0x4e, 0x74, 0x66, 0x12, 0x27, 0x0a, 0x06, 0x48, 0x65, 0x61, 0x64, 0x65, 0x72,
|
|
|
+ 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x0f, 0x2e, 0x70, 0x62, 0x2e, 0x4d, 0x65, 0x73, 0x73,
|
|
|
+ 0x61, 0x67, 0x65, 0x48, 0x65, 0x61, 0x64, 0x52, 0x06, 0x48, 0x65, 0x61, 0x64, 0x65, 0x72, 0x12,
|
|
|
+ 0x2c, 0x0a, 0x09, 0x4e, 0x74, 0x66, 0x48, 0x65, 0x61, 0x64, 0x65, 0x72, 0x18, 0x02, 0x20, 0x01,
|
|
|
+ 0x28, 0x0b, 0x32, 0x0e, 0x2e, 0x70, 0x62, 0x2e, 0x4e, 0x6f, 0x74, 0x69, 0x66, 0x79, 0x48, 0x65,
|
|
|
+ 0x61, 0x64, 0x52, 0x09, 0x4e, 0x74, 0x66, 0x48, 0x65, 0x61, 0x64, 0x65, 0x72, 0x12, 0x1c, 0x0a,
|
|
|
+ 0x09, 0x41, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x49, 0x44, 0x18, 0x03, 0x20, 0x01, 0x28, 0x04,
|
|
|
+ 0x52, 0x09, 0x41, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x49, 0x44, 0x12, 0x18, 0x0a, 0x07, 0x47,
|
|
|
+ 0x6f, 0x6f, 0x64, 0x73, 0x49, 0x44, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x07, 0x47, 0x6f,
|
|
|
+ 0x6f, 0x64, 0x73, 0x49, 0x44,
|
|
|
}
|
|
|
|
|
|
var (
|
|
|
@@ -16819,7 +16901,7 @@ func file_mtp2_proto_rawDescGZIP() []byte {
|
|
|
return file_mtp2_proto_rawDescData
|
|
|
}
|
|
|
|
|
|
-var file_mtp2_proto_msgTypes = make([]protoimpl.MessageInfo, 123)
|
|
|
+var file_mtp2_proto_msgTypes = make([]protoimpl.MessageInfo, 124)
|
|
|
var file_mtp2_proto_goTypes = []interface{}{
|
|
|
(*MessageHead)(nil), // 0: pb.MessageHead
|
|
|
(*NotifyHead)(nil), // 1: pb.NotifyHead
|
|
|
@@ -16944,6 +17026,7 @@ var file_mtp2_proto_goTypes = []interface{}{
|
|
|
(*CustOfflineNtf)(nil), // 120: pb.CustOfflineNtf
|
|
|
(*LogoutReq)(nil), // 121: pb.LogoutReq
|
|
|
(*LogoutRsp)(nil), // 122: pb.LogoutRsp
|
|
|
+ (*PosChangedNtf)(nil), // 123: pb.PosChangedNtf
|
|
|
}
|
|
|
var file_mtp2_proto_depIdxs = []int32{
|
|
|
0, // 0: pb.MoneyChangedNtf.Header:type_name -> pb.MessageHead
|
|
|
@@ -17074,11 +17157,13 @@ var file_mtp2_proto_depIdxs = []int32{
|
|
|
0, // 125: pb.CustOfflineNtf.Header:type_name -> pb.MessageHead
|
|
|
0, // 126: pb.LogoutReq.Header:type_name -> pb.MessageHead
|
|
|
0, // 127: pb.LogoutRsp.Header:type_name -> pb.MessageHead
|
|
|
- 128, // [128:128] is the sub-list for method output_type
|
|
|
- 128, // [128:128] is the sub-list for method input_type
|
|
|
- 128, // [128:128] is the sub-list for extension type_name
|
|
|
- 128, // [128:128] is the sub-list for extension extendee
|
|
|
- 0, // [0:128] is the sub-list for field type_name
|
|
|
+ 0, // 128: pb.PosChangedNtf.Header:type_name -> pb.MessageHead
|
|
|
+ 1, // 129: pb.PosChangedNtf.NtfHeader:type_name -> pb.NotifyHead
|
|
|
+ 130, // [130:130] is the sub-list for method output_type
|
|
|
+ 130, // [130:130] is the sub-list for method input_type
|
|
|
+ 130, // [130:130] is the sub-list for extension type_name
|
|
|
+ 130, // [130:130] is the sub-list for extension extendee
|
|
|
+ 0, // [0:130] is the sub-list for field type_name
|
|
|
}
|
|
|
|
|
|
func init() { file_mtp2_proto_init() }
|
|
|
@@ -18563,6 +18648,18 @@ func file_mtp2_proto_init() {
|
|
|
return nil
|
|
|
}
|
|
|
}
|
|
|
+ file_mtp2_proto_msgTypes[123].Exporter = func(v interface{}, i int) interface{} {
|
|
|
+ switch v := v.(*PosChangedNtf); i {
|
|
|
+ case 0:
|
|
|
+ return &v.state
|
|
|
+ case 1:
|
|
|
+ return &v.sizeCache
|
|
|
+ case 2:
|
|
|
+ return &v.unknownFields
|
|
|
+ default:
|
|
|
+ return nil
|
|
|
+ }
|
|
|
+ }
|
|
|
}
|
|
|
type x struct{}
|
|
|
out := protoimpl.TypeBuilder{
|
|
|
@@ -18570,7 +18667,7 @@ func file_mtp2_proto_init() {
|
|
|
GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
|
|
|
RawDescriptor: file_mtp2_proto_rawDesc,
|
|
|
NumEnums: 0,
|
|
|
- NumMessages: 123,
|
|
|
+ NumMessages: 124,
|
|
|
NumExtensions: 0,
|
|
|
NumServices: 0,
|
|
|
},
|