// Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.36.11 // protoc v3.19.4 // source: wecom/wecom.proto package wecom import ( _ "google.golang.org/genproto/googleapis/api/annotations" protoreflect "google.golang.org/protobuf/reflect/protoreflect" protoimpl "google.golang.org/protobuf/runtime/protoimpl" reflect "reflect" sync "sync" unsafe "unsafe" ) 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 Response struct { state protoimpl.MessageState `protogen:"open.v1"` Code int32 `protobuf:"varint,1,opt,name=code,proto3" json:"code,omitempty"` Msg string `protobuf:"bytes,2,opt,name=msg,proto3" json:"msg,omitempty"` Data string `protobuf:"bytes,3,opt,name=data,proto3" json:"data,omitempty"` unknownFields protoimpl.UnknownFields sizeCache protoimpl.SizeCache } func (x *Response) Reset() { *x = Response{} mi := &file_wecom_wecom_proto_msgTypes[0] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } func (x *Response) String() string { return protoimpl.X.MessageStringOf(x) } func (*Response) ProtoMessage() {} func (x *Response) ProtoReflect() protoreflect.Message { mi := &file_wecom_wecom_proto_msgTypes[0] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) } return ms } return mi.MessageOf(x) } // Deprecated: Use Response.ProtoReflect.Descriptor instead. func (*Response) Descriptor() ([]byte, []int) { return file_wecom_wecom_proto_rawDescGZIP(), []int{0} } func (x *Response) GetCode() int32 { if x != nil { return x.Code } return 0 } func (x *Response) GetMsg() string { if x != nil { return x.Msg } return "" } func (x *Response) GetData() string { if x != nil { return x.Data } return "" } type EmptyReq struct { state protoimpl.MessageState `protogen:"open.v1"` unknownFields protoimpl.UnknownFields sizeCache protoimpl.SizeCache } func (x *EmptyReq) Reset() { *x = EmptyReq{} mi := &file_wecom_wecom_proto_msgTypes[1] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } func (x *EmptyReq) String() string { return protoimpl.X.MessageStringOf(x) } func (*EmptyReq) ProtoMessage() {} func (x *EmptyReq) ProtoReflect() protoreflect.Message { mi := &file_wecom_wecom_proto_msgTypes[1] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) } return ms } return mi.MessageOf(x) } // Deprecated: Use EmptyReq.ProtoReflect.Descriptor instead. func (*EmptyReq) Descriptor() ([]byte, []int) { return file_wecom_wecom_proto_rawDescGZIP(), []int{1} } type ItemsUserReq struct { state protoimpl.MessageState `protogen:"open.v1"` Page uint32 `protobuf:"varint,1,opt,name=page,proto3" json:"page,omitempty"` PageSize uint32 `protobuf:"varint,2,opt,name=page_size,json=pageSize,proto3" json:"page_size,omitempty"` Name string `protobuf:"bytes,3,opt,name=name,proto3" json:"name,omitempty"` Type uint32 `protobuf:"varint,4,opt,name=type,proto3" json:"type,omitempty"` Status uint32 `protobuf:"varint,5,opt,name=status,proto3" json:"status,omitempty"` unknownFields protoimpl.UnknownFields sizeCache protoimpl.SizeCache } func (x *ItemsUserReq) Reset() { *x = ItemsUserReq{} mi := &file_wecom_wecom_proto_msgTypes[2] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } func (x *ItemsUserReq) String() string { return protoimpl.X.MessageStringOf(x) } func (*ItemsUserReq) ProtoMessage() {} func (x *ItemsUserReq) ProtoReflect() protoreflect.Message { mi := &file_wecom_wecom_proto_msgTypes[2] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) } return ms } return mi.MessageOf(x) } // Deprecated: Use ItemsUserReq.ProtoReflect.Descriptor instead. func (*ItemsUserReq) Descriptor() ([]byte, []int) { return file_wecom_wecom_proto_rawDescGZIP(), []int{2} } func (x *ItemsUserReq) GetPage() uint32 { if x != nil { return x.Page } return 0 } func (x *ItemsUserReq) GetPageSize() uint32 { if x != nil { return x.PageSize } return 0 } func (x *ItemsUserReq) GetName() string { if x != nil { return x.Name } return "" } func (x *ItemsUserReq) GetType() uint32 { if x != nil { return x.Type } return 0 } func (x *ItemsUserReq) GetStatus() uint32 { if x != nil { return x.Status } return 0 } type CreateUserReq struct { state protoimpl.MessageState `protogen:"open.v1"` UserId int64 `protobuf:"varint,1,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"` Type uint32 `protobuf:"varint,2,opt,name=type,proto3" json:"type,omitempty"` Name string `protobuf:"bytes,3,opt,name=name,proto3" json:"name,omitempty"` Mobile string `protobuf:"bytes,4,opt,name=mobile,proto3" json:"mobile,omitempty"` Avatar string `protobuf:"bytes,5,opt,name=avatar,proto3" json:"avatar,omitempty"` Status uint32 `protobuf:"varint,6,opt,name=status,proto3" json:"status,omitempty"` AgentIds []int64 `protobuf:"varint,7,rep,packed,name=agent_ids,json=agentIds,proto3" json:"agent_ids,omitempty"` // 应用 agents.id,多选 unknownFields protoimpl.UnknownFields sizeCache protoimpl.SizeCache } func (x *CreateUserReq) Reset() { *x = CreateUserReq{} mi := &file_wecom_wecom_proto_msgTypes[3] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } func (x *CreateUserReq) String() string { return protoimpl.X.MessageStringOf(x) } func (*CreateUserReq) ProtoMessage() {} func (x *CreateUserReq) ProtoReflect() protoreflect.Message { mi := &file_wecom_wecom_proto_msgTypes[3] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) } return ms } return mi.MessageOf(x) } // Deprecated: Use CreateUserReq.ProtoReflect.Descriptor instead. func (*CreateUserReq) Descriptor() ([]byte, []int) { return file_wecom_wecom_proto_rawDescGZIP(), []int{3} } func (x *CreateUserReq) GetUserId() int64 { if x != nil { return x.UserId } return 0 } func (x *CreateUserReq) GetType() uint32 { if x != nil { return x.Type } return 0 } func (x *CreateUserReq) GetName() string { if x != nil { return x.Name } return "" } func (x *CreateUserReq) GetMobile() string { if x != nil { return x.Mobile } return "" } func (x *CreateUserReq) GetAvatar() string { if x != nil { return x.Avatar } return "" } func (x *CreateUserReq) GetStatus() uint32 { if x != nil { return x.Status } return 0 } func (x *CreateUserReq) GetAgentIds() []int64 { if x != nil { return x.AgentIds } return nil } type UpdateUserReq struct { state protoimpl.MessageState `protogen:"open.v1"` Id int64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` // wecom_users 主键,优先 UserId int64 `protobuf:"varint,2,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"` Type uint32 `protobuf:"varint,3,opt,name=type,proto3" json:"type,omitempty"` Name string `protobuf:"bytes,4,opt,name=name,proto3" json:"name,omitempty"` Mobile string `protobuf:"bytes,5,opt,name=mobile,proto3" json:"mobile,omitempty"` Avatar string `protobuf:"bytes,6,opt,name=avatar,proto3" json:"avatar,omitempty"` Status uint32 `protobuf:"varint,7,opt,name=status,proto3" json:"status,omitempty"` AgentIds []int64 `protobuf:"varint,8,rep,packed,name=agent_ids,json=agentIds,proto3" json:"agent_ids,omitempty"` // 应用 agents.id,多选 unknownFields protoimpl.UnknownFields sizeCache protoimpl.SizeCache } func (x *UpdateUserReq) Reset() { *x = UpdateUserReq{} mi := &file_wecom_wecom_proto_msgTypes[4] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } func (x *UpdateUserReq) String() string { return protoimpl.X.MessageStringOf(x) } func (*UpdateUserReq) ProtoMessage() {} func (x *UpdateUserReq) ProtoReflect() protoreflect.Message { mi := &file_wecom_wecom_proto_msgTypes[4] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) } return ms } return mi.MessageOf(x) } // Deprecated: Use UpdateUserReq.ProtoReflect.Descriptor instead. func (*UpdateUserReq) Descriptor() ([]byte, []int) { return file_wecom_wecom_proto_rawDescGZIP(), []int{4} } func (x *UpdateUserReq) GetId() int64 { if x != nil { return x.Id } return 0 } func (x *UpdateUserReq) GetUserId() int64 { if x != nil { return x.UserId } return 0 } func (x *UpdateUserReq) GetType() uint32 { if x != nil { return x.Type } return 0 } func (x *UpdateUserReq) GetName() string { if x != nil { return x.Name } return "" } func (x *UpdateUserReq) GetMobile() string { if x != nil { return x.Mobile } return "" } func (x *UpdateUserReq) GetAvatar() string { if x != nil { return x.Avatar } return "" } func (x *UpdateUserReq) GetStatus() uint32 { if x != nil { return x.Status } return 0 } func (x *UpdateUserReq) GetAgentIds() []int64 { if x != nil { return x.AgentIds } return nil } type StatusUserReq struct { state protoimpl.MessageState `protogen:"open.v1"` Id int64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` Status uint32 `protobuf:"varint,2,opt,name=status,proto3" json:"status,omitempty"` // 1: 启用,2: 禁用 unknownFields protoimpl.UnknownFields sizeCache protoimpl.SizeCache } func (x *StatusUserReq) Reset() { *x = StatusUserReq{} mi := &file_wecom_wecom_proto_msgTypes[5] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } func (x *StatusUserReq) String() string { return protoimpl.X.MessageStringOf(x) } func (*StatusUserReq) ProtoMessage() {} func (x *StatusUserReq) ProtoReflect() protoreflect.Message { mi := &file_wecom_wecom_proto_msgTypes[5] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) } return ms } return mi.MessageOf(x) } // Deprecated: Use StatusUserReq.ProtoReflect.Descriptor instead. func (*StatusUserReq) Descriptor() ([]byte, []int) { return file_wecom_wecom_proto_rawDescGZIP(), []int{5} } func (x *StatusUserReq) GetId() int64 { if x != nil { return x.Id } return 0 } func (x *StatusUserReq) GetStatus() uint32 { if x != nil { return x.Status } return 0 } type DeleteUserReq struct { state protoimpl.MessageState `protogen:"open.v1"` Id int64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` unknownFields protoimpl.UnknownFields sizeCache protoimpl.SizeCache } func (x *DeleteUserReq) Reset() { *x = DeleteUserReq{} mi := &file_wecom_wecom_proto_msgTypes[6] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } func (x *DeleteUserReq) String() string { return protoimpl.X.MessageStringOf(x) } func (*DeleteUserReq) ProtoMessage() {} func (x *DeleteUserReq) ProtoReflect() protoreflect.Message { mi := &file_wecom_wecom_proto_msgTypes[6] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) } return ms } return mi.MessageOf(x) } // Deprecated: Use DeleteUserReq.ProtoReflect.Descriptor instead. func (*DeleteUserReq) Descriptor() ([]byte, []int) { return file_wecom_wecom_proto_rawDescGZIP(), []int{6} } func (x *DeleteUserReq) GetId() int64 { if x != nil { return x.Id } return 0 } var File_wecom_wecom_proto protoreflect.FileDescriptor const file_wecom_wecom_proto_rawDesc = "" + "\n" + "\x11wecom/wecom.proto\x12\x05wecom\x1a\x1cgoogle/api/annotations.proto\"D\n" + "\bResponse\x12\x12\n" + "\x04code\x18\x01 \x01(\x05R\x04code\x12\x10\n" + "\x03msg\x18\x02 \x01(\tR\x03msg\x12\x12\n" + "\x04data\x18\x03 \x01(\tR\x04data\"\n" + "\n" + "\bEmptyReq\"\x7f\n" + "\fItemsUserReq\x12\x12\n" + "\x04page\x18\x01 \x01(\rR\x04page\x12\x1b\n" + "\tpage_size\x18\x02 \x01(\rR\bpageSize\x12\x12\n" + "\x04name\x18\x03 \x01(\tR\x04name\x12\x12\n" + "\x04type\x18\x04 \x01(\rR\x04type\x12\x16\n" + "\x06status\x18\x05 \x01(\rR\x06status\"\xb5\x01\n" + "\rCreateUserReq\x12\x17\n" + "\auser_id\x18\x01 \x01(\x03R\x06userId\x12\x12\n" + "\x04type\x18\x02 \x01(\rR\x04type\x12\x12\n" + "\x04name\x18\x03 \x01(\tR\x04name\x12\x16\n" + "\x06mobile\x18\x04 \x01(\tR\x06mobile\x12\x16\n" + "\x06avatar\x18\x05 \x01(\tR\x06avatar\x12\x16\n" + "\x06status\x18\x06 \x01(\rR\x06status\x12\x1b\n" + "\tagent_ids\x18\a \x03(\x03R\bagentIds\"\xc5\x01\n" + "\rUpdateUserReq\x12\x0e\n" + "\x02id\x18\x01 \x01(\x03R\x02id\x12\x17\n" + "\auser_id\x18\x02 \x01(\x03R\x06userId\x12\x12\n" + "\x04type\x18\x03 \x01(\rR\x04type\x12\x12\n" + "\x04name\x18\x04 \x01(\tR\x04name\x12\x16\n" + "\x06mobile\x18\x05 \x01(\tR\x06mobile\x12\x16\n" + "\x06avatar\x18\x06 \x01(\tR\x06avatar\x12\x16\n" + "\x06status\x18\a \x01(\rR\x06status\x12\x1b\n" + "\tagent_ids\x18\b \x03(\x03R\bagentIds\"7\n" + "\rStatusUserReq\x12\x0e\n" + "\x02id\x18\x01 \x01(\x03R\x02id\x12\x16\n" + "\x06status\x18\x02 \x01(\rR\x06status\"\x1f\n" + "\rDeleteUserReq\x12\x0e\n" + "\x02id\x18\x01 \x01(\x03R\x02id2\xe2\x04\n" + "\x05Wecom\x12S\n" + "\n" + "ItemsUsers\x12\x13.wecom.ItemsUserReq\x1a\x0f.wecom.Response\"\x1f\x82\xd3\xe4\x93\x02\x19:\x01*\x12\x14/admin/v3/wecom/user\x12T\n" + "\n" + "CreateUser\x12\x14.wecom.CreateUserReq\x1a\x0f.wecom.Response\"\x1f\x82\xd3\xe4\x93\x02\x19:\x01*\"\x14/admin/v3/wecom/user\x12T\n" + "\n" + "UpdateUser\x12\x14.wecom.UpdateUserReq\x1a\x0f.wecom.Response\"\x1f\x82\xd3\xe4\x93\x02\x19:\x01*\x1a\x14/admin/v3/wecom/user\x12[\n" + "\n" + "StatusUser\x12\x14.wecom.StatusUserReq\x1a\x0f.wecom.Response\"&\x82\xd3\xe4\x93\x02 :\x01*\x1a\x1b/admin/v3/wecom/user/status\x12[\n" + "\n" + "DeleteUser\x12\x14.wecom.DeleteUserReq\x1a\x0f.wecom.Response\"&\x82\xd3\xe4\x93\x02 :\x01*\x1a\x1b/admin/v3/wecom/user/delete\x12Q\n" + "\vItemsAgents\x12\x0f.wecom.EmptyReq\x1a\x0f.wecom.Response\" \x82\xd3\xe4\x93\x02\x1a:\x01*\x12\x15/admin/v3/wecom/agent\x12K\n" + "\x05Types\x12\x0f.wecom.EmptyReq\x1a\x0f.wecom.Response\" \x82\xd3\xe4\x93\x02\x1a:\x01*\x12\x15/admin/v3/wecom/typesB\x19Z\x17lone-services/rpc/wecomb\x06proto3" var ( file_wecom_wecom_proto_rawDescOnce sync.Once file_wecom_wecom_proto_rawDescData []byte ) func file_wecom_wecom_proto_rawDescGZIP() []byte { file_wecom_wecom_proto_rawDescOnce.Do(func() { file_wecom_wecom_proto_rawDescData = protoimpl.X.CompressGZIP(unsafe.Slice(unsafe.StringData(file_wecom_wecom_proto_rawDesc), len(file_wecom_wecom_proto_rawDesc))) }) return file_wecom_wecom_proto_rawDescData } var file_wecom_wecom_proto_msgTypes = make([]protoimpl.MessageInfo, 7) var file_wecom_wecom_proto_goTypes = []any{ (*Response)(nil), // 0: wecom.Response (*EmptyReq)(nil), // 1: wecom.EmptyReq (*ItemsUserReq)(nil), // 2: wecom.ItemsUserReq (*CreateUserReq)(nil), // 3: wecom.CreateUserReq (*UpdateUserReq)(nil), // 4: wecom.UpdateUserReq (*StatusUserReq)(nil), // 5: wecom.StatusUserReq (*DeleteUserReq)(nil), // 6: wecom.DeleteUserReq } var file_wecom_wecom_proto_depIdxs = []int32{ 2, // 0: wecom.Wecom.ItemsUsers:input_type -> wecom.ItemsUserReq 3, // 1: wecom.Wecom.CreateUser:input_type -> wecom.CreateUserReq 4, // 2: wecom.Wecom.UpdateUser:input_type -> wecom.UpdateUserReq 5, // 3: wecom.Wecom.StatusUser:input_type -> wecom.StatusUserReq 6, // 4: wecom.Wecom.DeleteUser:input_type -> wecom.DeleteUserReq 1, // 5: wecom.Wecom.ItemsAgents:input_type -> wecom.EmptyReq 1, // 6: wecom.Wecom.Types:input_type -> wecom.EmptyReq 0, // 7: wecom.Wecom.ItemsUsers:output_type -> wecom.Response 0, // 8: wecom.Wecom.CreateUser:output_type -> wecom.Response 0, // 9: wecom.Wecom.UpdateUser:output_type -> wecom.Response 0, // 10: wecom.Wecom.StatusUser:output_type -> wecom.Response 0, // 11: wecom.Wecom.DeleteUser:output_type -> wecom.Response 0, // 12: wecom.Wecom.ItemsAgents:output_type -> wecom.Response 0, // 13: wecom.Wecom.Types:output_type -> wecom.Response 7, // [7:14] is the sub-list for method output_type 0, // [0:7] 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_wecom_wecom_proto_init() } func file_wecom_wecom_proto_init() { if File_wecom_wecom_proto != nil { return } type x struct{} out := protoimpl.TypeBuilder{ File: protoimpl.DescBuilder{ GoPackagePath: reflect.TypeOf(x{}).PkgPath(), RawDescriptor: unsafe.Slice(unsafe.StringData(file_wecom_wecom_proto_rawDesc), len(file_wecom_wecom_proto_rawDesc)), NumEnums: 0, NumMessages: 7, NumExtensions: 0, NumServices: 1, }, GoTypes: file_wecom_wecom_proto_goTypes, DependencyIndexes: file_wecom_wecom_proto_depIdxs, MessageInfos: file_wecom_wecom_proto_msgTypes, }.Build() File_wecom_wecom_proto = out.File file_wecom_wecom_proto_goTypes = nil file_wecom_wecom_proto_depIdxs = nil }