@@ -0,0 +1,595 @@ | |||
// Code generated by protoc-gen-go. DO NOT EDIT. | |||
// versions: | |||
// protoc-gen-go v1.28.1 | |||
// protoc v3.20.0--rc1 | |||
// source: business.int.proto | |||
package pb | |||
import ( | |||
context "context" | |||
grpc "google.golang.org/grpc" | |||
codes "google.golang.org/grpc/codes" | |||
status "google.golang.org/grpc/status" | |||
protoreflect "google.golang.org/protobuf/reflect/protoreflect" | |||
protoimpl "google.golang.org/protobuf/runtime/protoimpl" | |||
reflect "reflect" | |||
sync "sync" | |||
) | |||
const ( | |||
// Verify that this generated code is sufficiently up-to-date. | |||
_ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) | |||
// Verify that runtime/protoimpl is sufficiently up-to-date. | |||
_ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) | |||
) | |||
type MasterAuthReq struct { | |||
state protoimpl.MessageState | |||
sizeCache protoimpl.SizeCache | |||
unknownFields protoimpl.UnknownFields | |||
MasterId string `protobuf:"bytes,1,opt,name=master_id,json=masterId,proto3" json:"master_id,omitempty"` | |||
} | |||
func (x *MasterAuthReq) Reset() { | |||
*x = MasterAuthReq{} | |||
if protoimpl.UnsafeEnabled { | |||
mi := &file_business_int_proto_msgTypes[0] | |||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) | |||
ms.StoreMessageInfo(mi) | |||
} | |||
} | |||
func (x *MasterAuthReq) String() string { | |||
return protoimpl.X.MessageStringOf(x) | |||
} | |||
func (*MasterAuthReq) ProtoMessage() {} | |||
func (x *MasterAuthReq) ProtoReflect() protoreflect.Message { | |||
mi := &file_business_int_proto_msgTypes[0] | |||
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 MasterAuthReq.ProtoReflect.Descriptor instead. | |||
func (*MasterAuthReq) Descriptor() ([]byte, []int) { | |||
return file_business_int_proto_rawDescGZIP(), []int{0} | |||
} | |||
func (x *MasterAuthReq) GetMasterId() string { | |||
if x != nil { | |||
return x.MasterId | |||
} | |||
return "" | |||
} | |||
type AuthReq struct { | |||
state protoimpl.MessageState | |||
sizeCache protoimpl.SizeCache | |||
unknownFields protoimpl.UnknownFields | |||
UserId int64 `protobuf:"varint,1,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"` | |||
DeviceId int64 `protobuf:"varint,2,opt,name=device_id,json=deviceId,proto3" json:"device_id,omitempty"` | |||
Token string `protobuf:"bytes,3,opt,name=token,proto3" json:"token,omitempty"` | |||
} | |||
func (x *AuthReq) Reset() { | |||
*x = AuthReq{} | |||
if protoimpl.UnsafeEnabled { | |||
mi := &file_business_int_proto_msgTypes[1] | |||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) | |||
ms.StoreMessageInfo(mi) | |||
} | |||
} | |||
func (x *AuthReq) String() string { | |||
return protoimpl.X.MessageStringOf(x) | |||
} | |||
func (*AuthReq) ProtoMessage() {} | |||
func (x *AuthReq) ProtoReflect() protoreflect.Message { | |||
mi := &file_business_int_proto_msgTypes[1] | |||
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 AuthReq.ProtoReflect.Descriptor instead. | |||
func (*AuthReq) Descriptor() ([]byte, []int) { | |||
return file_business_int_proto_rawDescGZIP(), []int{1} | |||
} | |||
func (x *AuthReq) GetUserId() int64 { | |||
if x != nil { | |||
return x.UserId | |||
} | |||
return 0 | |||
} | |||
func (x *AuthReq) GetDeviceId() int64 { | |||
if x != nil { | |||
return x.DeviceId | |||
} | |||
return 0 | |||
} | |||
func (x *AuthReq) GetToken() string { | |||
if x != nil { | |||
return x.Token | |||
} | |||
return "" | |||
} | |||
type GetUsersReq struct { | |||
state protoimpl.MessageState | |||
sizeCache protoimpl.SizeCache | |||
unknownFields protoimpl.UnknownFields | |||
UserIds map[int64]int32 `protobuf:"bytes,1,rep,name=user_ids,json=userIds,proto3" json:"user_ids,omitempty" protobuf_key:"varint,1,opt,name=key,proto3" protobuf_val:"varint,2,opt,name=value,proto3"` // 用户id | |||
} | |||
func (x *GetUsersReq) Reset() { | |||
*x = GetUsersReq{} | |||
if protoimpl.UnsafeEnabled { | |||
mi := &file_business_int_proto_msgTypes[2] | |||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) | |||
ms.StoreMessageInfo(mi) | |||
} | |||
} | |||
func (x *GetUsersReq) String() string { | |||
return protoimpl.X.MessageStringOf(x) | |||
} | |||
func (*GetUsersReq) ProtoMessage() {} | |||
func (x *GetUsersReq) ProtoReflect() protoreflect.Message { | |||
mi := &file_business_int_proto_msgTypes[2] | |||
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 GetUsersReq.ProtoReflect.Descriptor instead. | |||
func (*GetUsersReq) Descriptor() ([]byte, []int) { | |||
return file_business_int_proto_rawDescGZIP(), []int{2} | |||
} | |||
func (x *GetUsersReq) GetUserIds() map[int64]int32 { | |||
if x != nil { | |||
return x.UserIds | |||
} | |||
return nil | |||
} | |||
type GetUsersResp struct { | |||
state protoimpl.MessageState | |||
sizeCache protoimpl.SizeCache | |||
unknownFields protoimpl.UnknownFields | |||
Users map[int64]*User `protobuf:"bytes,1,rep,name=users,proto3" json:"users,omitempty" protobuf_key:"varint,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"` // 用户信息 | |||
} | |||
func (x *GetUsersResp) Reset() { | |||
*x = GetUsersResp{} | |||
if protoimpl.UnsafeEnabled { | |||
mi := &file_business_int_proto_msgTypes[3] | |||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) | |||
ms.StoreMessageInfo(mi) | |||
} | |||
} | |||
func (x *GetUsersResp) String() string { | |||
return protoimpl.X.MessageStringOf(x) | |||
} | |||
func (*GetUsersResp) ProtoMessage() {} | |||
func (x *GetUsersResp) ProtoReflect() protoreflect.Message { | |||
mi := &file_business_int_proto_msgTypes[3] | |||
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 GetUsersResp.ProtoReflect.Descriptor instead. | |||
func (*GetUsersResp) Descriptor() ([]byte, []int) { | |||
return file_business_int_proto_rawDescGZIP(), []int{3} | |||
} | |||
func (x *GetUsersResp) GetUsers() map[int64]*User { | |||
if x != nil { | |||
return x.Users | |||
} | |||
return nil | |||
} | |||
var File_business_int_proto protoreflect.FileDescriptor | |||
var file_business_int_proto_rawDesc = []byte{ | |||
0x0a, 0x12, 0x62, 0x75, 0x73, 0x69, 0x6e, 0x65, 0x73, 0x73, 0x2e, 0x69, 0x6e, 0x74, 0x2e, 0x70, | |||
0x72, 0x6f, 0x74, 0x6f, 0x12, 0x02, 0x70, 0x62, 0x1a, 0x10, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, | |||
0x2e, 0x65, 0x78, 0x74, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x12, 0x62, 0x75, 0x73, 0x69, | |||
0x6e, 0x65, 0x73, 0x73, 0x2e, 0x65, 0x78, 0x74, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0x2c, | |||
0x0a, 0x0d, 0x4d, 0x61, 0x73, 0x74, 0x65, 0x72, 0x41, 0x75, 0x74, 0x68, 0x52, 0x65, 0x71, 0x12, | |||
0x1b, 0x0a, 0x09, 0x6d, 0x61, 0x73, 0x74, 0x65, 0x72, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, | |||
0x28, 0x09, 0x52, 0x08, 0x6d, 0x61, 0x73, 0x74, 0x65, 0x72, 0x49, 0x64, 0x22, 0x55, 0x0a, 0x07, | |||
0x41, 0x75, 0x74, 0x68, 0x52, 0x65, 0x71, 0x12, 0x17, 0x0a, 0x07, 0x75, 0x73, 0x65, 0x72, 0x5f, | |||
0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x03, 0x52, 0x06, 0x75, 0x73, 0x65, 0x72, 0x49, 0x64, | |||
0x12, 0x1b, 0x0a, 0x09, 0x64, 0x65, 0x76, 0x69, 0x63, 0x65, 0x5f, 0x69, 0x64, 0x18, 0x02, 0x20, | |||
0x01, 0x28, 0x03, 0x52, 0x08, 0x64, 0x65, 0x76, 0x69, 0x63, 0x65, 0x49, 0x64, 0x12, 0x14, 0x0a, | |||
0x05, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x74, 0x6f, | |||
0x6b, 0x65, 0x6e, 0x22, 0x82, 0x01, 0x0a, 0x0b, 0x47, 0x65, 0x74, 0x55, 0x73, 0x65, 0x72, 0x73, | |||
0x52, 0x65, 0x71, 0x12, 0x37, 0x0a, 0x08, 0x75, 0x73, 0x65, 0x72, 0x5f, 0x69, 0x64, 0x73, 0x18, | |||
0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x1c, 0x2e, 0x70, 0x62, 0x2e, 0x47, 0x65, 0x74, 0x55, 0x73, | |||
0x65, 0x72, 0x73, 0x52, 0x65, 0x71, 0x2e, 0x55, 0x73, 0x65, 0x72, 0x49, 0x64, 0x73, 0x45, 0x6e, | |||
0x74, 0x72, 0x79, 0x52, 0x07, 0x75, 0x73, 0x65, 0x72, 0x49, 0x64, 0x73, 0x1a, 0x3a, 0x0a, 0x0c, | |||
0x55, 0x73, 0x65, 0x72, 0x49, 0x64, 0x73, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x12, 0x10, 0x0a, 0x03, | |||
0x6b, 0x65, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x03, 0x52, 0x03, 0x6b, 0x65, 0x79, 0x12, 0x14, | |||
0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x05, 0x52, 0x05, 0x76, | |||
0x61, 0x6c, 0x75, 0x65, 0x3a, 0x02, 0x38, 0x01, 0x22, 0x85, 0x01, 0x0a, 0x0c, 0x47, 0x65, 0x74, | |||
0x55, 0x73, 0x65, 0x72, 0x73, 0x52, 0x65, 0x73, 0x70, 0x12, 0x31, 0x0a, 0x05, 0x75, 0x73, 0x65, | |||
0x72, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x1b, 0x2e, 0x70, 0x62, 0x2e, 0x47, 0x65, | |||
0x74, 0x55, 0x73, 0x65, 0x72, 0x73, 0x52, 0x65, 0x73, 0x70, 0x2e, 0x55, 0x73, 0x65, 0x72, 0x73, | |||
0x45, 0x6e, 0x74, 0x72, 0x79, 0x52, 0x05, 0x75, 0x73, 0x65, 0x72, 0x73, 0x1a, 0x42, 0x0a, 0x0a, | |||
0x55, 0x73, 0x65, 0x72, 0x73, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x12, 0x10, 0x0a, 0x03, 0x6b, 0x65, | |||
0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x03, 0x52, 0x03, 0x6b, 0x65, 0x79, 0x12, 0x1e, 0x0a, 0x05, | |||
0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x08, 0x2e, 0x70, 0x62, | |||
0x2e, 0x55, 0x73, 0x65, 0x72, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x3a, 0x02, 0x38, 0x01, | |||
0x32, 0xb4, 0x01, 0x0a, 0x0b, 0x42, 0x75, 0x73, 0x69, 0x6e, 0x65, 0x73, 0x73, 0x49, 0x6e, 0x74, | |||
0x12, 0x2a, 0x0a, 0x0a, 0x4d, 0x61, 0x73, 0x74, 0x65, 0x72, 0x41, 0x75, 0x74, 0x68, 0x12, 0x11, | |||
0x2e, 0x70, 0x62, 0x2e, 0x4d, 0x61, 0x73, 0x74, 0x65, 0x72, 0x41, 0x75, 0x74, 0x68, 0x52, 0x65, | |||
0x71, 0x1a, 0x09, 0x2e, 0x70, 0x62, 0x2e, 0x45, 0x6d, 0x70, 0x74, 0x79, 0x12, 0x1e, 0x0a, 0x04, | |||
0x41, 0x75, 0x74, 0x68, 0x12, 0x0b, 0x2e, 0x70, 0x62, 0x2e, 0x41, 0x75, 0x74, 0x68, 0x52, 0x65, | |||
0x71, 0x1a, 0x09, 0x2e, 0x70, 0x62, 0x2e, 0x45, 0x6d, 0x70, 0x74, 0x79, 0x12, 0x2a, 0x0a, 0x07, | |||
0x47, 0x65, 0x74, 0x55, 0x73, 0x65, 0x72, 0x12, 0x0e, 0x2e, 0x70, 0x62, 0x2e, 0x47, 0x65, 0x74, | |||
0x55, 0x73, 0x65, 0x72, 0x52, 0x65, 0x71, 0x1a, 0x0f, 0x2e, 0x70, 0x62, 0x2e, 0x47, 0x65, 0x74, | |||
0x55, 0x73, 0x65, 0x72, 0x52, 0x65, 0x73, 0x70, 0x12, 0x2d, 0x0a, 0x08, 0x47, 0x65, 0x74, 0x55, | |||
0x73, 0x65, 0x72, 0x73, 0x12, 0x0f, 0x2e, 0x70, 0x62, 0x2e, 0x47, 0x65, 0x74, 0x55, 0x73, 0x65, | |||
0x72, 0x73, 0x52, 0x65, 0x71, 0x1a, 0x10, 0x2e, 0x70, 0x62, 0x2e, 0x47, 0x65, 0x74, 0x55, 0x73, | |||
0x65, 0x72, 0x73, 0x52, 0x65, 0x73, 0x70, 0x42, 0x0d, 0x5a, 0x0b, 0x67, 0x69, 0x6d, 0x2f, 0x70, | |||
0x6b, 0x67, 0x2f, 0x70, 0x62, 0x2f, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, | |||
} | |||
var ( | |||
file_business_int_proto_rawDescOnce sync.Once | |||
file_business_int_proto_rawDescData = file_business_int_proto_rawDesc | |||
) | |||
func file_business_int_proto_rawDescGZIP() []byte { | |||
file_business_int_proto_rawDescOnce.Do(func() { | |||
file_business_int_proto_rawDescData = protoimpl.X.CompressGZIP(file_business_int_proto_rawDescData) | |||
}) | |||
return file_business_int_proto_rawDescData | |||
} | |||
var file_business_int_proto_msgTypes = make([]protoimpl.MessageInfo, 6) | |||
var file_business_int_proto_goTypes = []interface{}{ | |||
(*MasterAuthReq)(nil), // 0: pb.MasterAuthReq | |||
(*AuthReq)(nil), // 1: pb.AuthReq | |||
(*GetUsersReq)(nil), // 2: pb.GetUsersReq | |||
(*GetUsersResp)(nil), // 3: pb.GetUsersResp | |||
nil, // 4: pb.GetUsersReq.UserIdsEntry | |||
nil, // 5: pb.GetUsersResp.UsersEntry | |||
(*User)(nil), // 6: pb.User | |||
(*GetUserReq)(nil), // 7: pb.GetUserReq | |||
(*Empty)(nil), // 8: pb.Empty | |||
(*GetUserResp)(nil), // 9: pb.GetUserResp | |||
} | |||
var file_business_int_proto_depIdxs = []int32{ | |||
4, // 0: pb.GetUsersReq.user_ids:type_name -> pb.GetUsersReq.UserIdsEntry | |||
5, // 1: pb.GetUsersResp.users:type_name -> pb.GetUsersResp.UsersEntry | |||
6, // 2: pb.GetUsersResp.UsersEntry.value:type_name -> pb.User | |||
0, // 3: pb.BusinessInt.MasterAuth:input_type -> pb.MasterAuthReq | |||
1, // 4: pb.BusinessInt.Auth:input_type -> pb.AuthReq | |||
7, // 5: pb.BusinessInt.GetUser:input_type -> pb.GetUserReq | |||
2, // 6: pb.BusinessInt.GetUsers:input_type -> pb.GetUsersReq | |||
8, // 7: pb.BusinessInt.MasterAuth:output_type -> pb.Empty | |||
8, // 8: pb.BusinessInt.Auth:output_type -> pb.Empty | |||
9, // 9: pb.BusinessInt.GetUser:output_type -> pb.GetUserResp | |||
3, // 10: pb.BusinessInt.GetUsers:output_type -> pb.GetUsersResp | |||
7, // [7:11] is the sub-list for method output_type | |||
3, // [3:7] is the sub-list for method input_type | |||
3, // [3:3] is the sub-list for extension type_name | |||
3, // [3:3] is the sub-list for extension extendee | |||
0, // [0:3] is the sub-list for field type_name | |||
} | |||
func init() { file_business_int_proto_init() } | |||
func file_business_int_proto_init() { | |||
if File_business_int_proto != nil { | |||
return | |||
} | |||
file_common_ext_proto_init() | |||
file_business_ext_proto_init() | |||
if !protoimpl.UnsafeEnabled { | |||
file_business_int_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { | |||
switch v := v.(*MasterAuthReq); i { | |||
case 0: | |||
return &v.state | |||
case 1: | |||
return &v.sizeCache | |||
case 2: | |||
return &v.unknownFields | |||
default: | |||
return nil | |||
} | |||
} | |||
file_business_int_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { | |||
switch v := v.(*AuthReq); i { | |||
case 0: | |||
return &v.state | |||
case 1: | |||
return &v.sizeCache | |||
case 2: | |||
return &v.unknownFields | |||
default: | |||
return nil | |||
} | |||
} | |||
file_business_int_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} { | |||
switch v := v.(*GetUsersReq); i { | |||
case 0: | |||
return &v.state | |||
case 1: | |||
return &v.sizeCache | |||
case 2: | |||
return &v.unknownFields | |||
default: | |||
return nil | |||
} | |||
} | |||
file_business_int_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} { | |||
switch v := v.(*GetUsersResp); 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{ | |||
File: protoimpl.DescBuilder{ | |||
GoPackagePath: reflect.TypeOf(x{}).PkgPath(), | |||
RawDescriptor: file_business_int_proto_rawDesc, | |||
NumEnums: 0, | |||
NumMessages: 6, | |||
NumExtensions: 0, | |||
NumServices: 1, | |||
}, | |||
GoTypes: file_business_int_proto_goTypes, | |||
DependencyIndexes: file_business_int_proto_depIdxs, | |||
MessageInfos: file_business_int_proto_msgTypes, | |||
}.Build() | |||
File_business_int_proto = out.File | |||
file_business_int_proto_rawDesc = nil | |||
file_business_int_proto_goTypes = nil | |||
file_business_int_proto_depIdxs = nil | |||
} | |||
// This is a compile-time assertion to ensure that this generated file | |||
// is compatible with the grpc package it is being compiled against. | |||
// Requires gRPC-Go v1.32.0 or later. | |||
const _ = grpc.SupportPackageIsVersion7 | |||
// BusinessIntClient is the client API for BusinessInt service. | |||
// | |||
// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream. | |||
type BusinessIntClient interface { | |||
// 站长权限校验 | |||
MasterAuth(ctx context.Context, in *MasterAuthReq, opts ...grpc.CallOption) (*Empty, error) | |||
// 权限校验 | |||
Auth(ctx context.Context, in *AuthReq, opts ...grpc.CallOption) (*Empty, error) | |||
// 批量获取用户信息 | |||
GetUser(ctx context.Context, in *GetUserReq, opts ...grpc.CallOption) (*GetUserResp, error) | |||
// 批量获取用户信息 | |||
GetUsers(ctx context.Context, in *GetUsersReq, opts ...grpc.CallOption) (*GetUsersResp, error) | |||
} | |||
type businessIntClient struct { | |||
cc grpc.ClientConnInterface | |||
} | |||
func NewBusinessIntClient(cc grpc.ClientConnInterface) BusinessIntClient { | |||
return &businessIntClient{cc} | |||
} | |||
func (c *businessIntClient) MasterAuth(ctx context.Context, in *MasterAuthReq, opts ...grpc.CallOption) (*Empty, error) { | |||
out := new(Empty) | |||
err := c.cc.Invoke(ctx, "/pb.BusinessInt/MasterAuth", in, out, opts...) | |||
if err != nil { | |||
return nil, err | |||
} | |||
return out, nil | |||
} | |||
func (c *businessIntClient) Auth(ctx context.Context, in *AuthReq, opts ...grpc.CallOption) (*Empty, error) { | |||
out := new(Empty) | |||
err := c.cc.Invoke(ctx, "/pb.BusinessInt/Auth", in, out, opts...) | |||
if err != nil { | |||
return nil, err | |||
} | |||
return out, nil | |||
} | |||
func (c *businessIntClient) GetUser(ctx context.Context, in *GetUserReq, opts ...grpc.CallOption) (*GetUserResp, error) { | |||
out := new(GetUserResp) | |||
err := c.cc.Invoke(ctx, "/pb.BusinessInt/GetUser", in, out, opts...) | |||
if err != nil { | |||
return nil, err | |||
} | |||
return out, nil | |||
} | |||
func (c *businessIntClient) GetUsers(ctx context.Context, in *GetUsersReq, opts ...grpc.CallOption) (*GetUsersResp, error) { | |||
out := new(GetUsersResp) | |||
err := c.cc.Invoke(ctx, "/pb.BusinessInt/GetUsers", in, out, opts...) | |||
if err != nil { | |||
return nil, err | |||
} | |||
return out, nil | |||
} | |||
// BusinessIntServer is the server API for BusinessInt service. | |||
// All implementations must embed UnimplementedBusinessIntServer | |||
// for forward compatibility | |||
type BusinessIntServer interface { | |||
// 站长权限校验 | |||
MasterAuth(context.Context, *MasterAuthReq) (*Empty, error) | |||
// 权限校验 | |||
Auth(context.Context, *AuthReq) (*Empty, error) | |||
// 批量获取用户信息 | |||
GetUser(context.Context, *GetUserReq) (*GetUserResp, error) | |||
// 批量获取用户信息 | |||
GetUsers(context.Context, *GetUsersReq) (*GetUsersResp, error) | |||
} | |||
// UnimplementedBusinessIntServer must be embedded to have forward compatible implementations. | |||
type UnimplementedBusinessIntServer struct { | |||
} | |||
func (UnimplementedBusinessIntServer) MasterAuth(context.Context, *MasterAuthReq) (*Empty, error) { | |||
return nil, status.Errorf(codes.Unimplemented, "method MasterAuth not implemented") | |||
} | |||
func (UnimplementedBusinessIntServer) Auth(context.Context, *AuthReq) (*Empty, error) { | |||
return nil, status.Errorf(codes.Unimplemented, "method Auth not implemented") | |||
} | |||
func (UnimplementedBusinessIntServer) GetUser(context.Context, *GetUserReq) (*GetUserResp, error) { | |||
return nil, status.Errorf(codes.Unimplemented, "method GetUser not implemented") | |||
} | |||
func (UnimplementedBusinessIntServer) GetUsers(context.Context, *GetUsersReq) (*GetUsersResp, error) { | |||
return nil, status.Errorf(codes.Unimplemented, "method GetUsers not implemented") | |||
} | |||
func RegisterBusinessIntServer(s grpc.ServiceRegistrar, srv BusinessIntServer) { | |||
s.RegisterService(&BusinessInt_ServiceDesc, srv) | |||
} | |||
func _BusinessInt_MasterAuth_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { | |||
in := new(MasterAuthReq) | |||
if err := dec(in); err != nil { | |||
return nil, err | |||
} | |||
if interceptor == nil { | |||
return srv.(BusinessIntServer).MasterAuth(ctx, in) | |||
} | |||
info := &grpc.UnaryServerInfo{ | |||
Server: srv, | |||
FullMethod: "/pb.BusinessInt/MasterAuth", | |||
} | |||
handler := func(ctx context.Context, req interface{}) (interface{}, error) { | |||
return srv.(BusinessIntServer).MasterAuth(ctx, req.(*MasterAuthReq)) | |||
} | |||
return interceptor(ctx, in, info, handler) | |||
} | |||
func _BusinessInt_Auth_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { | |||
in := new(AuthReq) | |||
if err := dec(in); err != nil { | |||
return nil, err | |||
} | |||
if interceptor == nil { | |||
return srv.(BusinessIntServer).Auth(ctx, in) | |||
} | |||
info := &grpc.UnaryServerInfo{ | |||
Server: srv, | |||
FullMethod: "/pb.BusinessInt/Auth", | |||
} | |||
handler := func(ctx context.Context, req interface{}) (interface{}, error) { | |||
return srv.(BusinessIntServer).Auth(ctx, req.(*AuthReq)) | |||
} | |||
return interceptor(ctx, in, info, handler) | |||
} | |||
func _BusinessInt_GetUser_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { | |||
in := new(GetUserReq) | |||
if err := dec(in); err != nil { | |||
return nil, err | |||
} | |||
if interceptor == nil { | |||
return srv.(BusinessIntServer).GetUser(ctx, in) | |||
} | |||
info := &grpc.UnaryServerInfo{ | |||
Server: srv, | |||
FullMethod: "/pb.BusinessInt/GetUser", | |||
} | |||
handler := func(ctx context.Context, req interface{}) (interface{}, error) { | |||
return srv.(BusinessIntServer).GetUser(ctx, req.(*GetUserReq)) | |||
} | |||
return interceptor(ctx, in, info, handler) | |||
} | |||
func _BusinessInt_GetUsers_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { | |||
in := new(GetUsersReq) | |||
if err := dec(in); err != nil { | |||
return nil, err | |||
} | |||
if interceptor == nil { | |||
return srv.(BusinessIntServer).GetUsers(ctx, in) | |||
} | |||
info := &grpc.UnaryServerInfo{ | |||
Server: srv, | |||
FullMethod: "/pb.BusinessInt/GetUsers", | |||
} | |||
handler := func(ctx context.Context, req interface{}) (interface{}, error) { | |||
return srv.(BusinessIntServer).GetUsers(ctx, req.(*GetUsersReq)) | |||
} | |||
return interceptor(ctx, in, info, handler) | |||
} | |||
// BusinessInt_ServiceDesc is the grpc.ServiceDesc for BusinessInt service. | |||
// It's only intended for direct use with grpc.RegisterService, | |||
// and not to be introspected or modified (even as a copy) | |||
var BusinessInt_ServiceDesc = grpc.ServiceDesc{ | |||
ServiceName: "pb.BusinessInt", | |||
HandlerType: (*BusinessIntServer)(nil), | |||
Methods: []grpc.MethodDesc{ | |||
{ | |||
MethodName: "MasterAuth", | |||
Handler: _BusinessInt_MasterAuth_Handler, | |||
}, | |||
{ | |||
MethodName: "Auth", | |||
Handler: _BusinessInt_Auth_Handler, | |||
}, | |||
{ | |||
MethodName: "GetUser", | |||
Handler: _BusinessInt_GetUser_Handler, | |||
}, | |||
{ | |||
MethodName: "GetUsers", | |||
Handler: _BusinessInt_GetUsers_Handler, | |||
}, | |||
}, | |||
Streams: []grpc.StreamDesc{}, | |||
Metadata: "business.int.proto", | |||
} |
@@ -0,0 +1,131 @@ | |||
// Code generated by protoc-gen-go. DO NOT EDIT. | |||
// versions: | |||
// protoc-gen-go v1.26.0 | |||
// protoc v3.14.0 | |||
// source: common.ext.proto_back | |||
package pb | |||
import ( | |||
protoreflect "google.golang.org/protobuf/reflect/protoreflect" | |||
protoimpl "google.golang.org/protobuf/runtime/protoimpl" | |||
reflect "reflect" | |||
sync "sync" | |||
) | |||
const ( | |||
// Verify that this generated code is sufficiently up-to-date. | |||
_ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) | |||
// Verify that runtime/protoimpl is sufficiently up-to-date. | |||
_ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) | |||
) | |||
type Empty struct { | |||
state protoimpl.MessageState | |||
sizeCache protoimpl.SizeCache | |||
unknownFields protoimpl.UnknownFields | |||
} | |||
func (x *Empty) Reset() { | |||
*x = Empty{} | |||
if protoimpl.UnsafeEnabled { | |||
mi := &file_common_ext_proto_msgTypes[0] | |||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) | |||
ms.StoreMessageInfo(mi) | |||
} | |||
} | |||
func (x *Empty) String() string { | |||
return protoimpl.X.MessageStringOf(x) | |||
} | |||
func (*Empty) ProtoMessage() {} | |||
func (x *Empty) ProtoReflect() protoreflect.Message { | |||
mi := &file_common_ext_proto_msgTypes[0] | |||
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 Empty.ProtoReflect.Descriptor instead. | |||
func (*Empty) Descriptor() ([]byte, []int) { | |||
return file_common_ext_proto_rawDescGZIP(), []int{0} | |||
} | |||
var File_common_ext_proto protoreflect.FileDescriptor | |||
var file_common_ext_proto_rawDesc = []byte{ | |||
0x0a, 0x10, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2e, 0x65, 0x78, 0x74, 0x2e, 0x70, 0x72, 0x6f, | |||
0x74, 0x6f, 0x12, 0x02, 0x70, 0x62, 0x22, 0x07, 0x0a, 0x05, 0x45, 0x6d, 0x70, 0x74, 0x79, 0x42, | |||
0x0d, 0x5a, 0x0b, 0x67, 0x69, 0x6d, 0x2f, 0x70, 0x6b, 0x67, 0x2f, 0x70, 0x62, 0x2f, 0x62, 0x06, | |||
0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, | |||
} | |||
var ( | |||
file_common_ext_proto_rawDescOnce sync.Once | |||
file_common_ext_proto_rawDescData = file_common_ext_proto_rawDesc | |||
) | |||
func file_common_ext_proto_rawDescGZIP() []byte { | |||
file_common_ext_proto_rawDescOnce.Do(func() { | |||
file_common_ext_proto_rawDescData = protoimpl.X.CompressGZIP(file_common_ext_proto_rawDescData) | |||
}) | |||
return file_common_ext_proto_rawDescData | |||
} | |||
var file_common_ext_proto_msgTypes = make([]protoimpl.MessageInfo, 1) | |||
var file_common_ext_proto_goTypes = []interface{}{ | |||
(*Empty)(nil), // 0: pb.Empty | |||
} | |||
var file_common_ext_proto_depIdxs = []int32{ | |||
0, // [0:0] is the sub-list for method output_type | |||
0, // [0:0] is the sub-list for method input_type | |||
0, // [0:0] is the sub-list for extension type_name | |||
0, // [0:0] is the sub-list for extension extendee | |||
0, // [0:0] is the sub-list for field type_name | |||
} | |||
func init() { file_common_ext_proto_init() } | |||
func file_common_ext_proto_init() { | |||
if File_common_ext_proto != nil { | |||
return | |||
} | |||
if !protoimpl.UnsafeEnabled { | |||
file_common_ext_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { | |||
switch v := v.(*Empty); 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{ | |||
File: protoimpl.DescBuilder{ | |||
GoPackagePath: reflect.TypeOf(x{}).PkgPath(), | |||
RawDescriptor: file_common_ext_proto_rawDesc, | |||
NumEnums: 0, | |||
NumMessages: 1, | |||
NumExtensions: 0, | |||
NumServices: 0, | |||
}, | |||
GoTypes: file_common_ext_proto_goTypes, | |||
DependencyIndexes: file_common_ext_proto_depIdxs, | |||
MessageInfos: file_common_ext_proto_msgTypes, | |||
}.Build() | |||
File_common_ext_proto = out.File | |||
file_common_ext_proto_rawDesc = nil | |||
file_common_ext_proto_goTypes = nil | |||
file_common_ext_proto_depIdxs = nil | |||
} |
@@ -0,0 +1,395 @@ | |||
// Code generated by protoc-gen-go. DO NOT EDIT. | |||
// versions: | |||
// protoc-gen-go v1.26.0 | |||
// protoc v3.14.0 | |||
// source: connect.int.proto_back | |||
package pb | |||
import ( | |||
context "context" | |||
grpc "google.golang.org/grpc" | |||
codes "google.golang.org/grpc/codes" | |||
status "google.golang.org/grpc/status" | |||
protoreflect "google.golang.org/protobuf/reflect/protoreflect" | |||
protoimpl "google.golang.org/protobuf/runtime/protoimpl" | |||
reflect "reflect" | |||
sync "sync" | |||
) | |||
const ( | |||
// Verify that this generated code is sufficiently up-to-date. | |||
_ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) | |||
// Verify that runtime/protoimpl is sufficiently up-to-date. | |||
_ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) | |||
) | |||
type DeliverMessageReq struct { | |||
state protoimpl.MessageState | |||
sizeCache protoimpl.SizeCache | |||
unknownFields protoimpl.UnknownFields | |||
DeviceId int64 `protobuf:"varint,1,opt,name=device_id,json=deviceId,proto3" json:"device_id,omitempty"` // 设备id | |||
MessageSend *MessageSend `protobuf:"bytes,2,opt,name=message_send,json=messageSend,proto3" json:"message_send,omitempty"` // 数据 | |||
} | |||
func (x *DeliverMessageReq) Reset() { | |||
*x = DeliverMessageReq{} | |||
if protoimpl.UnsafeEnabled { | |||
mi := &file_connect_int_proto_msgTypes[0] | |||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) | |||
ms.StoreMessageInfo(mi) | |||
} | |||
} | |||
func (x *DeliverMessageReq) String() string { | |||
return protoimpl.X.MessageStringOf(x) | |||
} | |||
func (*DeliverMessageReq) ProtoMessage() {} | |||
func (x *DeliverMessageReq) ProtoReflect() protoreflect.Message { | |||
mi := &file_connect_int_proto_msgTypes[0] | |||
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 DeliverMessageReq.ProtoReflect.Descriptor instead. | |||
func (*DeliverMessageReq) Descriptor() ([]byte, []int) { | |||
return file_connect_int_proto_rawDescGZIP(), []int{0} | |||
} | |||
func (x *DeliverMessageReq) GetDeviceId() int64 { | |||
if x != nil { | |||
return x.DeviceId | |||
} | |||
return 0 | |||
} | |||
func (x *DeliverMessageReq) GetMessageSend() *MessageSend { | |||
if x != nil { | |||
return x.MessageSend | |||
} | |||
return nil | |||
} | |||
// 房间推送 | |||
type PushRoomMsg struct { | |||
state protoimpl.MessageState | |||
sizeCache protoimpl.SizeCache | |||
unknownFields protoimpl.UnknownFields | |||
RoomId int64 `protobuf:"varint,1,opt,name=room_id,json=roomId,proto3" json:"room_id,omitempty"` // 设备id | |||
MessageSend *MessageSend `protobuf:"bytes,2,opt,name=message_send,json=messageSend,proto3" json:"message_send,omitempty"` // 数据 | |||
} | |||
func (x *PushRoomMsg) Reset() { | |||
*x = PushRoomMsg{} | |||
if protoimpl.UnsafeEnabled { | |||
mi := &file_connect_int_proto_msgTypes[1] | |||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) | |||
ms.StoreMessageInfo(mi) | |||
} | |||
} | |||
func (x *PushRoomMsg) String() string { | |||
return protoimpl.X.MessageStringOf(x) | |||
} | |||
func (*PushRoomMsg) ProtoMessage() {} | |||
func (x *PushRoomMsg) ProtoReflect() protoreflect.Message { | |||
mi := &file_connect_int_proto_msgTypes[1] | |||
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 PushRoomMsg.ProtoReflect.Descriptor instead. | |||
func (*PushRoomMsg) Descriptor() ([]byte, []int) { | |||
return file_connect_int_proto_rawDescGZIP(), []int{1} | |||
} | |||
func (x *PushRoomMsg) GetRoomId() int64 { | |||
if x != nil { | |||
return x.RoomId | |||
} | |||
return 0 | |||
} | |||
func (x *PushRoomMsg) GetMessageSend() *MessageSend { | |||
if x != nil { | |||
return x.MessageSend | |||
} | |||
return nil | |||
} | |||
// 房间推送 | |||
type PushAllMsg struct { | |||
state protoimpl.MessageState | |||
sizeCache protoimpl.SizeCache | |||
unknownFields protoimpl.UnknownFields | |||
MessageSend *MessageSend `protobuf:"bytes,2,opt,name=message_send,json=messageSend,proto3" json:"message_send,omitempty"` // 数据 | |||
} | |||
func (x *PushAllMsg) Reset() { | |||
*x = PushAllMsg{} | |||
if protoimpl.UnsafeEnabled { | |||
mi := &file_connect_int_proto_msgTypes[2] | |||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) | |||
ms.StoreMessageInfo(mi) | |||
} | |||
} | |||
func (x *PushAllMsg) String() string { | |||
return protoimpl.X.MessageStringOf(x) | |||
} | |||
func (*PushAllMsg) ProtoMessage() {} | |||
func (x *PushAllMsg) ProtoReflect() protoreflect.Message { | |||
mi := &file_connect_int_proto_msgTypes[2] | |||
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 PushAllMsg.ProtoReflect.Descriptor instead. | |||
func (*PushAllMsg) Descriptor() ([]byte, []int) { | |||
return file_connect_int_proto_rawDescGZIP(), []int{2} | |||
} | |||
func (x *PushAllMsg) GetMessageSend() *MessageSend { | |||
if x != nil { | |||
return x.MessageSend | |||
} | |||
return nil | |||
} | |||
var File_connect_int_proto protoreflect.FileDescriptor | |||
var file_connect_int_proto_rawDesc = []byte{ | |||
0x0a, 0x11, 0x63, 0x6f, 0x6e, 0x6e, 0x65, 0x63, 0x74, 0x2e, 0x69, 0x6e, 0x74, 0x2e, 0x70, 0x72, | |||
0x6f, 0x74, 0x6f, 0x12, 0x02, 0x70, 0x62, 0x1a, 0x10, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2e, | |||
0x65, 0x78, 0x74, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x11, 0x63, 0x6f, 0x6e, 0x6e, 0x65, | |||
0x63, 0x74, 0x2e, 0x65, 0x78, 0x74, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0x64, 0x0a, 0x11, | |||
0x44, 0x65, 0x6c, 0x69, 0x76, 0x65, 0x72, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x52, 0x65, | |||
0x71, 0x12, 0x1b, 0x0a, 0x09, 0x64, 0x65, 0x76, 0x69, 0x63, 0x65, 0x5f, 0x69, 0x64, 0x18, 0x01, | |||
0x20, 0x01, 0x28, 0x03, 0x52, 0x08, 0x64, 0x65, 0x76, 0x69, 0x63, 0x65, 0x49, 0x64, 0x12, 0x32, | |||
0x0a, 0x0c, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x5f, 0x73, 0x65, 0x6e, 0x64, 0x18, 0x02, | |||
0x20, 0x01, 0x28, 0x0b, 0x32, 0x0f, 0x2e, 0x70, 0x62, 0x2e, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, | |||
0x65, 0x53, 0x65, 0x6e, 0x64, 0x52, 0x0b, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x53, 0x65, | |||
0x6e, 0x64, 0x22, 0x5a, 0x0a, 0x0b, 0x50, 0x75, 0x73, 0x68, 0x52, 0x6f, 0x6f, 0x6d, 0x4d, 0x73, | |||
0x67, 0x12, 0x17, 0x0a, 0x07, 0x72, 0x6f, 0x6f, 0x6d, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, | |||
0x28, 0x03, 0x52, 0x06, 0x72, 0x6f, 0x6f, 0x6d, 0x49, 0x64, 0x12, 0x32, 0x0a, 0x0c, 0x6d, 0x65, | |||
0x73, 0x73, 0x61, 0x67, 0x65, 0x5f, 0x73, 0x65, 0x6e, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, | |||
0x32, 0x0f, 0x2e, 0x70, 0x62, 0x2e, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x53, 0x65, 0x6e, | |||
0x64, 0x52, 0x0b, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x53, 0x65, 0x6e, 0x64, 0x22, 0x40, | |||
0x0a, 0x0a, 0x50, 0x75, 0x73, 0x68, 0x41, 0x6c, 0x6c, 0x4d, 0x73, 0x67, 0x12, 0x32, 0x0a, 0x0c, | |||
0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x5f, 0x73, 0x65, 0x6e, 0x64, 0x18, 0x02, 0x20, 0x01, | |||
0x28, 0x0b, 0x32, 0x0f, 0x2e, 0x70, 0x62, 0x2e, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x53, | |||
0x65, 0x6e, 0x64, 0x52, 0x0b, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x53, 0x65, 0x6e, 0x64, | |||
0x32, 0x40, 0x0a, 0x0a, 0x43, 0x6f, 0x6e, 0x6e, 0x65, 0x63, 0x74, 0x49, 0x6e, 0x74, 0x12, 0x32, | |||
0x0a, 0x0e, 0x44, 0x65, 0x6c, 0x69, 0x76, 0x65, 0x72, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, | |||
0x12, 0x15, 0x2e, 0x70, 0x62, 0x2e, 0x44, 0x65, 0x6c, 0x69, 0x76, 0x65, 0x72, 0x4d, 0x65, 0x73, | |||
0x73, 0x61, 0x67, 0x65, 0x52, 0x65, 0x71, 0x1a, 0x09, 0x2e, 0x70, 0x62, 0x2e, 0x45, 0x6d, 0x70, | |||
0x74, 0x79, 0x42, 0x0d, 0x5a, 0x0b, 0x67, 0x69, 0x6d, 0x2f, 0x70, 0x6b, 0x67, 0x2f, 0x70, 0x62, | |||
0x2f, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, | |||
} | |||
var ( | |||
file_connect_int_proto_rawDescOnce sync.Once | |||
file_connect_int_proto_rawDescData = file_connect_int_proto_rawDesc | |||
) | |||
func file_connect_int_proto_rawDescGZIP() []byte { | |||
file_connect_int_proto_rawDescOnce.Do(func() { | |||
file_connect_int_proto_rawDescData = protoimpl.X.CompressGZIP(file_connect_int_proto_rawDescData) | |||
}) | |||
return file_connect_int_proto_rawDescData | |||
} | |||
var file_connect_int_proto_msgTypes = make([]protoimpl.MessageInfo, 3) | |||
var file_connect_int_proto_goTypes = []interface{}{ | |||
(*DeliverMessageReq)(nil), // 0: pb.DeliverMessageReq | |||
(*PushRoomMsg)(nil), // 1: pb.PushRoomMsg | |||
(*PushAllMsg)(nil), // 2: pb.PushAllMsg | |||
(*MessageSend)(nil), // 3: pb.MessageSend | |||
(*Empty)(nil), // 4: pb.Empty | |||
} | |||
var file_connect_int_proto_depIdxs = []int32{ | |||
3, // 0: pb.DeliverMessageReq.message_send:type_name -> pb.MessageSend | |||
3, // 1: pb.PushRoomMsg.message_send:type_name -> pb.MessageSend | |||
3, // 2: pb.PushAllMsg.message_send:type_name -> pb.MessageSend | |||
0, // 3: pb.ConnectInt.DeliverMessage:input_type -> pb.DeliverMessageReq | |||
4, // 4: pb.ConnectInt.DeliverMessage:output_type -> pb.Empty | |||
4, // [4:5] is the sub-list for method output_type | |||
3, // [3:4] is the sub-list for method input_type | |||
3, // [3:3] is the sub-list for extension type_name | |||
3, // [3:3] is the sub-list for extension extendee | |||
0, // [0:3] is the sub-list for field type_name | |||
} | |||
func init() { file_connect_int_proto_init() } | |||
func file_connect_int_proto_init() { | |||
if File_connect_int_proto != nil { | |||
return | |||
} | |||
file_common_ext_proto_init() | |||
file_connect_ext_proto_init() | |||
if !protoimpl.UnsafeEnabled { | |||
file_connect_int_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { | |||
switch v := v.(*DeliverMessageReq); i { | |||
case 0: | |||
return &v.state | |||
case 1: | |||
return &v.sizeCache | |||
case 2: | |||
return &v.unknownFields | |||
default: | |||
return nil | |||
} | |||
} | |||
file_connect_int_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { | |||
switch v := v.(*PushRoomMsg); i { | |||
case 0: | |||
return &v.state | |||
case 1: | |||
return &v.sizeCache | |||
case 2: | |||
return &v.unknownFields | |||
default: | |||
return nil | |||
} | |||
} | |||
file_connect_int_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} { | |||
switch v := v.(*PushAllMsg); 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{ | |||
File: protoimpl.DescBuilder{ | |||
GoPackagePath: reflect.TypeOf(x{}).PkgPath(), | |||
RawDescriptor: file_connect_int_proto_rawDesc, | |||
NumEnums: 0, | |||
NumMessages: 3, | |||
NumExtensions: 0, | |||
NumServices: 1, | |||
}, | |||
GoTypes: file_connect_int_proto_goTypes, | |||
DependencyIndexes: file_connect_int_proto_depIdxs, | |||
MessageInfos: file_connect_int_proto_msgTypes, | |||
}.Build() | |||
File_connect_int_proto = out.File | |||
file_connect_int_proto_rawDesc = nil | |||
file_connect_int_proto_goTypes = nil | |||
file_connect_int_proto_depIdxs = nil | |||
} | |||
// Reference imports to suppress errors if they are not otherwise used. | |||
var _ context.Context | |||
var _ grpc.ClientConnInterface | |||
// This is a compile-time assertion to ensure that this generated comm | |||
// is compatible with the grpc package it is being compiled against. | |||
const _ = grpc.SupportPackageIsVersion6 | |||
// ConnectIntClient is the client API for ConnectInt service. | |||
// | |||
// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream. | |||
type ConnectIntClient interface { | |||
// 消息投递 | |||
DeliverMessage(ctx context.Context, in *DeliverMessageReq, opts ...grpc.CallOption) (*Empty, error) | |||
} | |||
type connectIntClient struct { | |||
cc grpc.ClientConnInterface | |||
} | |||
func NewConnectIntClient(cc grpc.ClientConnInterface) ConnectIntClient { | |||
return &connectIntClient{cc} | |||
} | |||
func (c *connectIntClient) DeliverMessage(ctx context.Context, in *DeliverMessageReq, opts ...grpc.CallOption) (*Empty, error) { | |||
out := new(Empty) | |||
err := c.cc.Invoke(ctx, "/pb.ConnectInt/DeliverMessage", in, out, opts...) | |||
if err != nil { | |||
return nil, err | |||
} | |||
return out, nil | |||
} | |||
// ConnectIntServer is the server API for ConnectInt service. | |||
type ConnectIntServer interface { | |||
// 消息投递 | |||
DeliverMessage(context.Context, *DeliverMessageReq) (*Empty, error) | |||
} | |||
// UnimplementedConnectIntServer can be embedded to have forward compatible implementations. | |||
type UnimplementedConnectIntServer struct { | |||
} | |||
func (*UnimplementedConnectIntServer) DeliverMessage(context.Context, *DeliverMessageReq) (*Empty, error) { | |||
return nil, status.Errorf(codes.Unimplemented, "method DeliverMessage not implemented") | |||
} | |||
func RegisterConnectIntServer(s *grpc.Server, srv ConnectIntServer) { | |||
s.RegisterService(&_ConnectInt_serviceDesc, srv) | |||
} | |||
func _ConnectInt_DeliverMessage_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { | |||
in := new(DeliverMessageReq) | |||
if err := dec(in); err != nil { | |||
return nil, err | |||
} | |||
if interceptor == nil { | |||
return srv.(ConnectIntServer).DeliverMessage(ctx, in) | |||
} | |||
info := &grpc.UnaryServerInfo{ | |||
Server: srv, | |||
FullMethod: "/pb.ConnectInt/DeliverMessage", | |||
} | |||
handler := func(ctx context.Context, req interface{}) (interface{}, error) { | |||
return srv.(ConnectIntServer).DeliverMessage(ctx, req.(*DeliverMessageReq)) | |||
} | |||
return interceptor(ctx, in, info, handler) | |||
} | |||
var _ConnectInt_serviceDesc = grpc.ServiceDesc{ | |||
ServiceName: "pb.ConnectInt", | |||
HandlerType: (*ConnectIntServer)(nil), | |||
Methods: []grpc.MethodDesc{ | |||
{ | |||
MethodName: "DeliverMessage", | |||
Handler: _ConnectInt_DeliverMessage_Handler, | |||
}, | |||
}, | |||
Streams: []grpc.StreamDesc{}, | |||
Metadata: "connect.int.proto_back", | |||
} |
@@ -0,0 +1,20 @@ | |||
module gim | |||
go 1.18 | |||
require ( | |||
google.golang.org/grpc v1.50.1 | |||
google.golang.org/protobuf v1.28.1 | |||
) | |||
require ( | |||
github.com/golang/protobuf v1.5.2 // indirect | |||
golang.org/x/sys v0.1.0 // indirect | |||
golang.org/x/text v0.4.0 // indirect | |||
google.golang.org/genproto v0.0.0-20221018160656-63c7b68cfc55 // indirect | |||
) | |||
require ( | |||
github.com/google/go-cmp v0.5.9 // indirect | |||
golang.org/x/net v0.1.0 // indirect | |||
) |
@@ -0,0 +1,956 @@ | |||
// Code generated by protoc-gen-go. DO NOT EDIT. | |||
// versions: | |||
// protoc-gen-go v1.28.1 | |||
// protoc v3.20.0--rc1 | |||
// source: push.ext.proto | |||
package pb | |||
import ( | |||
protoreflect "google.golang.org/protobuf/reflect/protoreflect" | |||
protoimpl "google.golang.org/protobuf/runtime/protoimpl" | |||
reflect "reflect" | |||
sync "sync" | |||
) | |||
const ( | |||
// Verify that this generated code is sufficiently up-to-date. | |||
_ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) | |||
// Verify that runtime/protoimpl is sufficiently up-to-date. | |||
_ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) | |||
) | |||
type PushCode int32 | |||
const ( | |||
PushCode_PC_ADD_DEFAULT PushCode = 0 | |||
PushCode_PC_ADD_FRIEND PushCode = 100 // 添加好友请求 | |||
PushCode_PC_AGREE_ADD_FRIEND PushCode = 101 // 同意添加好友 | |||
PushCode_PC_UPDATE_GROUP PushCode = 110 // 更新群组 | |||
PushCode_PC_ADD_GROUP_MEMBERS PushCode = 120 // 添加群组成员 | |||
PushCode_PC_REMOVE_GROUP_MEMBER PushCode = 121 // 移除群组成员 | |||
PushCode_PC_BANNED_GROUP_MEMBER PushCode = 122 // 禁言群组成员 | |||
PushCode_PC_REMOVE_BANNED_GROUP_MEMBER PushCode = 123 // 取消禁言群组成员 | |||
PushCode_PC_UPDATE_GROUP_MEMBER PushCode = 124 // 更新群组成员信息 | |||
) | |||
// Enum value maps for PushCode. | |||
var ( | |||
PushCode_name = map[int32]string{ | |||
0: "PC_ADD_DEFAULT", | |||
100: "PC_ADD_FRIEND", | |||
101: "PC_AGREE_ADD_FRIEND", | |||
110: "PC_UPDATE_GROUP", | |||
120: "PC_ADD_GROUP_MEMBERS", | |||
121: "PC_REMOVE_GROUP_MEMBER", | |||
122: "PC_BANNED_GROUP_MEMBER", | |||
123: "PC_REMOVE_BANNED_GROUP_MEMBER", | |||
124: "PC_UPDATE_GROUP_MEMBER", | |||
} | |||
PushCode_value = map[string]int32{ | |||
"PC_ADD_DEFAULT": 0, | |||
"PC_ADD_FRIEND": 100, | |||
"PC_AGREE_ADD_FRIEND": 101, | |||
"PC_UPDATE_GROUP": 110, | |||
"PC_ADD_GROUP_MEMBERS": 120, | |||
"PC_REMOVE_GROUP_MEMBER": 121, | |||
"PC_BANNED_GROUP_MEMBER": 122, | |||
"PC_REMOVE_BANNED_GROUP_MEMBER": 123, | |||
"PC_UPDATE_GROUP_MEMBER": 124, | |||
} | |||
) | |||
func (x PushCode) Enum() *PushCode { | |||
p := new(PushCode) | |||
*p = x | |||
return p | |||
} | |||
func (x PushCode) String() string { | |||
return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) | |||
} | |||
func (PushCode) Descriptor() protoreflect.EnumDescriptor { | |||
return file_push_ext_proto_enumTypes[0].Descriptor() | |||
} | |||
func (PushCode) Type() protoreflect.EnumType { | |||
return &file_push_ext_proto_enumTypes[0] | |||
} | |||
func (x PushCode) Number() protoreflect.EnumNumber { | |||
return protoreflect.EnumNumber(x) | |||
} | |||
// Deprecated: Use PushCode.Descriptor instead. | |||
func (PushCode) EnumDescriptor() ([]byte, []int) { | |||
return file_push_ext_proto_rawDescGZIP(), []int{0} | |||
} | |||
// 推送码 PC_ADD_FRIEND = 100 | |||
type AddFriendPush struct { | |||
state protoimpl.MessageState | |||
sizeCache protoimpl.SizeCache | |||
unknownFields protoimpl.UnknownFields | |||
FriendId int64 `protobuf:"varint,1,opt,name=friend_id,json=friendId,proto3" json:"friend_id,omitempty"` // 好友id | |||
Nickname string `protobuf:"bytes,2,opt,name=nickname,proto3" json:"nickname,omitempty"` // 昵称 | |||
AvatarUrl string `protobuf:"bytes,3,opt,name=avatar_url,json=avatarUrl,proto3" json:"avatar_url,omitempty"` // 头像 | |||
Description string `protobuf:"bytes,4,opt,name=description,proto3" json:"description,omitempty"` // 描述 | |||
} | |||
func (x *AddFriendPush) Reset() { | |||
*x = AddFriendPush{} | |||
if protoimpl.UnsafeEnabled { | |||
mi := &file_push_ext_proto_msgTypes[0] | |||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) | |||
ms.StoreMessageInfo(mi) | |||
} | |||
} | |||
func (x *AddFriendPush) String() string { | |||
return protoimpl.X.MessageStringOf(x) | |||
} | |||
func (*AddFriendPush) ProtoMessage() {} | |||
func (x *AddFriendPush) ProtoReflect() protoreflect.Message { | |||
mi := &file_push_ext_proto_msgTypes[0] | |||
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 AddFriendPush.ProtoReflect.Descriptor instead. | |||
func (*AddFriendPush) Descriptor() ([]byte, []int) { | |||
return file_push_ext_proto_rawDescGZIP(), []int{0} | |||
} | |||
func (x *AddFriendPush) GetFriendId() int64 { | |||
if x != nil { | |||
return x.FriendId | |||
} | |||
return 0 | |||
} | |||
func (x *AddFriendPush) GetNickname() string { | |||
if x != nil { | |||
return x.Nickname | |||
} | |||
return "" | |||
} | |||
func (x *AddFriendPush) GetAvatarUrl() string { | |||
if x != nil { | |||
return x.AvatarUrl | |||
} | |||
return "" | |||
} | |||
func (x *AddFriendPush) GetDescription() string { | |||
if x != nil { | |||
return x.Description | |||
} | |||
return "" | |||
} | |||
// 推送码 PC_AGREE_ADD_FRIEND = 101 | |||
type AgreeAddFriendPush struct { | |||
state protoimpl.MessageState | |||
sizeCache protoimpl.SizeCache | |||
unknownFields protoimpl.UnknownFields | |||
FriendId int64 `protobuf:"varint,1,opt,name=friend_id,json=friendId,proto3" json:"friend_id,omitempty"` // 好友id | |||
Nickname string `protobuf:"bytes,2,opt,name=nickname,proto3" json:"nickname,omitempty"` // 昵称 | |||
AvatarUrl string `protobuf:"bytes,3,opt,name=avatar_url,json=avatarUrl,proto3" json:"avatar_url,omitempty"` // 头像 | |||
} | |||
func (x *AgreeAddFriendPush) Reset() { | |||
*x = AgreeAddFriendPush{} | |||
if protoimpl.UnsafeEnabled { | |||
mi := &file_push_ext_proto_msgTypes[1] | |||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) | |||
ms.StoreMessageInfo(mi) | |||
} | |||
} | |||
func (x *AgreeAddFriendPush) String() string { | |||
return protoimpl.X.MessageStringOf(x) | |||
} | |||
func (*AgreeAddFriendPush) ProtoMessage() {} | |||
func (x *AgreeAddFriendPush) ProtoReflect() protoreflect.Message { | |||
mi := &file_push_ext_proto_msgTypes[1] | |||
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 AgreeAddFriendPush.ProtoReflect.Descriptor instead. | |||
func (*AgreeAddFriendPush) Descriptor() ([]byte, []int) { | |||
return file_push_ext_proto_rawDescGZIP(), []int{1} | |||
} | |||
func (x *AgreeAddFriendPush) GetFriendId() int64 { | |||
if x != nil { | |||
return x.FriendId | |||
} | |||
return 0 | |||
} | |||
func (x *AgreeAddFriendPush) GetNickname() string { | |||
if x != nil { | |||
return x.Nickname | |||
} | |||
return "" | |||
} | |||
func (x *AgreeAddFriendPush) GetAvatarUrl() string { | |||
if x != nil { | |||
return x.AvatarUrl | |||
} | |||
return "" | |||
} | |||
// 更新群组 PC_UPDATE_GROUP = 110 | |||
type UpdateGroupPush struct { | |||
state protoimpl.MessageState | |||
sizeCache protoimpl.SizeCache | |||
unknownFields protoimpl.UnknownFields | |||
OptId int64 `protobuf:"varint,1,opt,name=opt_id,json=optId,proto3" json:"opt_id,omitempty"` // 操作人用户id | |||
OptName string `protobuf:"bytes,2,opt,name=opt_name,json=optName,proto3" json:"opt_name,omitempty"` // 操作人昵称 | |||
OptAvatarUrl string `protobuf:"bytes,3,opt,name=opt_avatar_url,json=optAvatarUrl,proto3" json:"opt_avatar_url,omitempty"` // 操作人头像 | |||
Name string `protobuf:"bytes,4,opt,name=name,proto3" json:"name,omitempty"` // 群组名称 | |||
AvatarUrl string `protobuf:"bytes,5,opt,name=avatar_url,json=avatarUrl,proto3" json:"avatar_url,omitempty"` // 群组头像 | |||
Introduction string `protobuf:"bytes,6,opt,name=introduction,proto3" json:"introduction,omitempty"` // 群组简介 | |||
IsUpdateIntroduction bool `protobuf:"varint,7,opt,name=isUpdateIntroduction,proto3" json:"isUpdateIntroduction,omitempty"` // 是否更新群组简介 | |||
Extra string `protobuf:"bytes,8,opt,name=extra,proto3" json:"extra,omitempty"` // 附加字段 | |||
} | |||
func (x *UpdateGroupPush) Reset() { | |||
*x = UpdateGroupPush{} | |||
if protoimpl.UnsafeEnabled { | |||
mi := &file_push_ext_proto_msgTypes[2] | |||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) | |||
ms.StoreMessageInfo(mi) | |||
} | |||
} | |||
func (x *UpdateGroupPush) String() string { | |||
return protoimpl.X.MessageStringOf(x) | |||
} | |||
func (*UpdateGroupPush) ProtoMessage() {} | |||
func (x *UpdateGroupPush) ProtoReflect() protoreflect.Message { | |||
mi := &file_push_ext_proto_msgTypes[2] | |||
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 UpdateGroupPush.ProtoReflect.Descriptor instead. | |||
func (*UpdateGroupPush) Descriptor() ([]byte, []int) { | |||
return file_push_ext_proto_rawDescGZIP(), []int{2} | |||
} | |||
func (x *UpdateGroupPush) GetOptId() int64 { | |||
if x != nil { | |||
return x.OptId | |||
} | |||
return 0 | |||
} | |||
func (x *UpdateGroupPush) GetOptName() string { | |||
if x != nil { | |||
return x.OptName | |||
} | |||
return "" | |||
} | |||
func (x *UpdateGroupPush) GetOptAvatarUrl() string { | |||
if x != nil { | |||
return x.OptAvatarUrl | |||
} | |||
return "" | |||
} | |||
func (x *UpdateGroupPush) GetName() string { | |||
if x != nil { | |||
return x.Name | |||
} | |||
return "" | |||
} | |||
func (x *UpdateGroupPush) GetAvatarUrl() string { | |||
if x != nil { | |||
return x.AvatarUrl | |||
} | |||
return "" | |||
} | |||
func (x *UpdateGroupPush) GetIntroduction() string { | |||
if x != nil { | |||
return x.Introduction | |||
} | |||
return "" | |||
} | |||
func (x *UpdateGroupPush) GetIsUpdateIntroduction() bool { | |||
if x != nil { | |||
return x.IsUpdateIntroduction | |||
} | |||
return false | |||
} | |||
func (x *UpdateGroupPush) GetExtra() string { | |||
if x != nil { | |||
return x.Extra | |||
} | |||
return "" | |||
} | |||
// 添加群组成员 PC_AGREE_ADD_GROUPS = 120 | |||
type AddGroupMembersPush struct { | |||
state protoimpl.MessageState | |||
sizeCache protoimpl.SizeCache | |||
unknownFields protoimpl.UnknownFields | |||
OptId int64 `protobuf:"varint,1,opt,name=opt_id,json=optId,proto3" json:"opt_id,omitempty"` // 操作人用户id | |||
OptName string `protobuf:"bytes,2,opt,name=opt_name,json=optName,proto3" json:"opt_name,omitempty"` // 操作人昵称 | |||
Members []*GroupMember `protobuf:"bytes,3,rep,name=members,proto3" json:"members,omitempty"` // 群组成员 | |||
} | |||
func (x *AddGroupMembersPush) Reset() { | |||
*x = AddGroupMembersPush{} | |||
if protoimpl.UnsafeEnabled { | |||
mi := &file_push_ext_proto_msgTypes[3] | |||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) | |||
ms.StoreMessageInfo(mi) | |||
} | |||
} | |||
func (x *AddGroupMembersPush) String() string { | |||
return protoimpl.X.MessageStringOf(x) | |||
} | |||
func (*AddGroupMembersPush) ProtoMessage() {} | |||
func (x *AddGroupMembersPush) ProtoReflect() protoreflect.Message { | |||
mi := &file_push_ext_proto_msgTypes[3] | |||
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 AddGroupMembersPush.ProtoReflect.Descriptor instead. | |||
func (*AddGroupMembersPush) Descriptor() ([]byte, []int) { | |||
return file_push_ext_proto_rawDescGZIP(), []int{3} | |||
} | |||
func (x *AddGroupMembersPush) GetOptId() int64 { | |||
if x != nil { | |||
return x.OptId | |||
} | |||
return 0 | |||
} | |||
func (x *AddGroupMembersPush) GetOptName() string { | |||
if x != nil { | |||
return x.OptName | |||
} | |||
return "" | |||
} | |||
func (x *AddGroupMembersPush) GetMembers() []*GroupMember { | |||
if x != nil { | |||
return x.Members | |||
} | |||
return nil | |||
} | |||
// 删除群组成员 PC_REMOVE_GROUP_MEMBER = 121 | |||
type RemoveGroupMemberPush struct { | |||
state protoimpl.MessageState | |||
sizeCache protoimpl.SizeCache | |||
unknownFields protoimpl.UnknownFields | |||
OptId int64 `protobuf:"varint,1,opt,name=opt_id,json=optId,proto3" json:"opt_id,omitempty"` // 操作人用户id | |||
OptName string `protobuf:"bytes,2,opt,name=opt_name,json=optName,proto3" json:"opt_name,omitempty"` // 操作人昵称 | |||
DeletedUserId int64 `protobuf:"varint,3,opt,name=deleted_user_id,json=deletedUserId,proto3" json:"deleted_user_id,omitempty"` // 被删除的成员id | |||
DeletedUserName string `protobuf:"bytes,4,opt,name=deleted_user_name,json=deletedUserName,proto3" json:"deleted_user_name,omitempty"` // 被删除的成员昵称 | |||
} | |||
func (x *RemoveGroupMemberPush) Reset() { | |||
*x = RemoveGroupMemberPush{} | |||
if protoimpl.UnsafeEnabled { | |||
mi := &file_push_ext_proto_msgTypes[4] | |||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) | |||
ms.StoreMessageInfo(mi) | |||
} | |||
} | |||
func (x *RemoveGroupMemberPush) String() string { | |||
return protoimpl.X.MessageStringOf(x) | |||
} | |||
func (*RemoveGroupMemberPush) ProtoMessage() {} | |||
func (x *RemoveGroupMemberPush) ProtoReflect() protoreflect.Message { | |||
mi := &file_push_ext_proto_msgTypes[4] | |||
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 RemoveGroupMemberPush.ProtoReflect.Descriptor instead. | |||
func (*RemoveGroupMemberPush) Descriptor() ([]byte, []int) { | |||
return file_push_ext_proto_rawDescGZIP(), []int{4} | |||
} | |||
func (x *RemoveGroupMemberPush) GetOptId() int64 { | |||
if x != nil { | |||
return x.OptId | |||
} | |||
return 0 | |||
} | |||
func (x *RemoveGroupMemberPush) GetOptName() string { | |||
if x != nil { | |||
return x.OptName | |||
} | |||
return "" | |||
} | |||
func (x *RemoveGroupMemberPush) GetDeletedUserId() int64 { | |||
if x != nil { | |||
return x.DeletedUserId | |||
} | |||
return 0 | |||
} | |||
func (x *RemoveGroupMemberPush) GetDeletedUserName() string { | |||
if x != nil { | |||
return x.DeletedUserName | |||
} | |||
return "" | |||
} | |||
// 禁言群组成员 PC_BANNED_GROUP_MEMBER = 122 | |||
type BannedGroupMemberPush struct { | |||
state protoimpl.MessageState | |||
sizeCache protoimpl.SizeCache | |||
unknownFields protoimpl.UnknownFields | |||
OptId int64 `protobuf:"varint,1,opt,name=opt_id,json=optId,proto3" json:"opt_id,omitempty"` // 操作人用户id | |||
OptName string `protobuf:"bytes,2,opt,name=opt_name,json=optName,proto3" json:"opt_name,omitempty"` // 操作人昵称 | |||
BannedUserId int64 `protobuf:"varint,3,opt,name=banned_user_id,json=bannedUserId,proto3" json:"banned_user_id,omitempty"` // 被禁言的成员id | |||
BannedUserName string `protobuf:"bytes,4,opt,name=banned_user_name,json=bannedUserName,proto3" json:"banned_user_name,omitempty"` // 被禁言的成员昵称 | |||
} | |||
func (x *BannedGroupMemberPush) Reset() { | |||
*x = BannedGroupMemberPush{} | |||
if protoimpl.UnsafeEnabled { | |||
mi := &file_push_ext_proto_msgTypes[5] | |||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) | |||
ms.StoreMessageInfo(mi) | |||
} | |||
} | |||
func (x *BannedGroupMemberPush) String() string { | |||
return protoimpl.X.MessageStringOf(x) | |||
} | |||
func (*BannedGroupMemberPush) ProtoMessage() {} | |||
func (x *BannedGroupMemberPush) ProtoReflect() protoreflect.Message { | |||
mi := &file_push_ext_proto_msgTypes[5] | |||
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 BannedGroupMemberPush.ProtoReflect.Descriptor instead. | |||
func (*BannedGroupMemberPush) Descriptor() ([]byte, []int) { | |||
return file_push_ext_proto_rawDescGZIP(), []int{5} | |||
} | |||
func (x *BannedGroupMemberPush) GetOptId() int64 { | |||
if x != nil { | |||
return x.OptId | |||
} | |||
return 0 | |||
} | |||
func (x *BannedGroupMemberPush) GetOptName() string { | |||
if x != nil { | |||
return x.OptName | |||
} | |||
return "" | |||
} | |||
func (x *BannedGroupMemberPush) GetBannedUserId() int64 { | |||
if x != nil { | |||
return x.BannedUserId | |||
} | |||
return 0 | |||
} | |||
func (x *BannedGroupMemberPush) GetBannedUserName() string { | |||
if x != nil { | |||
return x.BannedUserName | |||
} | |||
return "" | |||
} | |||
// 取消禁言群组成员 PC_REMOVE_BANNED_GROUP_MEMBER = 123 | |||
type RemoveBannedGroupMemberPush struct { | |||
state protoimpl.MessageState | |||
sizeCache protoimpl.SizeCache | |||
unknownFields protoimpl.UnknownFields | |||
OptId int64 `protobuf:"varint,1,opt,name=opt_id,json=optId,proto3" json:"opt_id,omitempty"` // 操作人用户id | |||
OptName string `protobuf:"bytes,2,opt,name=opt_name,json=optName,proto3" json:"opt_name,omitempty"` // 操作人昵称 | |||
RemoveBannedUserId int64 `protobuf:"varint,3,opt,name=remove_banned_user_id,json=removeBannedUserId,proto3" json:"remove_banned_user_id,omitempty"` // 被解禁言的成员id | |||
RemoveBannedUserName string `protobuf:"bytes,4,opt,name=remove_banned_user_name,json=removeBannedUserName,proto3" json:"remove_banned_user_name,omitempty"` // 被解禁言的成员昵称 | |||
} | |||
func (x *RemoveBannedGroupMemberPush) Reset() { | |||
*x = RemoveBannedGroupMemberPush{} | |||
if protoimpl.UnsafeEnabled { | |||
mi := &file_push_ext_proto_msgTypes[6] | |||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) | |||
ms.StoreMessageInfo(mi) | |||
} | |||
} | |||
func (x *RemoveBannedGroupMemberPush) String() string { | |||
return protoimpl.X.MessageStringOf(x) | |||
} | |||
func (*RemoveBannedGroupMemberPush) ProtoMessage() {} | |||
func (x *RemoveBannedGroupMemberPush) ProtoReflect() protoreflect.Message { | |||
mi := &file_push_ext_proto_msgTypes[6] | |||
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 RemoveBannedGroupMemberPush.ProtoReflect.Descriptor instead. | |||
func (*RemoveBannedGroupMemberPush) Descriptor() ([]byte, []int) { | |||
return file_push_ext_proto_rawDescGZIP(), []int{6} | |||
} | |||
func (x *RemoveBannedGroupMemberPush) GetOptId() int64 { | |||
if x != nil { | |||
return x.OptId | |||
} | |||
return 0 | |||
} | |||
func (x *RemoveBannedGroupMemberPush) GetOptName() string { | |||
if x != nil { | |||
return x.OptName | |||
} | |||
return "" | |||
} | |||
func (x *RemoveBannedGroupMemberPush) GetRemoveBannedUserId() int64 { | |||
if x != nil { | |||
return x.RemoveBannedUserId | |||
} | |||
return 0 | |||
} | |||
func (x *RemoveBannedGroupMemberPush) GetRemoveBannedUserName() string { | |||
if x != nil { | |||
return x.RemoveBannedUserName | |||
} | |||
return "" | |||
} | |||
// 修改群组成员身份 PC_UPDATE_GROUP_MEMBER = 124 | |||
type UpdateMemberPush struct { | |||
state protoimpl.MessageState | |||
sizeCache protoimpl.SizeCache | |||
unknownFields protoimpl.UnknownFields | |||
OptId int64 `protobuf:"varint,1,opt,name=opt_id,json=optId,proto3" json:"opt_id,omitempty"` // 操作人用户id | |||
OptName string `protobuf:"bytes,2,opt,name=opt_name,json=optName,proto3" json:"opt_name,omitempty"` // 操作人昵称 | |||
UpdateUserId int64 `protobuf:"varint,3,opt,name=update_user_id,json=updateUserId,proto3" json:"update_user_id,omitempty"` // 被修改的成员id | |||
UpdateUserName string `protobuf:"bytes,4,opt,name=update_user_name,json=updateUserName,proto3" json:"update_user_name,omitempty"` // 被修改的成员昵称 | |||
UpdateUserMemberType int32 `protobuf:"varint,5,opt,name=update_user_member_type,json=updateUserMemberType,proto3" json:"update_user_member_type,omitempty"` // 被修改的成员身份类型 | |||
} | |||
func (x *UpdateMemberPush) Reset() { | |||
*x = UpdateMemberPush{} | |||
if protoimpl.UnsafeEnabled { | |||
mi := &file_push_ext_proto_msgTypes[7] | |||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) | |||
ms.StoreMessageInfo(mi) | |||
} | |||
} | |||
func (x *UpdateMemberPush) String() string { | |||
return protoimpl.X.MessageStringOf(x) | |||
} | |||
func (*UpdateMemberPush) ProtoMessage() {} | |||
func (x *UpdateMemberPush) ProtoReflect() protoreflect.Message { | |||
mi := &file_push_ext_proto_msgTypes[7] | |||
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 UpdateMemberPush.ProtoReflect.Descriptor instead. | |||
func (*UpdateMemberPush) Descriptor() ([]byte, []int) { | |||
return file_push_ext_proto_rawDescGZIP(), []int{7} | |||
} | |||
func (x *UpdateMemberPush) GetOptId() int64 { | |||
if x != nil { | |||
return x.OptId | |||
} | |||
return 0 | |||
} | |||
func (x *UpdateMemberPush) GetOptName() string { | |||
if x != nil { | |||
return x.OptName | |||
} | |||
return "" | |||
} | |||
func (x *UpdateMemberPush) GetUpdateUserId() int64 { | |||
if x != nil { | |||
return x.UpdateUserId | |||
} | |||
return 0 | |||
} | |||
func (x *UpdateMemberPush) GetUpdateUserName() string { | |||
if x != nil { | |||
return x.UpdateUserName | |||
} | |||
return "" | |||
} | |||
func (x *UpdateMemberPush) GetUpdateUserMemberType() int32 { | |||
if x != nil { | |||
return x.UpdateUserMemberType | |||
} | |||
return 0 | |||
} | |||
var File_push_ext_proto protoreflect.FileDescriptor | |||
var file_push_ext_proto_rawDesc = []byte{ | |||
0x0a, 0x0e, 0x70, 0x75, 0x73, 0x68, 0x2e, 0x65, 0x78, 0x74, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, | |||
0x12, 0x02, 0x70, 0x62, 0x1a, 0x0f, 0x6c, 0x6f, 0x67, 0x69, 0x63, 0x2e, 0x65, 0x78, 0x74, 0x2e, | |||
0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0x89, 0x01, 0x0a, 0x0d, 0x41, 0x64, 0x64, 0x46, 0x72, 0x69, | |||
0x65, 0x6e, 0x64, 0x50, 0x75, 0x73, 0x68, 0x12, 0x1b, 0x0a, 0x09, 0x66, 0x72, 0x69, 0x65, 0x6e, | |||
0x64, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x03, 0x52, 0x08, 0x66, 0x72, 0x69, 0x65, | |||
0x6e, 0x64, 0x49, 0x64, 0x12, 0x1a, 0x0a, 0x08, 0x6e, 0x69, 0x63, 0x6b, 0x6e, 0x61, 0x6d, 0x65, | |||
0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x6e, 0x69, 0x63, 0x6b, 0x6e, 0x61, 0x6d, 0x65, | |||
0x12, 0x1d, 0x0a, 0x0a, 0x61, 0x76, 0x61, 0x74, 0x61, 0x72, 0x5f, 0x75, 0x72, 0x6c, 0x18, 0x03, | |||
0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x61, 0x76, 0x61, 0x74, 0x61, 0x72, 0x55, 0x72, 0x6c, 0x12, | |||
0x20, 0x0a, 0x0b, 0x64, 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x04, | |||
0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x64, 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, | |||
0x6e, 0x22, 0x6c, 0x0a, 0x12, 0x41, 0x67, 0x72, 0x65, 0x65, 0x41, 0x64, 0x64, 0x46, 0x72, 0x69, | |||
0x65, 0x6e, 0x64, 0x50, 0x75, 0x73, 0x68, 0x12, 0x1b, 0x0a, 0x09, 0x66, 0x72, 0x69, 0x65, 0x6e, | |||
0x64, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x03, 0x52, 0x08, 0x66, 0x72, 0x69, 0x65, | |||
0x6e, 0x64, 0x49, 0x64, 0x12, 0x1a, 0x0a, 0x08, 0x6e, 0x69, 0x63, 0x6b, 0x6e, 0x61, 0x6d, 0x65, | |||
0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x6e, 0x69, 0x63, 0x6b, 0x6e, 0x61, 0x6d, 0x65, | |||
0x12, 0x1d, 0x0a, 0x0a, 0x61, 0x76, 0x61, 0x74, 0x61, 0x72, 0x5f, 0x75, 0x72, 0x6c, 0x18, 0x03, | |||
0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x61, 0x76, 0x61, 0x74, 0x61, 0x72, 0x55, 0x72, 0x6c, 0x22, | |||
0x8a, 0x02, 0x0a, 0x0f, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x50, | |||
0x75, 0x73, 0x68, 0x12, 0x15, 0x0a, 0x06, 0x6f, 0x70, 0x74, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, | |||
0x01, 0x28, 0x03, 0x52, 0x05, 0x6f, 0x70, 0x74, 0x49, 0x64, 0x12, 0x19, 0x0a, 0x08, 0x6f, 0x70, | |||
0x74, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x6f, 0x70, | |||
0x74, 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x24, 0x0a, 0x0e, 0x6f, 0x70, 0x74, 0x5f, 0x61, 0x76, 0x61, | |||
0x74, 0x61, 0x72, 0x5f, 0x75, 0x72, 0x6c, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0c, 0x6f, | |||
0x70, 0x74, 0x41, 0x76, 0x61, 0x74, 0x61, 0x72, 0x55, 0x72, 0x6c, 0x12, 0x12, 0x0a, 0x04, 0x6e, | |||
0x61, 0x6d, 0x65, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, | |||
0x1d, 0x0a, 0x0a, 0x61, 0x76, 0x61, 0x74, 0x61, 0x72, 0x5f, 0x75, 0x72, 0x6c, 0x18, 0x05, 0x20, | |||
0x01, 0x28, 0x09, 0x52, 0x09, 0x61, 0x76, 0x61, 0x74, 0x61, 0x72, 0x55, 0x72, 0x6c, 0x12, 0x22, | |||
0x0a, 0x0c, 0x69, 0x6e, 0x74, 0x72, 0x6f, 0x64, 0x75, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x06, | |||
0x20, 0x01, 0x28, 0x09, 0x52, 0x0c, 0x69, 0x6e, 0x74, 0x72, 0x6f, 0x64, 0x75, 0x63, 0x74, 0x69, | |||
0x6f, 0x6e, 0x12, 0x32, 0x0a, 0x14, 0x69, 0x73, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x49, 0x6e, | |||
0x74, 0x72, 0x6f, 0x64, 0x75, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x07, 0x20, 0x01, 0x28, 0x08, | |||
0x52, 0x14, 0x69, 0x73, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x49, 0x6e, 0x74, 0x72, 0x6f, 0x64, | |||
0x75, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x14, 0x0a, 0x05, 0x65, 0x78, 0x74, 0x72, 0x61, 0x18, | |||
0x08, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x65, 0x78, 0x74, 0x72, 0x61, 0x22, 0x72, 0x0a, 0x13, | |||
0x41, 0x64, 0x64, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x4d, 0x65, 0x6d, 0x62, 0x65, 0x72, 0x73, 0x50, | |||
0x75, 0x73, 0x68, 0x12, 0x15, 0x0a, 0x06, 0x6f, 0x70, 0x74, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, | |||
0x01, 0x28, 0x03, 0x52, 0x05, 0x6f, 0x70, 0x74, 0x49, 0x64, 0x12, 0x19, 0x0a, 0x08, 0x6f, 0x70, | |||
0x74, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x6f, 0x70, | |||
0x74, 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x29, 0x0a, 0x07, 0x6d, 0x65, 0x6d, 0x62, 0x65, 0x72, 0x73, | |||
0x18, 0x03, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x0f, 0x2e, 0x70, 0x62, 0x2e, 0x47, 0x72, 0x6f, 0x75, | |||
0x70, 0x4d, 0x65, 0x6d, 0x62, 0x65, 0x72, 0x52, 0x07, 0x6d, 0x65, 0x6d, 0x62, 0x65, 0x72, 0x73, | |||
0x22, 0x9d, 0x01, 0x0a, 0x15, 0x52, 0x65, 0x6d, 0x6f, 0x76, 0x65, 0x47, 0x72, 0x6f, 0x75, 0x70, | |||
0x4d, 0x65, 0x6d, 0x62, 0x65, 0x72, 0x50, 0x75, 0x73, 0x68, 0x12, 0x15, 0x0a, 0x06, 0x6f, 0x70, | |||
0x74, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x03, 0x52, 0x05, 0x6f, 0x70, 0x74, 0x49, | |||
0x64, 0x12, 0x19, 0x0a, 0x08, 0x6f, 0x70, 0x74, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x02, 0x20, | |||
0x01, 0x28, 0x09, 0x52, 0x07, 0x6f, 0x70, 0x74, 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x26, 0x0a, 0x0f, | |||
0x64, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x64, 0x5f, 0x75, 0x73, 0x65, 0x72, 0x5f, 0x69, 0x64, 0x18, | |||
0x03, 0x20, 0x01, 0x28, 0x03, 0x52, 0x0d, 0x64, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x64, 0x55, 0x73, | |||
0x65, 0x72, 0x49, 0x64, 0x12, 0x2a, 0x0a, 0x11, 0x64, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x64, 0x5f, | |||
0x75, 0x73, 0x65, 0x72, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, | |||
0x0f, 0x64, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x64, 0x55, 0x73, 0x65, 0x72, 0x4e, 0x61, 0x6d, 0x65, | |||
0x22, 0x99, 0x01, 0x0a, 0x15, 0x42, 0x61, 0x6e, 0x6e, 0x65, 0x64, 0x47, 0x72, 0x6f, 0x75, 0x70, | |||
0x4d, 0x65, 0x6d, 0x62, 0x65, 0x72, 0x50, 0x75, 0x73, 0x68, 0x12, 0x15, 0x0a, 0x06, 0x6f, 0x70, | |||
0x74, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x03, 0x52, 0x05, 0x6f, 0x70, 0x74, 0x49, | |||
0x64, 0x12, 0x19, 0x0a, 0x08, 0x6f, 0x70, 0x74, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x02, 0x20, | |||
0x01, 0x28, 0x09, 0x52, 0x07, 0x6f, 0x70, 0x74, 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x24, 0x0a, 0x0e, | |||
0x62, 0x61, 0x6e, 0x6e, 0x65, 0x64, 0x5f, 0x75, 0x73, 0x65, 0x72, 0x5f, 0x69, 0x64, 0x18, 0x03, | |||
0x20, 0x01, 0x28, 0x03, 0x52, 0x0c, 0x62, 0x61, 0x6e, 0x6e, 0x65, 0x64, 0x55, 0x73, 0x65, 0x72, | |||
0x49, 0x64, 0x12, 0x28, 0x0a, 0x10, 0x62, 0x61, 0x6e, 0x6e, 0x65, 0x64, 0x5f, 0x75, 0x73, 0x65, | |||
0x72, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0e, 0x62, 0x61, | |||
0x6e, 0x6e, 0x65, 0x64, 0x55, 0x73, 0x65, 0x72, 0x4e, 0x61, 0x6d, 0x65, 0x22, 0xb9, 0x01, 0x0a, | |||
0x1b, 0x52, 0x65, 0x6d, 0x6f, 0x76, 0x65, 0x42, 0x61, 0x6e, 0x6e, 0x65, 0x64, 0x47, 0x72, 0x6f, | |||
0x75, 0x70, 0x4d, 0x65, 0x6d, 0x62, 0x65, 0x72, 0x50, 0x75, 0x73, 0x68, 0x12, 0x15, 0x0a, 0x06, | |||
0x6f, 0x70, 0x74, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x03, 0x52, 0x05, 0x6f, 0x70, | |||
0x74, 0x49, 0x64, 0x12, 0x19, 0x0a, 0x08, 0x6f, 0x70, 0x74, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, | |||
0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x6f, 0x70, 0x74, 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x31, | |||
0x0a, 0x15, 0x72, 0x65, 0x6d, 0x6f, 0x76, 0x65, 0x5f, 0x62, 0x61, 0x6e, 0x6e, 0x65, 0x64, 0x5f, | |||
0x75, 0x73, 0x65, 0x72, 0x5f, 0x69, 0x64, 0x18, 0x03, 0x20, 0x01, 0x28, 0x03, 0x52, 0x12, 0x72, | |||
0x65, 0x6d, 0x6f, 0x76, 0x65, 0x42, 0x61, 0x6e, 0x6e, 0x65, 0x64, 0x55, 0x73, 0x65, 0x72, 0x49, | |||
0x64, 0x12, 0x35, 0x0a, 0x17, 0x72, 0x65, 0x6d, 0x6f, 0x76, 0x65, 0x5f, 0x62, 0x61, 0x6e, 0x6e, | |||
0x65, 0x64, 0x5f, 0x75, 0x73, 0x65, 0x72, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x04, 0x20, 0x01, | |||
0x28, 0x09, 0x52, 0x14, 0x72, 0x65, 0x6d, 0x6f, 0x76, 0x65, 0x42, 0x61, 0x6e, 0x6e, 0x65, 0x64, | |||
0x55, 0x73, 0x65, 0x72, 0x4e, 0x61, 0x6d, 0x65, 0x22, 0xcb, 0x01, 0x0a, 0x10, 0x55, 0x70, 0x64, | |||
0x61, 0x74, 0x65, 0x4d, 0x65, 0x6d, 0x62, 0x65, 0x72, 0x50, 0x75, 0x73, 0x68, 0x12, 0x15, 0x0a, | |||
0x06, 0x6f, 0x70, 0x74, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x03, 0x52, 0x05, 0x6f, | |||
0x70, 0x74, 0x49, 0x64, 0x12, 0x19, 0x0a, 0x08, 0x6f, 0x70, 0x74, 0x5f, 0x6e, 0x61, 0x6d, 0x65, | |||
0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x6f, 0x70, 0x74, 0x4e, 0x61, 0x6d, 0x65, 0x12, | |||
0x24, 0x0a, 0x0e, 0x75, 0x70, 0x64, 0x61, 0x74, 0x65, 0x5f, 0x75, 0x73, 0x65, 0x72, 0x5f, 0x69, | |||
0x64, 0x18, 0x03, 0x20, 0x01, 0x28, 0x03, 0x52, 0x0c, 0x75, 0x70, 0x64, 0x61, 0x74, 0x65, 0x55, | |||
0x73, 0x65, 0x72, 0x49, 0x64, 0x12, 0x28, 0x0a, 0x10, 0x75, 0x70, 0x64, 0x61, 0x74, 0x65, 0x5f, | |||
0x75, 0x73, 0x65, 0x72, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, | |||
0x0e, 0x75, 0x70, 0x64, 0x61, 0x74, 0x65, 0x55, 0x73, 0x65, 0x72, 0x4e, 0x61, 0x6d, 0x65, 0x12, | |||
0x35, 0x0a, 0x17, 0x75, 0x70, 0x64, 0x61, 0x74, 0x65, 0x5f, 0x75, 0x73, 0x65, 0x72, 0x5f, 0x6d, | |||
0x65, 0x6d, 0x62, 0x65, 0x72, 0x5f, 0x74, 0x79, 0x70, 0x65, 0x18, 0x05, 0x20, 0x01, 0x28, 0x05, | |||
0x52, 0x14, 0x75, 0x70, 0x64, 0x61, 0x74, 0x65, 0x55, 0x73, 0x65, 0x72, 0x4d, 0x65, 0x6d, 0x62, | |||
0x65, 0x72, 0x54, 0x79, 0x70, 0x65, 0x2a, 0xf0, 0x01, 0x0a, 0x08, 0x50, 0x75, 0x73, 0x68, 0x43, | |||
0x6f, 0x64, 0x65, 0x12, 0x12, 0x0a, 0x0e, 0x50, 0x43, 0x5f, 0x41, 0x44, 0x44, 0x5f, 0x44, 0x45, | |||
0x46, 0x41, 0x55, 0x4c, 0x54, 0x10, 0x00, 0x12, 0x11, 0x0a, 0x0d, 0x50, 0x43, 0x5f, 0x41, 0x44, | |||
0x44, 0x5f, 0x46, 0x52, 0x49, 0x45, 0x4e, 0x44, 0x10, 0x64, 0x12, 0x17, 0x0a, 0x13, 0x50, 0x43, | |||
0x5f, 0x41, 0x47, 0x52, 0x45, 0x45, 0x5f, 0x41, 0x44, 0x44, 0x5f, 0x46, 0x52, 0x49, 0x45, 0x4e, | |||
0x44, 0x10, 0x65, 0x12, 0x13, 0x0a, 0x0f, 0x50, 0x43, 0x5f, 0x55, 0x50, 0x44, 0x41, 0x54, 0x45, | |||
0x5f, 0x47, 0x52, 0x4f, 0x55, 0x50, 0x10, 0x6e, 0x12, 0x18, 0x0a, 0x14, 0x50, 0x43, 0x5f, 0x41, | |||
0x44, 0x44, 0x5f, 0x47, 0x52, 0x4f, 0x55, 0x50, 0x5f, 0x4d, 0x45, 0x4d, 0x42, 0x45, 0x52, 0x53, | |||
0x10, 0x78, 0x12, 0x1a, 0x0a, 0x16, 0x50, 0x43, 0x5f, 0x52, 0x45, 0x4d, 0x4f, 0x56, 0x45, 0x5f, | |||
0x47, 0x52, 0x4f, 0x55, 0x50, 0x5f, 0x4d, 0x45, 0x4d, 0x42, 0x45, 0x52, 0x10, 0x79, 0x12, 0x1a, | |||
0x0a, 0x16, 0x50, 0x43, 0x5f, 0x42, 0x41, 0x4e, 0x4e, 0x45, 0x44, 0x5f, 0x47, 0x52, 0x4f, 0x55, | |||
0x50, 0x5f, 0x4d, 0x45, 0x4d, 0x42, 0x45, 0x52, 0x10, 0x7a, 0x12, 0x21, 0x0a, 0x1d, 0x50, 0x43, | |||
0x5f, 0x52, 0x45, 0x4d, 0x4f, 0x56, 0x45, 0x5f, 0x42, 0x41, 0x4e, 0x4e, 0x45, 0x44, 0x5f, 0x47, | |||
0x52, 0x4f, 0x55, 0x50, 0x5f, 0x4d, 0x45, 0x4d, 0x42, 0x45, 0x52, 0x10, 0x7b, 0x12, 0x1a, 0x0a, | |||
0x16, 0x50, 0x43, 0x5f, 0x55, 0x50, 0x44, 0x41, 0x54, 0x45, 0x5f, 0x47, 0x52, 0x4f, 0x55, 0x50, | |||
0x5f, 0x4d, 0x45, 0x4d, 0x42, 0x45, 0x52, 0x10, 0x7c, 0x42, 0x0d, 0x5a, 0x0b, 0x67, 0x69, 0x6d, | |||
0x2f, 0x70, 0x6b, 0x67, 0x2f, 0x70, 0x62, 0x2f, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, | |||
} | |||
var ( | |||
file_push_ext_proto_rawDescOnce sync.Once | |||
file_push_ext_proto_rawDescData = file_push_ext_proto_rawDesc | |||
) | |||
func file_push_ext_proto_rawDescGZIP() []byte { | |||
file_push_ext_proto_rawDescOnce.Do(func() { | |||
file_push_ext_proto_rawDescData = protoimpl.X.CompressGZIP(file_push_ext_proto_rawDescData) | |||
}) | |||
return file_push_ext_proto_rawDescData | |||
} | |||
var file_push_ext_proto_enumTypes = make([]protoimpl.EnumInfo, 1) | |||
var file_push_ext_proto_msgTypes = make([]protoimpl.MessageInfo, 8) | |||
var file_push_ext_proto_goTypes = []interface{}{ | |||
(PushCode)(0), // 0: pb.PushCode | |||
(*AddFriendPush)(nil), // 1: pb.AddFriendPush | |||
(*AgreeAddFriendPush)(nil), // 2: pb.AgreeAddFriendPush | |||
(*UpdateGroupPush)(nil), // 3: pb.UpdateGroupPush | |||
(*AddGroupMembersPush)(nil), // 4: pb.AddGroupMembersPush | |||
(*RemoveGroupMemberPush)(nil), // 5: pb.RemoveGroupMemberPush | |||
(*BannedGroupMemberPush)(nil), // 6: pb.BannedGroupMemberPush | |||
(*RemoveBannedGroupMemberPush)(nil), // 7: pb.RemoveBannedGroupMemberPush | |||
(*UpdateMemberPush)(nil), // 8: pb.UpdateMemberPush | |||
(*GroupMember)(nil), // 9: pb.GroupMember | |||
} | |||
var file_push_ext_proto_depIdxs = []int32{ | |||
9, // 0: pb.AddGroupMembersPush.members:type_name -> pb.GroupMember | |||
1, // [1:1] is the sub-list for method output_type | |||
1, // [1:1] is the sub-list for method input_type | |||
1, // [1:1] is the sub-list for extension type_name | |||
1, // [1:1] is the sub-list for extension extendee | |||
0, // [0:1] is the sub-list for field type_name | |||
} | |||
func init() { file_push_ext_proto_init() } | |||
func file_push_ext_proto_init() { | |||
if File_push_ext_proto != nil { | |||
return | |||
} | |||
file_logic_ext_proto_init() | |||
if !protoimpl.UnsafeEnabled { | |||
file_push_ext_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { | |||
switch v := v.(*AddFriendPush); i { | |||
case 0: | |||
return &v.state | |||
case 1: | |||
return &v.sizeCache | |||
case 2: | |||
return &v.unknownFields | |||
default: | |||
return nil | |||
} | |||
} | |||
file_push_ext_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { | |||
switch v := v.(*AgreeAddFriendPush); i { | |||
case 0: | |||
return &v.state | |||
case 1: | |||
return &v.sizeCache | |||
case 2: | |||
return &v.unknownFields | |||
default: | |||
return nil | |||
} | |||
} | |||
file_push_ext_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} { | |||
switch v := v.(*UpdateGroupPush); i { | |||
case 0: | |||
return &v.state | |||
case 1: | |||
return &v.sizeCache | |||
case 2: | |||
return &v.unknownFields | |||
default: | |||
return nil | |||
} | |||
} | |||
file_push_ext_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} { | |||
switch v := v.(*AddGroupMembersPush); i { | |||
case 0: | |||
return &v.state | |||
case 1: | |||
return &v.sizeCache | |||
case 2: | |||
return &v.unknownFields | |||
default: | |||
return nil | |||
} | |||
} | |||
file_push_ext_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} { | |||
switch v := v.(*RemoveGroupMemberPush); i { | |||
case 0: | |||
return &v.state | |||
case 1: | |||
return &v.sizeCache | |||
case 2: | |||
return &v.unknownFields | |||
default: | |||
return nil | |||
} | |||
} | |||
file_push_ext_proto_msgTypes[5].Exporter = func(v interface{}, i int) interface{} { | |||
switch v := v.(*BannedGroupMemberPush); i { | |||
case 0: | |||
return &v.state | |||
case 1: | |||
return &v.sizeCache | |||
case 2: | |||
return &v.unknownFields | |||
default: | |||
return nil | |||
} | |||
} | |||
file_push_ext_proto_msgTypes[6].Exporter = func(v interface{}, i int) interface{} { | |||
switch v := v.(*RemoveBannedGroupMemberPush); i { | |||
case 0: | |||
return &v.state | |||
case 1: | |||
return &v.sizeCache | |||
case 2: | |||
return &v.unknownFields | |||
default: | |||
return nil | |||
} | |||
} | |||
file_push_ext_proto_msgTypes[7].Exporter = func(v interface{}, i int) interface{} { | |||
switch v := v.(*UpdateMemberPush); 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{ | |||
File: protoimpl.DescBuilder{ | |||
GoPackagePath: reflect.TypeOf(x{}).PkgPath(), | |||
RawDescriptor: file_push_ext_proto_rawDesc, | |||
NumEnums: 1, | |||
NumMessages: 8, | |||
NumExtensions: 0, | |||
NumServices: 0, | |||
}, | |||
GoTypes: file_push_ext_proto_goTypes, | |||
DependencyIndexes: file_push_ext_proto_depIdxs, | |||
EnumInfos: file_push_ext_proto_enumTypes, | |||
MessageInfos: file_push_ext_proto_msgTypes, | |||
}.Build() | |||
File_push_ext_proto = out.File | |||
file_push_ext_proto_rawDesc = nil | |||
file_push_ext_proto_goTypes = nil | |||
file_push_ext_proto_depIdxs = nil | |||
} |