|
@@ -23,7 +23,7 @@ const (
|
|
|
|
|
|
type ContactPushNoticeMessage struct {
|
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
|
- WxId int64 `protobuf:"varint,1,opt,name=WxId,proto3" json:"WxId,omitempty"` // 设备企业WX号
|
|
|
+ WxId string `protobuf:"bytes,1,opt,name=WxId,proto3" json:"WxId,omitempty"` // 设备企业WX号
|
|
|
Contacts []*ContactMessage `protobuf:"bytes,2,rep,name=Contacts,proto3" json:"Contacts,omitempty"` // 好友信息模型 多个
|
|
|
Size int32 `protobuf:"varint,3,opt,name=Size,proto3" json:"Size,omitempty"`
|
|
|
Count int32 `protobuf:"varint,4,opt,name=Count,proto3" json:"Count,omitempty"`
|
|
@@ -63,11 +63,11 @@ func (*ContactPushNoticeMessage) Descriptor() ([]byte, []int) {
|
|
|
return file_wecom_WContactPushNotice_proto_rawDescGZIP(), []int{0}
|
|
|
}
|
|
|
|
|
|
-func (x *ContactPushNoticeMessage) GetWxId() int64 {
|
|
|
+func (x *ContactPushNoticeMessage) GetWxId() string {
|
|
|
if x != nil {
|
|
|
return x.WxId
|
|
|
}
|
|
|
- return 0
|
|
|
+ return ""
|
|
|
}
|
|
|
|
|
|
func (x *ContactPushNoticeMessage) GetContacts() []*ContactMessage {
|
|
@@ -107,23 +107,23 @@ func (x *ContactPushNoticeMessage) GetTaskId() int64 {
|
|
|
|
|
|
type ContactMessage struct {
|
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
|
- RemoteId int64 `protobuf:"varint,1,opt,name=RemoteId,proto3" json:"RemoteId,omitempty"` //唯一id
|
|
|
+ RemoteId string `protobuf:"bytes,1,opt,name=RemoteId,proto3" json:"RemoteId,omitempty"` //唯一id
|
|
|
// RemoteId>>48==20 App;
|
|
|
// RemoteId>>48==28 微信用户;
|
|
|
// RemoteId>>48==33,34 外部客户;
|
|
|
// RemoteId>>48==39 群机器人;
|
|
|
// RemoteId>>48==30 内部客服;
|
|
|
// RemoteId>>48==32 VIP客户;
|
|
|
- AcctId string `protobuf:"bytes,2,opt,name=AcctId,proto3" json:"AcctId,omitempty"` // 企业内部id
|
|
|
- Name string `protobuf:"bytes,3,opt,name=Name,proto3" json:"Name,omitempty"` //
|
|
|
- Alias string `protobuf:"bytes,4,opt,name=Alias,proto3" json:"Alias,omitempty"`
|
|
|
- Avatar string `protobuf:"bytes,5,opt,name=Avatar,proto3" json:"Avatar,omitempty"`
|
|
|
- Job string `protobuf:"bytes,6,opt,name=Job,proto3" json:"Job,omitempty"` // 职位
|
|
|
- Mobile string `protobuf:"bytes,7,opt,name=Mobile,proto3" json:"Mobile,omitempty"`
|
|
|
- UnionId string `protobuf:"bytes,8,opt,name=UnionId,proto3" json:"UnionId,omitempty"`
|
|
|
- Gender EnumGender `protobuf:"varint,9,opt,name=Gender,proto3,enum=Im.Scrm.Ww.Proto.EnumGender" json:"Gender,omitempty"`
|
|
|
- DepartIds []int64 `protobuf:"varint,10,rep,packed,name=DepartIds,proto3" json:"DepartIds,omitempty"` // 所属部门id
|
|
|
- Attr int64 `protobuf:"varint,11,opt,name=Attr,proto3" json:"Attr,omitempty"` // 属性 (attr & 64) == 64 || (attr & 33554432) == 33554432 已激活企业微信
|
|
|
+ AcctId string `protobuf:"bytes,2,opt,name=AcctId,proto3" json:"AcctId,omitempty"` // 企业内部id
|
|
|
+ Name string `protobuf:"bytes,3,opt,name=Name,proto3" json:"Name,omitempty"` //
|
|
|
+ Alias string `protobuf:"bytes,4,opt,name=Alias,proto3" json:"Alias,omitempty"`
|
|
|
+ Avatar string `protobuf:"bytes,5,opt,name=Avatar,proto3" json:"Avatar,omitempty"`
|
|
|
+ Job string `protobuf:"bytes,6,opt,name=Job,proto3" json:"Job,omitempty"` // 职位
|
|
|
+ Mobile string `protobuf:"bytes,7,opt,name=Mobile,proto3" json:"Mobile,omitempty"`
|
|
|
+ UnionId string `protobuf:"bytes,8,opt,name=UnionId,proto3" json:"UnionId,omitempty"`
|
|
|
+ Gender string `protobuf:"bytes,9,opt,name=Gender,proto3" json:"Gender,omitempty"`
|
|
|
+ DepartIds []string `protobuf:"bytes,10,rep,name=DepartIds,proto3" json:"DepartIds,omitempty"` // 所属部门id
|
|
|
+ Attr string `protobuf:"bytes,11,opt,name=Attr,proto3" json:"Attr,omitempty"` // 属性 (attr & 64) == 64 || (attr & 33554432) == 33554432 已激活企业微信
|
|
|
unknownFields protoimpl.UnknownFields
|
|
|
sizeCache protoimpl.SizeCache
|
|
|
}
|
|
@@ -158,11 +158,11 @@ func (*ContactMessage) Descriptor() ([]byte, []int) {
|
|
|
return file_wecom_WContactPushNotice_proto_rawDescGZIP(), []int{1}
|
|
|
}
|
|
|
|
|
|
-func (x *ContactMessage) GetRemoteId() int64 {
|
|
|
+func (x *ContactMessage) GetRemoteId() string {
|
|
|
if x != nil {
|
|
|
return x.RemoteId
|
|
|
}
|
|
|
- return 0
|
|
|
+ return ""
|
|
|
}
|
|
|
|
|
|
func (x *ContactMessage) GetAcctId() string {
|
|
@@ -214,52 +214,52 @@ func (x *ContactMessage) GetUnionId() string {
|
|
|
return ""
|
|
|
}
|
|
|
|
|
|
-func (x *ContactMessage) GetGender() EnumGender {
|
|
|
+func (x *ContactMessage) GetGender() string {
|
|
|
if x != nil {
|
|
|
return x.Gender
|
|
|
}
|
|
|
- return EnumGender_UnknownGender
|
|
|
+ return ""
|
|
|
}
|
|
|
|
|
|
-func (x *ContactMessage) GetDepartIds() []int64 {
|
|
|
+func (x *ContactMessage) GetDepartIds() []string {
|
|
|
if x != nil {
|
|
|
return x.DepartIds
|
|
|
}
|
|
|
return nil
|
|
|
}
|
|
|
|
|
|
-func (x *ContactMessage) GetAttr() int64 {
|
|
|
+func (x *ContactMessage) GetAttr() string {
|
|
|
if x != nil {
|
|
|
return x.Attr
|
|
|
}
|
|
|
- return 0
|
|
|
+ return ""
|
|
|
}
|
|
|
|
|
|
var File_wecom_WContactPushNotice_proto protoreflect.FileDescriptor
|
|
|
|
|
|
const file_wecom_WContactPushNotice_proto_rawDesc = "" +
|
|
|
"\n" +
|
|
|
- "\x1ewecom/WContactPushNotice.proto\x12\x10Im.Scrm.Ww.Proto\x1a\x16wecom/WTransport.proto\"\xc2\x01\n" +
|
|
|
+ "\x1ewecom/WContactPushNotice.proto\x12\x10Im.Scrm.Ww.Proto\"\xc2\x01\n" +
|
|
|
"\x18ContactPushNoticeMessage\x12\x12\n" +
|
|
|
- "\x04WxId\x18\x01 \x01(\x03R\x04WxId\x12<\n" +
|
|
|
+ "\x04WxId\x18\x01 \x01(\tR\x04WxId\x12<\n" +
|
|
|
"\bContacts\x18\x02 \x03(\v2 .Im.Scrm.Ww.Proto.ContactMessageR\bContacts\x12\x12\n" +
|
|
|
"\x04Size\x18\x03 \x01(\x05R\x04Size\x12\x14\n" +
|
|
|
"\x05Count\x18\x04 \x01(\x05R\x05Count\x12\x12\n" +
|
|
|
"\x04Page\x18\x05 \x01(\x05R\x04Page\x12\x16\n" +
|
|
|
- "\x06TaskId\x18\x06 \x01(\x03R\x06TaskId\"\xb2\x02\n" +
|
|
|
+ "\x06TaskId\x18\x06 \x01(\x03R\x06TaskId\"\x94\x02\n" +
|
|
|
"\x0eContactMessage\x12\x1a\n" +
|
|
|
- "\bRemoteId\x18\x01 \x01(\x03R\bRemoteId\x12\x16\n" +
|
|
|
+ "\bRemoteId\x18\x01 \x01(\tR\bRemoteId\x12\x16\n" +
|
|
|
"\x06AcctId\x18\x02 \x01(\tR\x06AcctId\x12\x12\n" +
|
|
|
"\x04Name\x18\x03 \x01(\tR\x04Name\x12\x14\n" +
|
|
|
"\x05Alias\x18\x04 \x01(\tR\x05Alias\x12\x16\n" +
|
|
|
"\x06Avatar\x18\x05 \x01(\tR\x06Avatar\x12\x10\n" +
|
|
|
"\x03Job\x18\x06 \x01(\tR\x03Job\x12\x16\n" +
|
|
|
"\x06Mobile\x18\a \x01(\tR\x06Mobile\x12\x18\n" +
|
|
|
- "\aUnionId\x18\b \x01(\tR\aUnionId\x124\n" +
|
|
|
- "\x06Gender\x18\t \x01(\x0e2\x1c.Im.Scrm.Ww.Proto.EnumGenderR\x06Gender\x12\x1c\n" +
|
|
|
+ "\aUnionId\x18\b \x01(\tR\aUnionId\x12\x16\n" +
|
|
|
+ "\x06Gender\x18\t \x01(\tR\x06Gender\x12\x1c\n" +
|
|
|
"\tDepartIds\x18\n" +
|
|
|
- " \x03(\x03R\tDepartIds\x12\x12\n" +
|
|
|
- "\x04Attr\x18\v \x01(\x03R\x04AttrB\x13Z\x11./workphone/wecomb\x06proto3"
|
|
|
+ " \x03(\tR\tDepartIds\x12\x12\n" +
|
|
|
+ "\x04Attr\x18\v \x01(\tR\x04AttrB\x13Z\x11./workphone/wecomb\x06proto3"
|
|
|
|
|
|
var (
|
|
|
file_wecom_WContactPushNotice_proto_rawDescOnce sync.Once
|
|
@@ -277,16 +277,14 @@ var file_wecom_WContactPushNotice_proto_msgTypes = make([]protoimpl.MessageInfo,
|
|
|
var file_wecom_WContactPushNotice_proto_goTypes = []any{
|
|
|
(*ContactPushNoticeMessage)(nil), // 0: Im.Scrm.Ww.Proto.ContactPushNoticeMessage
|
|
|
(*ContactMessage)(nil), // 1: Im.Scrm.Ww.Proto.ContactMessage
|
|
|
- (EnumGender)(0), // 2: Im.Scrm.Ww.Proto.EnumGender
|
|
|
}
|
|
|
var file_wecom_WContactPushNotice_proto_depIdxs = []int32{
|
|
|
1, // 0: Im.Scrm.Ww.Proto.ContactPushNoticeMessage.Contacts:type_name -> Im.Scrm.Ww.Proto.ContactMessage
|
|
|
- 2, // 1: Im.Scrm.Ww.Proto.ContactMessage.Gender:type_name -> Im.Scrm.Ww.Proto.EnumGender
|
|
|
- 2, // [2:2] is the sub-list for method output_type
|
|
|
- 2, // [2:2] is the sub-list for method input_type
|
|
|
- 2, // [2:2] is the sub-list for extension type_name
|
|
|
- 2, // [2:2] is the sub-list for extension extendee
|
|
|
- 0, // [0:2] is the sub-list for field type_name
|
|
|
+ 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_wecom_WContactPushNotice_proto_init() }
|
|
@@ -294,7 +292,6 @@ func file_wecom_WContactPushNotice_proto_init() {
|
|
|
if File_wecom_WContactPushNotice_proto != nil {
|
|
|
return
|
|
|
}
|
|
|
- file_wecom_WTransport_proto_init()
|
|
|
type x struct{}
|
|
|
out := protoimpl.TypeBuilder{
|
|
|
File: protoimpl.DescBuilder{
|