|
|
@@ -13985,6 +13985,214 @@ func (x *LoginRsp) GetClientID() uint64 {
|
|
|
return 0
|
|
|
}
|
|
|
|
|
|
+// 客户离线通知
|
|
|
+type CustOfflineNtf struct {
|
|
|
+ state protoimpl.MessageState
|
|
|
+ sizeCache protoimpl.SizeCache
|
|
|
+ unknownFields protoimpl.UnknownFields
|
|
|
+
|
|
|
+ Header *MessageHead `protobuf:"bytes,1,opt,name=Header" json:"Header,omitempty"` // 消息头
|
|
|
+ SessionID []uint32 `protobuf:"varint,2,rep,name=SessionID" json:"SessionID,omitempty"` // uint32 用户的sessionid(由接入服务分配的),是一数组。该接口是系统内部服务使用的接口
|
|
|
+ LoginID []uint64 `protobuf:"varint,3,rep,name=LoginID" json:"LoginID,omitempty"` // uint64 用户登陆的loginid,是一数组。该接口是系统内部服务使用的接口
|
|
|
+}
|
|
|
+
|
|
|
+func (x *CustOfflineNtf) Reset() {
|
|
|
+ *x = CustOfflineNtf{}
|
|
|
+ if protoimpl.UnsafeEnabled {
|
|
|
+ mi := &file_mtp2_proto_msgTypes[120]
|
|
|
+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
|
+ ms.StoreMessageInfo(mi)
|
|
|
+ }
|
|
|
+}
|
|
|
+
|
|
|
+func (x *CustOfflineNtf) String() string {
|
|
|
+ return protoimpl.X.MessageStringOf(x)
|
|
|
+}
|
|
|
+
|
|
|
+func (*CustOfflineNtf) ProtoMessage() {}
|
|
|
+
|
|
|
+func (x *CustOfflineNtf) ProtoReflect() protoreflect.Message {
|
|
|
+ mi := &file_mtp2_proto_msgTypes[120]
|
|
|
+ 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 CustOfflineNtf.ProtoReflect.Descriptor instead.
|
|
|
+func (*CustOfflineNtf) Descriptor() ([]byte, []int) {
|
|
|
+ return file_mtp2_proto_rawDescGZIP(), []int{120}
|
|
|
+}
|
|
|
+
|
|
|
+func (x *CustOfflineNtf) GetHeader() *MessageHead {
|
|
|
+ if x != nil {
|
|
|
+ return x.Header
|
|
|
+ }
|
|
|
+ return nil
|
|
|
+}
|
|
|
+
|
|
|
+func (x *CustOfflineNtf) GetSessionID() []uint32 {
|
|
|
+ if x != nil {
|
|
|
+ return x.SessionID
|
|
|
+ }
|
|
|
+ return nil
|
|
|
+}
|
|
|
+
|
|
|
+func (x *CustOfflineNtf) GetLoginID() []uint64 {
|
|
|
+ if x != nil {
|
|
|
+ return x.LoginID
|
|
|
+ }
|
|
|
+ return nil
|
|
|
+}
|
|
|
+
|
|
|
+// 用户登出请求
|
|
|
+type LogoutReq struct {
|
|
|
+ state protoimpl.MessageState
|
|
|
+ sizeCache protoimpl.SizeCache
|
|
|
+ unknownFields protoimpl.UnknownFields
|
|
|
+
|
|
|
+ Header *MessageHead `protobuf:"bytes,1,opt,name=Header" json:"Header,omitempty"`
|
|
|
+ LoginID *uint64 `protobuf:"varint,2,opt,name=LoginID" json:"LoginID,omitempty"` // 登录ID
|
|
|
+ Token *string `protobuf:"bytes,3,opt,name=Token" json:"Token,omitempty"` // 登录时返回的用户令牌
|
|
|
+ LoginIp *string `protobuf:"bytes,4,opt,name=LoginIp" json:"LoginIp,omitempty"` // 登出IP地址
|
|
|
+ LoginPort *uint32 `protobuf:"varint,5,opt,name=LoginPort" json:"LoginPort,omitempty"` // 登出通信端口
|
|
|
+}
|
|
|
+
|
|
|
+func (x *LogoutReq) Reset() {
|
|
|
+ *x = LogoutReq{}
|
|
|
+ if protoimpl.UnsafeEnabled {
|
|
|
+ mi := &file_mtp2_proto_msgTypes[121]
|
|
|
+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
|
+ ms.StoreMessageInfo(mi)
|
|
|
+ }
|
|
|
+}
|
|
|
+
|
|
|
+func (x *LogoutReq) String() string {
|
|
|
+ return protoimpl.X.MessageStringOf(x)
|
|
|
+}
|
|
|
+
|
|
|
+func (*LogoutReq) ProtoMessage() {}
|
|
|
+
|
|
|
+func (x *LogoutReq) ProtoReflect() protoreflect.Message {
|
|
|
+ mi := &file_mtp2_proto_msgTypes[121]
|
|
|
+ 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 LogoutReq.ProtoReflect.Descriptor instead.
|
|
|
+func (*LogoutReq) Descriptor() ([]byte, []int) {
|
|
|
+ return file_mtp2_proto_rawDescGZIP(), []int{121}
|
|
|
+}
|
|
|
+
|
|
|
+func (x *LogoutReq) GetHeader() *MessageHead {
|
|
|
+ if x != nil {
|
|
|
+ return x.Header
|
|
|
+ }
|
|
|
+ return nil
|
|
|
+}
|
|
|
+
|
|
|
+func (x *LogoutReq) GetLoginID() uint64 {
|
|
|
+ if x != nil && x.LoginID != nil {
|
|
|
+ return *x.LoginID
|
|
|
+ }
|
|
|
+ return 0
|
|
|
+}
|
|
|
+
|
|
|
+func (x *LogoutReq) GetToken() string {
|
|
|
+ if x != nil && x.Token != nil {
|
|
|
+ return *x.Token
|
|
|
+ }
|
|
|
+ return ""
|
|
|
+}
|
|
|
+
|
|
|
+func (x *LogoutReq) GetLoginIp() string {
|
|
|
+ if x != nil && x.LoginIp != nil {
|
|
|
+ return *x.LoginIp
|
|
|
+ }
|
|
|
+ return ""
|
|
|
+}
|
|
|
+
|
|
|
+func (x *LogoutReq) GetLoginPort() uint32 {
|
|
|
+ if x != nil && x.LoginPort != nil {
|
|
|
+ return *x.LoginPort
|
|
|
+ }
|
|
|
+ return 0
|
|
|
+}
|
|
|
+
|
|
|
+// 用户登出应答
|
|
|
+type LogoutRsp struct {
|
|
|
+ state protoimpl.MessageState
|
|
|
+ sizeCache protoimpl.SizeCache
|
|
|
+ unknownFields protoimpl.UnknownFields
|
|
|
+
|
|
|
+ Header *MessageHead `protobuf:"bytes,1,opt,name=Header" json:"Header,omitempty"` // 消息头
|
|
|
+ RetCode *int32 `protobuf:"varint,2,opt,name=RetCode" json:"RetCode,omitempty"` // 返回码
|
|
|
+ RetDesc *string `protobuf:"bytes,3,opt,name=RetDesc" json:"RetDesc,omitempty"` // 描述信息
|
|
|
+}
|
|
|
+
|
|
|
+func (x *LogoutRsp) Reset() {
|
|
|
+ *x = LogoutRsp{}
|
|
|
+ if protoimpl.UnsafeEnabled {
|
|
|
+ mi := &file_mtp2_proto_msgTypes[122]
|
|
|
+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
|
+ ms.StoreMessageInfo(mi)
|
|
|
+ }
|
|
|
+}
|
|
|
+
|
|
|
+func (x *LogoutRsp) String() string {
|
|
|
+ return protoimpl.X.MessageStringOf(x)
|
|
|
+}
|
|
|
+
|
|
|
+func (*LogoutRsp) ProtoMessage() {}
|
|
|
+
|
|
|
+func (x *LogoutRsp) ProtoReflect() protoreflect.Message {
|
|
|
+ mi := &file_mtp2_proto_msgTypes[122]
|
|
|
+ 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 LogoutRsp.ProtoReflect.Descriptor instead.
|
|
|
+func (*LogoutRsp) Descriptor() ([]byte, []int) {
|
|
|
+ return file_mtp2_proto_rawDescGZIP(), []int{122}
|
|
|
+}
|
|
|
+
|
|
|
+func (x *LogoutRsp) GetHeader() *MessageHead {
|
|
|
+ if x != nil {
|
|
|
+ return x.Header
|
|
|
+ }
|
|
|
+ return nil
|
|
|
+}
|
|
|
+
|
|
|
+func (x *LogoutRsp) GetRetCode() int32 {
|
|
|
+ if x != nil && x.RetCode != nil {
|
|
|
+ return *x.RetCode
|
|
|
+ }
|
|
|
+ return 0
|
|
|
+}
|
|
|
+
|
|
|
+func (x *LogoutRsp) GetRetDesc() string {
|
|
|
+ if x != nil && x.RetDesc != nil {
|
|
|
+ return *x.RetDesc
|
|
|
+ }
|
|
|
+ return ""
|
|
|
+}
|
|
|
+
|
|
|
var File_mtp2_proto protoreflect.FileDescriptor
|
|
|
|
|
|
var file_mtp2_proto_rawDesc = []byte{
|
|
|
@@ -16572,7 +16780,31 @@ var file_mtp2_proto_rawDesc = []byte{
|
|
|
0x49, 0x6e, 0x66, 0x6f, 0x18, 0x11, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x10, 0x43, 0x6c, 0x69, 0x65,
|
|
|
0x6e, 0x74, 0x53, 0x79, 0x73, 0x74, 0x65, 0x6d, 0x49, 0x6e, 0x66, 0x6f, 0x12, 0x1a, 0x0a, 0x08,
|
|
|
0x43, 0x6c, 0x69, 0x65, 0x6e, 0x74, 0x49, 0x44, 0x18, 0x12, 0x20, 0x01, 0x28, 0x04, 0x52, 0x08,
|
|
|
- 0x43, 0x6c, 0x69, 0x65, 0x6e, 0x74, 0x49, 0x44,
|
|
|
+ 0x43, 0x6c, 0x69, 0x65, 0x6e, 0x74, 0x49, 0x44, 0x22, 0x71, 0x0a, 0x0e, 0x43, 0x75, 0x73, 0x74,
|
|
|
+ 0x4f, 0x66, 0x66, 0x6c, 0x69, 0x6e, 0x65, 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, 0x1c, 0x0a, 0x09, 0x53, 0x65, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x49, 0x44,
|
|
|
+ 0x18, 0x02, 0x20, 0x03, 0x28, 0x0d, 0x52, 0x09, 0x53, 0x65, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x49,
|
|
|
+ 0x44, 0x12, 0x18, 0x0a, 0x07, 0x4c, 0x6f, 0x67, 0x69, 0x6e, 0x49, 0x44, 0x18, 0x03, 0x20, 0x03,
|
|
|
+ 0x28, 0x04, 0x52, 0x07, 0x4c, 0x6f, 0x67, 0x69, 0x6e, 0x49, 0x44, 0x22, 0x9c, 0x01, 0x0a, 0x09,
|
|
|
+ 0x4c, 0x6f, 0x67, 0x6f, 0x75, 0x74, 0x52, 0x65, 0x71, 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, 0x18, 0x0a, 0x07, 0x4c, 0x6f, 0x67, 0x69, 0x6e, 0x49, 0x44, 0x18, 0x02, 0x20,
|
|
|
+ 0x01, 0x28, 0x04, 0x52, 0x07, 0x4c, 0x6f, 0x67, 0x69, 0x6e, 0x49, 0x44, 0x12, 0x14, 0x0a, 0x05,
|
|
|
+ 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x54, 0x6f, 0x6b,
|
|
|
+ 0x65, 0x6e, 0x12, 0x18, 0x0a, 0x07, 0x4c, 0x6f, 0x67, 0x69, 0x6e, 0x49, 0x70, 0x18, 0x04, 0x20,
|
|
|
+ 0x01, 0x28, 0x09, 0x52, 0x07, 0x4c, 0x6f, 0x67, 0x69, 0x6e, 0x49, 0x70, 0x12, 0x1c, 0x0a, 0x09,
|
|
|
+ 0x4c, 0x6f, 0x67, 0x69, 0x6e, 0x50, 0x6f, 0x72, 0x74, 0x18, 0x05, 0x20, 0x01, 0x28, 0x0d, 0x52,
|
|
|
+ 0x09, 0x4c, 0x6f, 0x67, 0x69, 0x6e, 0x50, 0x6f, 0x72, 0x74, 0x22, 0x68, 0x0a, 0x09, 0x4c, 0x6f,
|
|
|
+ 0x67, 0x6f, 0x75, 0x74, 0x52, 0x73, 0x70, 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, 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,
|
|
|
}
|
|
|
|
|
|
var (
|
|
|
@@ -16587,7 +16819,7 @@ func file_mtp2_proto_rawDescGZIP() []byte {
|
|
|
return file_mtp2_proto_rawDescData
|
|
|
}
|
|
|
|
|
|
-var file_mtp2_proto_msgTypes = make([]protoimpl.MessageInfo, 120)
|
|
|
+var file_mtp2_proto_msgTypes = make([]protoimpl.MessageInfo, 123)
|
|
|
var file_mtp2_proto_goTypes = []interface{}{
|
|
|
(*MessageHead)(nil), // 0: pb.MessageHead
|
|
|
(*NotifyHead)(nil), // 1: pb.NotifyHead
|
|
|
@@ -16709,6 +16941,9 @@ var file_mtp2_proto_goTypes = []interface{}{
|
|
|
(*DeliveryClientOperatorRsp)(nil), // 117: pb.DeliveryClientOperatorRsp
|
|
|
(*LoginReq)(nil), // 118: pb.LoginReq
|
|
|
(*LoginRsp)(nil), // 119: pb.LoginRsp
|
|
|
+ (*CustOfflineNtf)(nil), // 120: pb.CustOfflineNtf
|
|
|
+ (*LogoutReq)(nil), // 121: pb.LogoutReq
|
|
|
+ (*LogoutRsp)(nil), // 122: pb.LogoutRsp
|
|
|
}
|
|
|
var file_mtp2_proto_depIdxs = []int32{
|
|
|
0, // 0: pb.MoneyChangedNtf.Header:type_name -> pb.MessageHead
|
|
|
@@ -16836,11 +17071,14 @@ var file_mtp2_proto_depIdxs = []int32{
|
|
|
0, // 122: pb.DeliveryClientOperatorRsp.Header:type_name -> pb.MessageHead
|
|
|
0, // 123: pb.LoginReq.Header:type_name -> pb.MessageHead
|
|
|
0, // 124: pb.LoginRsp.Header:type_name -> pb.MessageHead
|
|
|
- 125, // [125:125] is the sub-list for method output_type
|
|
|
- 125, // [125:125] is the sub-list for method input_type
|
|
|
- 125, // [125:125] is the sub-list for extension type_name
|
|
|
- 125, // [125:125] is the sub-list for extension extendee
|
|
|
- 0, // [0:125] is the sub-list for field type_name
|
|
|
+ 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
|
|
|
}
|
|
|
|
|
|
func init() { file_mtp2_proto_init() }
|
|
|
@@ -18289,6 +18527,42 @@ func file_mtp2_proto_init() {
|
|
|
return nil
|
|
|
}
|
|
|
}
|
|
|
+ file_mtp2_proto_msgTypes[120].Exporter = func(v interface{}, i int) interface{} {
|
|
|
+ switch v := v.(*CustOfflineNtf); i {
|
|
|
+ case 0:
|
|
|
+ return &v.state
|
|
|
+ case 1:
|
|
|
+ return &v.sizeCache
|
|
|
+ case 2:
|
|
|
+ return &v.unknownFields
|
|
|
+ default:
|
|
|
+ return nil
|
|
|
+ }
|
|
|
+ }
|
|
|
+ file_mtp2_proto_msgTypes[121].Exporter = func(v interface{}, i int) interface{} {
|
|
|
+ switch v := v.(*LogoutReq); i {
|
|
|
+ case 0:
|
|
|
+ return &v.state
|
|
|
+ case 1:
|
|
|
+ return &v.sizeCache
|
|
|
+ case 2:
|
|
|
+ return &v.unknownFields
|
|
|
+ default:
|
|
|
+ return nil
|
|
|
+ }
|
|
|
+ }
|
|
|
+ file_mtp2_proto_msgTypes[122].Exporter = func(v interface{}, i int) interface{} {
|
|
|
+ switch v := v.(*LogoutRsp); 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{
|
|
|
@@ -18296,7 +18570,7 @@ func file_mtp2_proto_init() {
|
|
|
GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
|
|
|
RawDescriptor: file_mtp2_proto_rawDesc,
|
|
|
NumEnums: 0,
|
|
|
- NumMessages: 120,
|
|
|
+ NumMessages: 123,
|
|
|
NumExtensions: 0,
|
|
|
NumServices: 0,
|
|
|
},
|