diff --git a/go-zero-gen/usercenter/pb/usercenter.pb.go b/go-zero-gen/usercenter/pb/usercenter.pb.go deleted file mode 100644 index 43ce927..0000000 --- a/go-zero-gen/usercenter/pb/usercenter.pb.go +++ /dev/null @@ -1,1234 +0,0 @@ -// Code generated by protoc-gen-go. DO NOT EDIT. -// versions: -// protoc-gen-go v1.31.0 -// protoc v3.19.4 -// source: usercenter.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 Sex int32 - -const ( - Sex_UnKnownSex Sex = 0 - Sex_Man Sex = 1 - Sex_WoMen Sex = 2 -) - -// Enum value maps for Sex. -var ( - Sex_name = map[int32]string{ - 0: "UnKnownSex", - 1: "Man", - 2: "WoMen", - } - Sex_value = map[string]int32{ - "UnKnownSex": 0, - "Man": 1, - "WoMen": 2, - } -) - -func (x Sex) Enum() *Sex { - p := new(Sex) - *p = x - return p -} - -func (x Sex) String() string { - return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) -} - -func (Sex) Descriptor() protoreflect.EnumDescriptor { - return file_usercenter_proto_enumTypes[0].Descriptor() -} - -func (Sex) Type() protoreflect.EnumType { - return &file_usercenter_proto_enumTypes[0] -} - -func (x Sex) Number() protoreflect.EnumNumber { - return protoreflect.EnumNumber(x) -} - -// Deprecated: Use Sex.Descriptor instead. -func (Sex) EnumDescriptor() ([]byte, []int) { - return file_usercenter_proto_rawDescGZIP(), []int{0} -} - -type AuthType int32 - -const ( - AuthType_UnKnownType AuthType = 0 - AuthType_Email AuthType = 1 - AuthType_Phone AuthType = 2 - AuthType_WeChat AuthType = 3 - AuthType_QQ AuthType = 4 - AuthType_WeiBo AuthType = 5 - AuthType_GitHub AuthType = 6 - AuthType_Google AuthType = 7 - AuthType_FaceBook AuthType = 8 - AuthType_Twitter AuthType = 9 - AuthType_DingTalk AuthType = 10 - AuthType_WeiXin AuthType = 11 - AuthType_AliPay AuthType = 12 - AuthType_Apple AuthType = 13 -) - -// Enum value maps for AuthType. -var ( - AuthType_name = map[int32]string{ - 0: "UnKnownType", - 1: "Email", - 2: "Phone", - 3: "WeChat", - 4: "QQ", - 5: "WeiBo", - 6: "GitHub", - 7: "Google", - 8: "FaceBook", - 9: "Twitter", - 10: "DingTalk", - 11: "WeiXin", - 12: "AliPay", - 13: "Apple", - } - AuthType_value = map[string]int32{ - "UnKnownType": 0, - "Email": 1, - "Phone": 2, - "WeChat": 3, - "QQ": 4, - "WeiBo": 5, - "GitHub": 6, - "Google": 7, - "FaceBook": 8, - "Twitter": 9, - "DingTalk": 10, - "WeiXin": 11, - "AliPay": 12, - "Apple": 13, - } -) - -func (x AuthType) Enum() *AuthType { - p := new(AuthType) - *p = x - return p -} - -func (x AuthType) String() string { - return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) -} - -func (AuthType) Descriptor() protoreflect.EnumDescriptor { - return file_usercenter_proto_enumTypes[1].Descriptor() -} - -func (AuthType) Type() protoreflect.EnumType { - return &file_usercenter_proto_enumTypes[1] -} - -func (x AuthType) Number() protoreflect.EnumNumber { - return protoreflect.EnumNumber(x) -} - -// Deprecated: Use AuthType.Descriptor instead. -func (AuthType) EnumDescriptor() ([]byte, []int) { - return file_usercenter_proto_rawDescGZIP(), []int{1} -} - -type User struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - Email string `protobuf:"bytes,1,opt,name=Email,proto3" json:"Email,omitempty"` - Name string `protobuf:"bytes,2,opt,name=Name,proto3" json:"Name,omitempty"` - Sex Sex `protobuf:"varint,3,opt,name=Sex,proto3,enum=pb.Sex" json:"Sex,omitempty"` - FullName string `protobuf:"bytes,4,opt,name=FullName,proto3" json:"FullName,omitempty"` - IdCard string `protobuf:"bytes,5,opt,name=IdCard,proto3" json:"IdCard,omitempty"` - CreatedAt int64 `protobuf:"varint,6,opt,name=CreatedAt,proto3" json:"CreatedAt,omitempty"` - UpdatedAt int64 `protobuf:"varint,7,opt,name=UpdatedAt,proto3" json:"UpdatedAt,omitempty"` - Money int64 `protobuf:"varint,8,opt,name=Money,proto3" json:"Money,omitempty"` - Flow int64 `protobuf:"varint,9,opt,name=Flow,proto3" json:"Flow,omitempty"` - Memory int64 `protobuf:"varint,10,opt,name=Memory,proto3" json:"Memory,omitempty"` - Description string `protobuf:"bytes,11,opt,name=Description,proto3" json:"Description,omitempty"` - Url string `protobuf:"bytes,12,opt,name=Url,proto3" json:"Url,omitempty"` - UserId string `protobuf:"bytes,13,opt,name=UserId,proto3" json:"UserId,omitempty"` -} - -func (x *User) Reset() { - *x = User{} - if protoimpl.UnsafeEnabled { - mi := &file_usercenter_proto_msgTypes[0] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *User) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*User) ProtoMessage() {} - -func (x *User) ProtoReflect() protoreflect.Message { - mi := &file_usercenter_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 User.ProtoReflect.Descriptor instead. -func (*User) Descriptor() ([]byte, []int) { - return file_usercenter_proto_rawDescGZIP(), []int{0} -} - -func (x *User) GetEmail() string { - if x != nil { - return x.Email - } - return "" -} - -func (x *User) GetName() string { - if x != nil { - return x.Name - } - return "" -} - -func (x *User) GetSex() Sex { - if x != nil { - return x.Sex - } - return Sex_UnKnownSex -} - -func (x *User) GetFullName() string { - if x != nil { - return x.FullName - } - return "" -} - -func (x *User) GetIdCard() string { - if x != nil { - return x.IdCard - } - return "" -} - -func (x *User) GetCreatedAt() int64 { - if x != nil { - return x.CreatedAt - } - return 0 -} - -func (x *User) GetUpdatedAt() int64 { - if x != nil { - return x.UpdatedAt - } - return 0 -} - -func (x *User) GetMoney() int64 { - if x != nil { - return x.Money - } - return 0 -} - -func (x *User) GetFlow() int64 { - if x != nil { - return x.Flow - } - return 0 -} - -func (x *User) GetMemory() int64 { - if x != nil { - return x.Memory - } - return 0 -} - -func (x *User) GetDescription() string { - if x != nil { - return x.Description - } - return "" -} - -func (x *User) GetUrl() string { - if x != nil { - return x.Url - } - return "" -} - -func (x *User) GetUserId() string { - if x != nil { - return x.UserId - } - return "" -} - -type UserAuth struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - Id string `protobuf:"bytes,1,opt,name=Id,proto3" json:"Id,omitempty"` - UserId int64 `protobuf:"varint,2,opt,name=UserId,proto3" json:"UserId,omitempty"` - AuthType AuthType `protobuf:"varint,3,opt,name=AuthType,proto3,enum=pb.AuthType" json:"AuthType,omitempty"` - AuthKey string `protobuf:"bytes,4,opt,name=AuthKey,proto3" json:"AuthKey,omitempty"` -} - -func (x *UserAuth) Reset() { - *x = UserAuth{} - if protoimpl.UnsafeEnabled { - mi := &file_usercenter_proto_msgTypes[1] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *UserAuth) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*UserAuth) ProtoMessage() {} - -func (x *UserAuth) ProtoReflect() protoreflect.Message { - mi := &file_usercenter_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 UserAuth.ProtoReflect.Descriptor instead. -func (*UserAuth) Descriptor() ([]byte, []int) { - return file_usercenter_proto_rawDescGZIP(), []int{1} -} - -func (x *UserAuth) GetId() string { - if x != nil { - return x.Id - } - return "" -} - -func (x *UserAuth) GetUserId() int64 { - if x != nil { - return x.UserId - } - return 0 -} - -func (x *UserAuth) GetAuthType() AuthType { - if x != nil { - return x.AuthType - } - return AuthType_UnKnownType -} - -func (x *UserAuth) GetAuthKey() string { - if x != nil { - return x.AuthKey - } - return "" -} - -type SendEmailReq struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - Email string `protobuf:"bytes,1,opt,name=Email,proto3" json:"Email,omitempty"` -} - -func (x *SendEmailReq) Reset() { - *x = SendEmailReq{} - if protoimpl.UnsafeEnabled { - mi := &file_usercenter_proto_msgTypes[2] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *SendEmailReq) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*SendEmailReq) ProtoMessage() {} - -func (x *SendEmailReq) ProtoReflect() protoreflect.Message { - mi := &file_usercenter_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 SendEmailReq.ProtoReflect.Descriptor instead. -func (*SendEmailReq) Descriptor() ([]byte, []int) { - return file_usercenter_proto_rawDescGZIP(), []int{2} -} - -func (x *SendEmailReq) GetEmail() string { - if x != nil { - return x.Email - } - return "" -} - -type SendEmailResp struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields -} - -func (x *SendEmailResp) Reset() { - *x = SendEmailResp{} - if protoimpl.UnsafeEnabled { - mi := &file_usercenter_proto_msgTypes[3] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *SendEmailResp) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*SendEmailResp) ProtoMessage() {} - -func (x *SendEmailResp) ProtoReflect() protoreflect.Message { - mi := &file_usercenter_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 SendEmailResp.ProtoReflect.Descriptor instead. -func (*SendEmailResp) Descriptor() ([]byte, []int) { - return file_usercenter_proto_rawDescGZIP(), []int{3} -} - -type SendEmailCodeReq struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - Email string `protobuf:"bytes,1,opt,name=Email,proto3" json:"Email,omitempty"` - Subject string `protobuf:"bytes,2,opt,name=Subject,proto3" json:"Subject,omitempty"` -} - -func (x *SendEmailCodeReq) Reset() { - *x = SendEmailCodeReq{} - if protoimpl.UnsafeEnabled { - mi := &file_usercenter_proto_msgTypes[4] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *SendEmailCodeReq) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*SendEmailCodeReq) ProtoMessage() {} - -func (x *SendEmailCodeReq) ProtoReflect() protoreflect.Message { - mi := &file_usercenter_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 SendEmailCodeReq.ProtoReflect.Descriptor instead. -func (*SendEmailCodeReq) Descriptor() ([]byte, []int) { - return file_usercenter_proto_rawDescGZIP(), []int{4} -} - -func (x *SendEmailCodeReq) GetEmail() string { - if x != nil { - return x.Email - } - return "" -} - -func (x *SendEmailCodeReq) GetSubject() string { - if x != nil { - return x.Subject - } - return "" -} - -type SendEmailCodeResp struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields -} - -func (x *SendEmailCodeResp) Reset() { - *x = SendEmailCodeResp{} - if protoimpl.UnsafeEnabled { - mi := &file_usercenter_proto_msgTypes[5] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *SendEmailCodeResp) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*SendEmailCodeResp) ProtoMessage() {} - -func (x *SendEmailCodeResp) ProtoReflect() protoreflect.Message { - mi := &file_usercenter_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 SendEmailCodeResp.ProtoReflect.Descriptor instead. -func (*SendEmailCodeResp) Descriptor() ([]byte, []int) { - return file_usercenter_proto_rawDescGZIP(), []int{5} -} - -type AddUserRemainderReq struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - UserId string `protobuf:"bytes,1,opt,name=UserId,proto3" json:"UserId,omitempty"` - Num int64 `protobuf:"varint,2,opt,name=Num,proto3" json:"Num,omitempty"` - Type int64 `protobuf:"varint,3,opt,name=Type,proto3" json:"Type,omitempty"` -} - -func (x *AddUserRemainderReq) Reset() { - *x = AddUserRemainderReq{} - if protoimpl.UnsafeEnabled { - mi := &file_usercenter_proto_msgTypes[6] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *AddUserRemainderReq) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*AddUserRemainderReq) ProtoMessage() {} - -func (x *AddUserRemainderReq) ProtoReflect() protoreflect.Message { - mi := &file_usercenter_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 AddUserRemainderReq.ProtoReflect.Descriptor instead. -func (*AddUserRemainderReq) Descriptor() ([]byte, []int) { - return file_usercenter_proto_rawDescGZIP(), []int{6} -} - -func (x *AddUserRemainderReq) GetUserId() string { - if x != nil { - return x.UserId - } - return "" -} - -func (x *AddUserRemainderReq) GetNum() int64 { - if x != nil { - return x.Num - } - return 0 -} - -func (x *AddUserRemainderReq) GetType() int64 { - if x != nil { - return x.Type - } - return 0 -} - -type AddUserRemainderResp struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields -} - -func (x *AddUserRemainderResp) Reset() { - *x = AddUserRemainderResp{} - if protoimpl.UnsafeEnabled { - mi := &file_usercenter_proto_msgTypes[7] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *AddUserRemainderResp) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*AddUserRemainderResp) ProtoMessage() {} - -func (x *AddUserRemainderResp) ProtoReflect() protoreflect.Message { - mi := &file_usercenter_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 AddUserRemainderResp.ProtoReflect.Descriptor instead. -func (*AddUserRemainderResp) Descriptor() ([]byte, []int) { - return file_usercenter_proto_rawDescGZIP(), []int{7} -} - -type UpdateUserInfoReq struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - Email string `protobuf:"bytes,1,opt,name=Email,proto3" json:"Email,omitempty"` - Name string `protobuf:"bytes,2,opt,name=Name,proto3" json:"Name,omitempty"` - Sex Sex `protobuf:"varint,3,opt,name=Sex,proto3,enum=pb.Sex" json:"Sex,omitempty"` - FullName string `protobuf:"bytes,4,opt,name=FullName,proto3" json:"FullName,omitempty"` - IdCard string `protobuf:"bytes,5,opt,name=IdCard,proto3" json:"IdCard,omitempty"` - Description string `protobuf:"bytes,6,opt,name=Description,proto3" json:"Description,omitempty"` - Url string `protobuf:"bytes,7,opt,name=Url,proto3" json:"Url,omitempty"` - PassWord string `protobuf:"bytes,8,opt,name=PassWord,proto3" json:"PassWord,omitempty"` - UserId string `protobuf:"bytes,9,opt,name=UserId,proto3" json:"UserId,omitempty"` -} - -func (x *UpdateUserInfoReq) Reset() { - *x = UpdateUserInfoReq{} - if protoimpl.UnsafeEnabled { - mi := &file_usercenter_proto_msgTypes[8] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *UpdateUserInfoReq) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*UpdateUserInfoReq) ProtoMessage() {} - -func (x *UpdateUserInfoReq) ProtoReflect() protoreflect.Message { - mi := &file_usercenter_proto_msgTypes[8] - 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 UpdateUserInfoReq.ProtoReflect.Descriptor instead. -func (*UpdateUserInfoReq) Descriptor() ([]byte, []int) { - return file_usercenter_proto_rawDescGZIP(), []int{8} -} - -func (x *UpdateUserInfoReq) GetEmail() string { - if x != nil { - return x.Email - } - return "" -} - -func (x *UpdateUserInfoReq) GetName() string { - if x != nil { - return x.Name - } - return "" -} - -func (x *UpdateUserInfoReq) GetSex() Sex { - if x != nil { - return x.Sex - } - return Sex_UnKnownSex -} - -func (x *UpdateUserInfoReq) GetFullName() string { - if x != nil { - return x.FullName - } - return "" -} - -func (x *UpdateUserInfoReq) GetIdCard() string { - if x != nil { - return x.IdCard - } - return "" -} - -func (x *UpdateUserInfoReq) GetDescription() string { - if x != nil { - return x.Description - } - return "" -} - -func (x *UpdateUserInfoReq) GetUrl() string { - if x != nil { - return x.Url - } - return "" -} - -func (x *UpdateUserInfoReq) GetPassWord() string { - if x != nil { - return x.PassWord - } - return "" -} - -func (x *UpdateUserInfoReq) GetUserId() string { - if x != nil { - return x.UserId - } - return "" -} - -type UpdateUserInfoResp struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields -} - -func (x *UpdateUserInfoResp) Reset() { - *x = UpdateUserInfoResp{} - if protoimpl.UnsafeEnabled { - mi := &file_usercenter_proto_msgTypes[9] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *UpdateUserInfoResp) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*UpdateUserInfoResp) ProtoMessage() {} - -func (x *UpdateUserInfoResp) ProtoReflect() protoreflect.Message { - mi := &file_usercenter_proto_msgTypes[9] - 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 UpdateUserInfoResp.ProtoReflect.Descriptor instead. -func (*UpdateUserInfoResp) Descriptor() ([]byte, []int) { - return file_usercenter_proto_rawDescGZIP(), []int{9} -} - -type FindUserByUserIdListReq struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - UserIdList []string `protobuf:"bytes,1,rep,name=UserIdList,proto3" json:"UserIdList,omitempty"` -} - -func (x *FindUserByUserIdListReq) Reset() { - *x = FindUserByUserIdListReq{} - if protoimpl.UnsafeEnabled { - mi := &file_usercenter_proto_msgTypes[10] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *FindUserByUserIdListReq) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*FindUserByUserIdListReq) ProtoMessage() {} - -func (x *FindUserByUserIdListReq) ProtoReflect() protoreflect.Message { - mi := &file_usercenter_proto_msgTypes[10] - 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 FindUserByUserIdListReq.ProtoReflect.Descriptor instead. -func (*FindUserByUserIdListReq) Descriptor() ([]byte, []int) { - return file_usercenter_proto_rawDescGZIP(), []int{10} -} - -func (x *FindUserByUserIdListReq) GetUserIdList() []string { - if x != nil { - return x.UserIdList - } - return nil -} - -type FindUserByUserIdListResp struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - UserList []*User `protobuf:"bytes,1,rep,name=UserList,proto3" json:"UserList,omitempty"` -} - -func (x *FindUserByUserIdListResp) Reset() { - *x = FindUserByUserIdListResp{} - if protoimpl.UnsafeEnabled { - mi := &file_usercenter_proto_msgTypes[11] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *FindUserByUserIdListResp) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*FindUserByUserIdListResp) ProtoMessage() {} - -func (x *FindUserByUserIdListResp) ProtoReflect() protoreflect.Message { - mi := &file_usercenter_proto_msgTypes[11] - 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 FindUserByUserIdListResp.ProtoReflect.Descriptor instead. -func (*FindUserByUserIdListResp) Descriptor() ([]byte, []int) { - return file_usercenter_proto_rawDescGZIP(), []int{11} -} - -func (x *FindUserByUserIdListResp) GetUserList() []*User { - if x != nil { - return x.UserList - } - return nil -} - -var File_usercenter_proto protoreflect.FileDescriptor - -var file_usercenter_proto_rawDesc = []byte{ - 0x0a, 0x10, 0x75, 0x73, 0x65, 0x72, 0x63, 0x65, 0x6e, 0x74, 0x65, 0x72, 0x2e, 0x70, 0x72, 0x6f, - 0x74, 0x6f, 0x12, 0x02, 0x70, 0x62, 0x22, 0xc9, 0x02, 0x0a, 0x04, 0x55, 0x73, 0x65, 0x72, 0x12, - 0x14, 0x0a, 0x05, 0x45, 0x6d, 0x61, 0x69, 0x6c, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, - 0x45, 0x6d, 0x61, 0x69, 0x6c, 0x12, 0x12, 0x0a, 0x04, 0x4e, 0x61, 0x6d, 0x65, 0x18, 0x02, 0x20, - 0x01, 0x28, 0x09, 0x52, 0x04, 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x19, 0x0a, 0x03, 0x53, 0x65, 0x78, - 0x18, 0x03, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x07, 0x2e, 0x70, 0x62, 0x2e, 0x53, 0x65, 0x78, 0x52, - 0x03, 0x53, 0x65, 0x78, 0x12, 0x1a, 0x0a, 0x08, 0x46, 0x75, 0x6c, 0x6c, 0x4e, 0x61, 0x6d, 0x65, - 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x46, 0x75, 0x6c, 0x6c, 0x4e, 0x61, 0x6d, 0x65, - 0x12, 0x16, 0x0a, 0x06, 0x49, 0x64, 0x43, 0x61, 0x72, 0x64, 0x18, 0x05, 0x20, 0x01, 0x28, 0x09, - 0x52, 0x06, 0x49, 0x64, 0x43, 0x61, 0x72, 0x64, 0x12, 0x1c, 0x0a, 0x09, 0x43, 0x72, 0x65, 0x61, - 0x74, 0x65, 0x64, 0x41, 0x74, 0x18, 0x06, 0x20, 0x01, 0x28, 0x03, 0x52, 0x09, 0x43, 0x72, 0x65, - 0x61, 0x74, 0x65, 0x64, 0x41, 0x74, 0x12, 0x1c, 0x0a, 0x09, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, - 0x64, 0x41, 0x74, 0x18, 0x07, 0x20, 0x01, 0x28, 0x03, 0x52, 0x09, 0x55, 0x70, 0x64, 0x61, 0x74, - 0x65, 0x64, 0x41, 0x74, 0x12, 0x14, 0x0a, 0x05, 0x4d, 0x6f, 0x6e, 0x65, 0x79, 0x18, 0x08, 0x20, - 0x01, 0x28, 0x03, 0x52, 0x05, 0x4d, 0x6f, 0x6e, 0x65, 0x79, 0x12, 0x12, 0x0a, 0x04, 0x46, 0x6c, - 0x6f, 0x77, 0x18, 0x09, 0x20, 0x01, 0x28, 0x03, 0x52, 0x04, 0x46, 0x6c, 0x6f, 0x77, 0x12, 0x16, - 0x0a, 0x06, 0x4d, 0x65, 0x6d, 0x6f, 0x72, 0x79, 0x18, 0x0a, 0x20, 0x01, 0x28, 0x03, 0x52, 0x06, - 0x4d, 0x65, 0x6d, 0x6f, 0x72, 0x79, 0x12, 0x20, 0x0a, 0x0b, 0x44, 0x65, 0x73, 0x63, 0x72, 0x69, - 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x0b, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x44, 0x65, 0x73, - 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x10, 0x0a, 0x03, 0x55, 0x72, 0x6c, 0x18, - 0x0c, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x55, 0x72, 0x6c, 0x12, 0x16, 0x0a, 0x06, 0x55, 0x73, - 0x65, 0x72, 0x49, 0x64, 0x18, 0x0d, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x55, 0x73, 0x65, 0x72, - 0x49, 0x64, 0x22, 0x76, 0x0a, 0x08, 0x55, 0x73, 0x65, 0x72, 0x41, 0x75, 0x74, 0x68, 0x12, 0x0e, - 0x0a, 0x02, 0x49, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x02, 0x49, 0x64, 0x12, 0x16, - 0x0a, 0x06, 0x55, 0x73, 0x65, 0x72, 0x49, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x03, 0x52, 0x06, - 0x55, 0x73, 0x65, 0x72, 0x49, 0x64, 0x12, 0x28, 0x0a, 0x08, 0x41, 0x75, 0x74, 0x68, 0x54, 0x79, - 0x70, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x0c, 0x2e, 0x70, 0x62, 0x2e, 0x41, 0x75, - 0x74, 0x68, 0x54, 0x79, 0x70, 0x65, 0x52, 0x08, 0x41, 0x75, 0x74, 0x68, 0x54, 0x79, 0x70, 0x65, - 0x12, 0x18, 0x0a, 0x07, 0x41, 0x75, 0x74, 0x68, 0x4b, 0x65, 0x79, 0x18, 0x04, 0x20, 0x01, 0x28, - 0x09, 0x52, 0x07, 0x41, 0x75, 0x74, 0x68, 0x4b, 0x65, 0x79, 0x22, 0x24, 0x0a, 0x0c, 0x53, 0x65, - 0x6e, 0x64, 0x45, 0x6d, 0x61, 0x69, 0x6c, 0x52, 0x65, 0x71, 0x12, 0x14, 0x0a, 0x05, 0x45, 0x6d, - 0x61, 0x69, 0x6c, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x45, 0x6d, 0x61, 0x69, 0x6c, - 0x22, 0x0f, 0x0a, 0x0d, 0x53, 0x65, 0x6e, 0x64, 0x45, 0x6d, 0x61, 0x69, 0x6c, 0x52, 0x65, 0x73, - 0x70, 0x22, 0x42, 0x0a, 0x10, 0x53, 0x65, 0x6e, 0x64, 0x45, 0x6d, 0x61, 0x69, 0x6c, 0x43, 0x6f, - 0x64, 0x65, 0x52, 0x65, 0x71, 0x12, 0x14, 0x0a, 0x05, 0x45, 0x6d, 0x61, 0x69, 0x6c, 0x18, 0x01, - 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x45, 0x6d, 0x61, 0x69, 0x6c, 0x12, 0x18, 0x0a, 0x07, 0x53, - 0x75, 0x62, 0x6a, 0x65, 0x63, 0x74, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x53, 0x75, - 0x62, 0x6a, 0x65, 0x63, 0x74, 0x22, 0x13, 0x0a, 0x11, 0x53, 0x65, 0x6e, 0x64, 0x45, 0x6d, 0x61, - 0x69, 0x6c, 0x43, 0x6f, 0x64, 0x65, 0x52, 0x65, 0x73, 0x70, 0x22, 0x53, 0x0a, 0x13, 0x41, 0x64, - 0x64, 0x55, 0x73, 0x65, 0x72, 0x52, 0x65, 0x6d, 0x61, 0x69, 0x6e, 0x64, 0x65, 0x72, 0x52, 0x65, - 0x71, 0x12, 0x16, 0x0a, 0x06, 0x55, 0x73, 0x65, 0x72, 0x49, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, - 0x09, 0x52, 0x06, 0x55, 0x73, 0x65, 0x72, 0x49, 0x64, 0x12, 0x10, 0x0a, 0x03, 0x4e, 0x75, 0x6d, - 0x18, 0x02, 0x20, 0x01, 0x28, 0x03, 0x52, 0x03, 0x4e, 0x75, 0x6d, 0x12, 0x12, 0x0a, 0x04, 0x54, - 0x79, 0x70, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x03, 0x52, 0x04, 0x54, 0x79, 0x70, 0x65, 0x22, - 0x16, 0x0a, 0x14, 0x41, 0x64, 0x64, 0x55, 0x73, 0x65, 0x72, 0x52, 0x65, 0x6d, 0x61, 0x69, 0x6e, - 0x64, 0x65, 0x72, 0x52, 0x65, 0x73, 0x70, 0x22, 0xf4, 0x01, 0x0a, 0x11, 0x55, 0x70, 0x64, 0x61, - 0x74, 0x65, 0x55, 0x73, 0x65, 0x72, 0x49, 0x6e, 0x66, 0x6f, 0x52, 0x65, 0x71, 0x12, 0x14, 0x0a, - 0x05, 0x45, 0x6d, 0x61, 0x69, 0x6c, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x45, 0x6d, - 0x61, 0x69, 0x6c, 0x12, 0x12, 0x0a, 0x04, 0x4e, 0x61, 0x6d, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, - 0x09, 0x52, 0x04, 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x19, 0x0a, 0x03, 0x53, 0x65, 0x78, 0x18, 0x03, - 0x20, 0x01, 0x28, 0x0e, 0x32, 0x07, 0x2e, 0x70, 0x62, 0x2e, 0x53, 0x65, 0x78, 0x52, 0x03, 0x53, - 0x65, 0x78, 0x12, 0x1a, 0x0a, 0x08, 0x46, 0x75, 0x6c, 0x6c, 0x4e, 0x61, 0x6d, 0x65, 0x18, 0x04, - 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x46, 0x75, 0x6c, 0x6c, 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x16, - 0x0a, 0x06, 0x49, 0x64, 0x43, 0x61, 0x72, 0x64, 0x18, 0x05, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, - 0x49, 0x64, 0x43, 0x61, 0x72, 0x64, 0x12, 0x20, 0x0a, 0x0b, 0x44, 0x65, 0x73, 0x63, 0x72, 0x69, - 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x06, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x44, 0x65, 0x73, - 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x10, 0x0a, 0x03, 0x55, 0x72, 0x6c, 0x18, - 0x07, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x55, 0x72, 0x6c, 0x12, 0x1a, 0x0a, 0x08, 0x50, 0x61, - 0x73, 0x73, 0x57, 0x6f, 0x72, 0x64, 0x18, 0x08, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x50, 0x61, - 0x73, 0x73, 0x57, 0x6f, 0x72, 0x64, 0x12, 0x16, 0x0a, 0x06, 0x55, 0x73, 0x65, 0x72, 0x49, 0x64, - 0x18, 0x09, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x55, 0x73, 0x65, 0x72, 0x49, 0x64, 0x22, 0x14, - 0x0a, 0x12, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x55, 0x73, 0x65, 0x72, 0x49, 0x6e, 0x66, 0x6f, - 0x52, 0x65, 0x73, 0x70, 0x22, 0x39, 0x0a, 0x17, 0x46, 0x69, 0x6e, 0x64, 0x55, 0x73, 0x65, 0x72, - 0x42, 0x79, 0x55, 0x73, 0x65, 0x72, 0x49, 0x64, 0x4c, 0x69, 0x73, 0x74, 0x52, 0x65, 0x71, 0x12, - 0x1e, 0x0a, 0x0a, 0x55, 0x73, 0x65, 0x72, 0x49, 0x64, 0x4c, 0x69, 0x73, 0x74, 0x18, 0x01, 0x20, - 0x03, 0x28, 0x09, 0x52, 0x0a, 0x55, 0x73, 0x65, 0x72, 0x49, 0x64, 0x4c, 0x69, 0x73, 0x74, 0x22, - 0x40, 0x0a, 0x18, 0x46, 0x69, 0x6e, 0x64, 0x55, 0x73, 0x65, 0x72, 0x42, 0x79, 0x55, 0x73, 0x65, - 0x72, 0x49, 0x64, 0x4c, 0x69, 0x73, 0x74, 0x52, 0x65, 0x73, 0x70, 0x12, 0x24, 0x0a, 0x08, 0x55, - 0x73, 0x65, 0x72, 0x4c, 0x69, 0x73, 0x74, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x08, 0x2e, - 0x70, 0x62, 0x2e, 0x55, 0x73, 0x65, 0x72, 0x52, 0x08, 0x55, 0x73, 0x65, 0x72, 0x4c, 0x69, 0x73, - 0x74, 0x2a, 0x29, 0x0a, 0x03, 0x53, 0x65, 0x78, 0x12, 0x0e, 0x0a, 0x0a, 0x55, 0x6e, 0x4b, 0x6e, - 0x6f, 0x77, 0x6e, 0x53, 0x65, 0x78, 0x10, 0x00, 0x12, 0x07, 0x0a, 0x03, 0x4d, 0x61, 0x6e, 0x10, - 0x01, 0x12, 0x09, 0x0a, 0x05, 0x57, 0x6f, 0x4d, 0x65, 0x6e, 0x10, 0x02, 0x2a, 0xb4, 0x01, 0x0a, - 0x08, 0x41, 0x75, 0x74, 0x68, 0x54, 0x79, 0x70, 0x65, 0x12, 0x0f, 0x0a, 0x0b, 0x55, 0x6e, 0x4b, - 0x6e, 0x6f, 0x77, 0x6e, 0x54, 0x79, 0x70, 0x65, 0x10, 0x00, 0x12, 0x09, 0x0a, 0x05, 0x45, 0x6d, - 0x61, 0x69, 0x6c, 0x10, 0x01, 0x12, 0x09, 0x0a, 0x05, 0x50, 0x68, 0x6f, 0x6e, 0x65, 0x10, 0x02, - 0x12, 0x0a, 0x0a, 0x06, 0x57, 0x65, 0x43, 0x68, 0x61, 0x74, 0x10, 0x03, 0x12, 0x06, 0x0a, 0x02, - 0x51, 0x51, 0x10, 0x04, 0x12, 0x09, 0x0a, 0x05, 0x57, 0x65, 0x69, 0x42, 0x6f, 0x10, 0x05, 0x12, - 0x0a, 0x0a, 0x06, 0x47, 0x69, 0x74, 0x48, 0x75, 0x62, 0x10, 0x06, 0x12, 0x0a, 0x0a, 0x06, 0x47, - 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x10, 0x07, 0x12, 0x0c, 0x0a, 0x08, 0x46, 0x61, 0x63, 0x65, 0x42, - 0x6f, 0x6f, 0x6b, 0x10, 0x08, 0x12, 0x0b, 0x0a, 0x07, 0x54, 0x77, 0x69, 0x74, 0x74, 0x65, 0x72, - 0x10, 0x09, 0x12, 0x0c, 0x0a, 0x08, 0x44, 0x69, 0x6e, 0x67, 0x54, 0x61, 0x6c, 0x6b, 0x10, 0x0a, - 0x12, 0x0a, 0x0a, 0x06, 0x57, 0x65, 0x69, 0x58, 0x69, 0x6e, 0x10, 0x0b, 0x12, 0x0a, 0x0a, 0x06, - 0x41, 0x6c, 0x69, 0x50, 0x61, 0x79, 0x10, 0x0c, 0x12, 0x09, 0x0a, 0x05, 0x41, 0x70, 0x70, 0x6c, - 0x65, 0x10, 0x0d, 0x32, 0xcb, 0x03, 0x0a, 0x0a, 0x75, 0x73, 0x65, 0x72, 0x63, 0x65, 0x6e, 0x74, - 0x65, 0x72, 0x12, 0x45, 0x0a, 0x10, 0x41, 0x64, 0x64, 0x55, 0x73, 0x65, 0x72, 0x52, 0x65, 0x6d, - 0x61, 0x69, 0x6e, 0x64, 0x65, 0x72, 0x12, 0x17, 0x2e, 0x70, 0x62, 0x2e, 0x41, 0x64, 0x64, 0x55, - 0x73, 0x65, 0x72, 0x52, 0x65, 0x6d, 0x61, 0x69, 0x6e, 0x64, 0x65, 0x72, 0x52, 0x65, 0x71, 0x1a, - 0x18, 0x2e, 0x70, 0x62, 0x2e, 0x41, 0x64, 0x64, 0x55, 0x73, 0x65, 0x72, 0x52, 0x65, 0x6d, 0x61, - 0x69, 0x6e, 0x64, 0x65, 0x72, 0x52, 0x65, 0x73, 0x70, 0x12, 0x4d, 0x0a, 0x18, 0x41, 0x64, 0x64, - 0x55, 0x73, 0x65, 0x72, 0x52, 0x65, 0x6d, 0x61, 0x69, 0x6e, 0x64, 0x65, 0x72, 0x52, 0x6f, 0x6c, - 0x6c, 0x42, 0x61, 0x63, 0x6b, 0x12, 0x17, 0x2e, 0x70, 0x62, 0x2e, 0x41, 0x64, 0x64, 0x55, 0x73, - 0x65, 0x72, 0x52, 0x65, 0x6d, 0x61, 0x69, 0x6e, 0x64, 0x65, 0x72, 0x52, 0x65, 0x71, 0x1a, 0x18, - 0x2e, 0x70, 0x62, 0x2e, 0x41, 0x64, 0x64, 0x55, 0x73, 0x65, 0x72, 0x52, 0x65, 0x6d, 0x61, 0x69, - 0x6e, 0x64, 0x65, 0x72, 0x52, 0x65, 0x73, 0x70, 0x12, 0x51, 0x0a, 0x14, 0x46, 0x69, 0x6e, 0x64, - 0x55, 0x73, 0x65, 0x72, 0x42, 0x79, 0x55, 0x73, 0x65, 0x72, 0x49, 0x64, 0x4c, 0x69, 0x73, 0x74, - 0x12, 0x1b, 0x2e, 0x70, 0x62, 0x2e, 0x46, 0x69, 0x6e, 0x64, 0x55, 0x73, 0x65, 0x72, 0x42, 0x79, - 0x55, 0x73, 0x65, 0x72, 0x49, 0x64, 0x4c, 0x69, 0x73, 0x74, 0x52, 0x65, 0x71, 0x1a, 0x1c, 0x2e, - 0x70, 0x62, 0x2e, 0x46, 0x69, 0x6e, 0x64, 0x55, 0x73, 0x65, 0x72, 0x42, 0x79, 0x55, 0x73, 0x65, - 0x72, 0x49, 0x64, 0x4c, 0x69, 0x73, 0x74, 0x52, 0x65, 0x73, 0x70, 0x12, 0x3c, 0x0a, 0x0d, 0x53, - 0x65, 0x6e, 0x64, 0x45, 0x6d, 0x61, 0x69, 0x6c, 0x43, 0x6f, 0x64, 0x65, 0x12, 0x14, 0x2e, 0x70, - 0x62, 0x2e, 0x53, 0x65, 0x6e, 0x64, 0x45, 0x6d, 0x61, 0x69, 0x6c, 0x43, 0x6f, 0x64, 0x65, 0x52, - 0x65, 0x71, 0x1a, 0x15, 0x2e, 0x70, 0x62, 0x2e, 0x53, 0x65, 0x6e, 0x64, 0x45, 0x6d, 0x61, 0x69, - 0x6c, 0x43, 0x6f, 0x64, 0x65, 0x52, 0x65, 0x73, 0x70, 0x12, 0x3f, 0x0a, 0x0e, 0x55, 0x70, 0x64, - 0x61, 0x74, 0x65, 0x55, 0x73, 0x65, 0x72, 0x49, 0x6e, 0x66, 0x6f, 0x12, 0x15, 0x2e, 0x70, 0x62, - 0x2e, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x55, 0x73, 0x65, 0x72, 0x49, 0x6e, 0x66, 0x6f, 0x52, - 0x65, 0x71, 0x1a, 0x16, 0x2e, 0x70, 0x62, 0x2e, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x55, 0x73, - 0x65, 0x72, 0x49, 0x6e, 0x66, 0x6f, 0x52, 0x65, 0x73, 0x70, 0x12, 0x55, 0x0a, 0x18, 0x46, 0x69, - 0x6e, 0x64, 0x55, 0x73, 0x65, 0x72, 0x49, 0x6e, 0x66, 0x6f, 0x42, 0x79, 0x55, 0x73, 0x65, 0x72, - 0x49, 0x64, 0x4c, 0x69, 0x73, 0x74, 0x12, 0x1b, 0x2e, 0x70, 0x62, 0x2e, 0x46, 0x69, 0x6e, 0x64, - 0x55, 0x73, 0x65, 0x72, 0x42, 0x79, 0x55, 0x73, 0x65, 0x72, 0x49, 0x64, 0x4c, 0x69, 0x73, 0x74, - 0x52, 0x65, 0x71, 0x1a, 0x1c, 0x2e, 0x70, 0x62, 0x2e, 0x46, 0x69, 0x6e, 0x64, 0x55, 0x73, 0x65, - 0x72, 0x42, 0x79, 0x55, 0x73, 0x65, 0x72, 0x49, 0x64, 0x4c, 0x69, 0x73, 0x74, 0x52, 0x65, 0x73, - 0x70, 0x42, 0x06, 0x5a, 0x04, 0x2e, 0x2f, 0x70, 0x62, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, - 0x33, -} - -var ( - file_usercenter_proto_rawDescOnce sync.Once - file_usercenter_proto_rawDescData = file_usercenter_proto_rawDesc -) - -func file_usercenter_proto_rawDescGZIP() []byte { - file_usercenter_proto_rawDescOnce.Do(func() { - file_usercenter_proto_rawDescData = protoimpl.X.CompressGZIP(file_usercenter_proto_rawDescData) - }) - return file_usercenter_proto_rawDescData -} - -var file_usercenter_proto_enumTypes = make([]protoimpl.EnumInfo, 2) -var file_usercenter_proto_msgTypes = make([]protoimpl.MessageInfo, 12) -var file_usercenter_proto_goTypes = []interface{}{ - (Sex)(0), // 0: pb.Sex - (AuthType)(0), // 1: pb.AuthType - (*User)(nil), // 2: pb.User - (*UserAuth)(nil), // 3: pb.UserAuth - (*SendEmailReq)(nil), // 4: pb.SendEmailReq - (*SendEmailResp)(nil), // 5: pb.SendEmailResp - (*SendEmailCodeReq)(nil), // 6: pb.SendEmailCodeReq - (*SendEmailCodeResp)(nil), // 7: pb.SendEmailCodeResp - (*AddUserRemainderReq)(nil), // 8: pb.AddUserRemainderReq - (*AddUserRemainderResp)(nil), // 9: pb.AddUserRemainderResp - (*UpdateUserInfoReq)(nil), // 10: pb.UpdateUserInfoReq - (*UpdateUserInfoResp)(nil), // 11: pb.UpdateUserInfoResp - (*FindUserByUserIdListReq)(nil), // 12: pb.FindUserByUserIdListReq - (*FindUserByUserIdListResp)(nil), // 13: pb.FindUserByUserIdListResp -} -var file_usercenter_proto_depIdxs = []int32{ - 0, // 0: pb.User.Sex:type_name -> pb.Sex - 1, // 1: pb.UserAuth.AuthType:type_name -> pb.AuthType - 0, // 2: pb.UpdateUserInfoReq.Sex:type_name -> pb.Sex - 2, // 3: pb.FindUserByUserIdListResp.UserList:type_name -> pb.User - 8, // 4: pb.usercenter.AddUserRemainder:input_type -> pb.AddUserRemainderReq - 8, // 5: pb.usercenter.AddUserRemainderRollBack:input_type -> pb.AddUserRemainderReq - 12, // 6: pb.usercenter.FindUserByUserIdList:input_type -> pb.FindUserByUserIdListReq - 6, // 7: pb.usercenter.SendEmailCode:input_type -> pb.SendEmailCodeReq - 10, // 8: pb.usercenter.UpdateUserInfo:input_type -> pb.UpdateUserInfoReq - 12, // 9: pb.usercenter.FindUserInfoByUserIdList:input_type -> pb.FindUserByUserIdListReq - 9, // 10: pb.usercenter.AddUserRemainder:output_type -> pb.AddUserRemainderResp - 9, // 11: pb.usercenter.AddUserRemainderRollBack:output_type -> pb.AddUserRemainderResp - 13, // 12: pb.usercenter.FindUserByUserIdList:output_type -> pb.FindUserByUserIdListResp - 7, // 13: pb.usercenter.SendEmailCode:output_type -> pb.SendEmailCodeResp - 11, // 14: pb.usercenter.UpdateUserInfo:output_type -> pb.UpdateUserInfoResp - 13, // 15: pb.usercenter.FindUserInfoByUserIdList:output_type -> pb.FindUserByUserIdListResp - 10, // [10:16] is the sub-list for method output_type - 4, // [4:10] is the sub-list for method input_type - 4, // [4:4] is the sub-list for extension type_name - 4, // [4:4] is the sub-list for extension extendee - 0, // [0:4] is the sub-list for field type_name -} - -func init() { file_usercenter_proto_init() } -func file_usercenter_proto_init() { - if File_usercenter_proto != nil { - return - } - if !protoimpl.UnsafeEnabled { - file_usercenter_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*User); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_usercenter_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*UserAuth); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_usercenter_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*SendEmailReq); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_usercenter_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*SendEmailResp); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_usercenter_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*SendEmailCodeReq); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_usercenter_proto_msgTypes[5].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*SendEmailCodeResp); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_usercenter_proto_msgTypes[6].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*AddUserRemainderReq); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_usercenter_proto_msgTypes[7].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*AddUserRemainderResp); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_usercenter_proto_msgTypes[8].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*UpdateUserInfoReq); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_usercenter_proto_msgTypes[9].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*UpdateUserInfoResp); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_usercenter_proto_msgTypes[10].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*FindUserByUserIdListReq); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_usercenter_proto_msgTypes[11].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*FindUserByUserIdListResp); 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_usercenter_proto_rawDesc, - NumEnums: 2, - NumMessages: 12, - NumExtensions: 0, - NumServices: 1, - }, - GoTypes: file_usercenter_proto_goTypes, - DependencyIndexes: file_usercenter_proto_depIdxs, - EnumInfos: file_usercenter_proto_enumTypes, - MessageInfos: file_usercenter_proto_msgTypes, - }.Build() - File_usercenter_proto = out.File - file_usercenter_proto_rawDesc = nil - file_usercenter_proto_goTypes = nil - file_usercenter_proto_depIdxs = nil -} diff --git a/go-zero-gen/usercenter/pb/usercenter_grpc.pb.go b/go-zero-gen/usercenter/pb/usercenter_grpc.pb.go deleted file mode 100644 index ca1b331..0000000 --- a/go-zero-gen/usercenter/pb/usercenter_grpc.pb.go +++ /dev/null @@ -1,294 +0,0 @@ -// Code generated by protoc-gen-go-grpc. DO NOT EDIT. -// versions: -// - protoc-gen-go-grpc v1.3.0 -// - protoc v3.19.4 -// source: usercenter.proto - -package pb - -import ( - context "context" - grpc "google.golang.org/grpc" - codes "google.golang.org/grpc/codes" - status "google.golang.org/grpc/status" -) - -// 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 - -const ( - Usercenter_AddUserRemainder_FullMethodName = "/pb.usercenter/AddUserRemainder" - Usercenter_AddUserRemainderRollBack_FullMethodName = "/pb.usercenter/AddUserRemainderRollBack" - Usercenter_FindUserByUserIdList_FullMethodName = "/pb.usercenter/FindUserByUserIdList" - Usercenter_SendEmailCode_FullMethodName = "/pb.usercenter/SendEmailCode" - Usercenter_UpdateUserInfo_FullMethodName = "/pb.usercenter/UpdateUserInfo" - Usercenter_FindUserInfoByUserIdList_FullMethodName = "/pb.usercenter/FindUserInfoByUserIdList" -) - -// UsercenterClient is the client API for Usercenter 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 UsercenterClient interface { - AddUserRemainder(ctx context.Context, in *AddUserRemainderReq, opts ...grpc.CallOption) (*AddUserRemainderResp, error) - AddUserRemainderRollBack(ctx context.Context, in *AddUserRemainderReq, opts ...grpc.CallOption) (*AddUserRemainderResp, error) - FindUserByUserIdList(ctx context.Context, in *FindUserByUserIdListReq, opts ...grpc.CallOption) (*FindUserByUserIdListResp, error) - SendEmailCode(ctx context.Context, in *SendEmailCodeReq, opts ...grpc.CallOption) (*SendEmailCodeResp, error) - UpdateUserInfo(ctx context.Context, in *UpdateUserInfoReq, opts ...grpc.CallOption) (*UpdateUserInfoResp, error) - FindUserInfoByUserIdList(ctx context.Context, in *FindUserByUserIdListReq, opts ...grpc.CallOption) (*FindUserByUserIdListResp, error) -} - -type usercenterClient struct { - cc grpc.ClientConnInterface -} - -func NewUsercenterClient(cc grpc.ClientConnInterface) UsercenterClient { - return &usercenterClient{cc} -} - -func (c *usercenterClient) AddUserRemainder(ctx context.Context, in *AddUserRemainderReq, opts ...grpc.CallOption) (*AddUserRemainderResp, error) { - out := new(AddUserRemainderResp) - err := c.cc.Invoke(ctx, Usercenter_AddUserRemainder_FullMethodName, in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *usercenterClient) AddUserRemainderRollBack(ctx context.Context, in *AddUserRemainderReq, opts ...grpc.CallOption) (*AddUserRemainderResp, error) { - out := new(AddUserRemainderResp) - err := c.cc.Invoke(ctx, Usercenter_AddUserRemainderRollBack_FullMethodName, in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *usercenterClient) FindUserByUserIdList(ctx context.Context, in *FindUserByUserIdListReq, opts ...grpc.CallOption) (*FindUserByUserIdListResp, error) { - out := new(FindUserByUserIdListResp) - err := c.cc.Invoke(ctx, Usercenter_FindUserByUserIdList_FullMethodName, in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *usercenterClient) SendEmailCode(ctx context.Context, in *SendEmailCodeReq, opts ...grpc.CallOption) (*SendEmailCodeResp, error) { - out := new(SendEmailCodeResp) - err := c.cc.Invoke(ctx, Usercenter_SendEmailCode_FullMethodName, in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *usercenterClient) UpdateUserInfo(ctx context.Context, in *UpdateUserInfoReq, opts ...grpc.CallOption) (*UpdateUserInfoResp, error) { - out := new(UpdateUserInfoResp) - err := c.cc.Invoke(ctx, Usercenter_UpdateUserInfo_FullMethodName, in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *usercenterClient) FindUserInfoByUserIdList(ctx context.Context, in *FindUserByUserIdListReq, opts ...grpc.CallOption) (*FindUserByUserIdListResp, error) { - out := new(FindUserByUserIdListResp) - err := c.cc.Invoke(ctx, Usercenter_FindUserInfoByUserIdList_FullMethodName, in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -// UsercenterServer is the server API for Usercenter service. -// All implementations must embed UnimplementedUsercenterServer -// for forward compatibility -type UsercenterServer interface { - AddUserRemainder(context.Context, *AddUserRemainderReq) (*AddUserRemainderResp, error) - AddUserRemainderRollBack(context.Context, *AddUserRemainderReq) (*AddUserRemainderResp, error) - FindUserByUserIdList(context.Context, *FindUserByUserIdListReq) (*FindUserByUserIdListResp, error) - SendEmailCode(context.Context, *SendEmailCodeReq) (*SendEmailCodeResp, error) - UpdateUserInfo(context.Context, *UpdateUserInfoReq) (*UpdateUserInfoResp, error) - FindUserInfoByUserIdList(context.Context, *FindUserByUserIdListReq) (*FindUserByUserIdListResp, error) - mustEmbedUnimplementedUsercenterServer() -} - -// UnimplementedUsercenterServer must be embedded to have forward compatible implementations. -type UnimplementedUsercenterServer struct { -} - -func (UnimplementedUsercenterServer) AddUserRemainder(context.Context, *AddUserRemainderReq) (*AddUserRemainderResp, error) { - return nil, status.Errorf(codes.Unimplemented, "method AddUserRemainder not implemented") -} -func (UnimplementedUsercenterServer) AddUserRemainderRollBack(context.Context, *AddUserRemainderReq) (*AddUserRemainderResp, error) { - return nil, status.Errorf(codes.Unimplemented, "method AddUserRemainderRollBack not implemented") -} -func (UnimplementedUsercenterServer) FindUserByUserIdList(context.Context, *FindUserByUserIdListReq) (*FindUserByUserIdListResp, error) { - return nil, status.Errorf(codes.Unimplemented, "method FindUserByUserIdList not implemented") -} -func (UnimplementedUsercenterServer) SendEmailCode(context.Context, *SendEmailCodeReq) (*SendEmailCodeResp, error) { - return nil, status.Errorf(codes.Unimplemented, "method SendEmailCode not implemented") -} -func (UnimplementedUsercenterServer) UpdateUserInfo(context.Context, *UpdateUserInfoReq) (*UpdateUserInfoResp, error) { - return nil, status.Errorf(codes.Unimplemented, "method UpdateUserInfo not implemented") -} -func (UnimplementedUsercenterServer) FindUserInfoByUserIdList(context.Context, *FindUserByUserIdListReq) (*FindUserByUserIdListResp, error) { - return nil, status.Errorf(codes.Unimplemented, "method FindUserInfoByUserIdList not implemented") -} -func (UnimplementedUsercenterServer) mustEmbedUnimplementedUsercenterServer() {} - -// UnsafeUsercenterServer may be embedded to opt out of forward compatibility for this service. -// Use of this interface is not recommended, as added methods to UsercenterServer will -// result in compilation errors. -type UnsafeUsercenterServer interface { - mustEmbedUnimplementedUsercenterServer() -} - -func RegisterUsercenterServer(s grpc.ServiceRegistrar, srv UsercenterServer) { - s.RegisterService(&Usercenter_ServiceDesc, srv) -} - -func _Usercenter_AddUserRemainder_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(AddUserRemainderReq) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(UsercenterServer).AddUserRemainder(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: Usercenter_AddUserRemainder_FullMethodName, - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(UsercenterServer).AddUserRemainder(ctx, req.(*AddUserRemainderReq)) - } - return interceptor(ctx, in, info, handler) -} - -func _Usercenter_AddUserRemainderRollBack_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(AddUserRemainderReq) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(UsercenterServer).AddUserRemainderRollBack(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: Usercenter_AddUserRemainderRollBack_FullMethodName, - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(UsercenterServer).AddUserRemainderRollBack(ctx, req.(*AddUserRemainderReq)) - } - return interceptor(ctx, in, info, handler) -} - -func _Usercenter_FindUserByUserIdList_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(FindUserByUserIdListReq) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(UsercenterServer).FindUserByUserIdList(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: Usercenter_FindUserByUserIdList_FullMethodName, - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(UsercenterServer).FindUserByUserIdList(ctx, req.(*FindUserByUserIdListReq)) - } - return interceptor(ctx, in, info, handler) -} - -func _Usercenter_SendEmailCode_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(SendEmailCodeReq) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(UsercenterServer).SendEmailCode(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: Usercenter_SendEmailCode_FullMethodName, - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(UsercenterServer).SendEmailCode(ctx, req.(*SendEmailCodeReq)) - } - return interceptor(ctx, in, info, handler) -} - -func _Usercenter_UpdateUserInfo_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(UpdateUserInfoReq) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(UsercenterServer).UpdateUserInfo(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: Usercenter_UpdateUserInfo_FullMethodName, - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(UsercenterServer).UpdateUserInfo(ctx, req.(*UpdateUserInfoReq)) - } - return interceptor(ctx, in, info, handler) -} - -func _Usercenter_FindUserInfoByUserIdList_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(FindUserByUserIdListReq) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(UsercenterServer).FindUserInfoByUserIdList(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: Usercenter_FindUserInfoByUserIdList_FullMethodName, - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(UsercenterServer).FindUserInfoByUserIdList(ctx, req.(*FindUserByUserIdListReq)) - } - return interceptor(ctx, in, info, handler) -} - -// Usercenter_ServiceDesc is the grpc.ServiceDesc for Usercenter service. -// It's only intended for direct use with grpc.RegisterService, -// and not to be introspected or modified (even as a copy) -var Usercenter_ServiceDesc = grpc.ServiceDesc{ - ServiceName: "pb.usercenter", - HandlerType: (*UsercenterServer)(nil), - Methods: []grpc.MethodDesc{ - { - MethodName: "AddUserRemainder", - Handler: _Usercenter_AddUserRemainder_Handler, - }, - { - MethodName: "AddUserRemainderRollBack", - Handler: _Usercenter_AddUserRemainderRollBack_Handler, - }, - { - MethodName: "FindUserByUserIdList", - Handler: _Usercenter_FindUserByUserIdList_Handler, - }, - { - MethodName: "SendEmailCode", - Handler: _Usercenter_SendEmailCode_Handler, - }, - { - MethodName: "UpdateUserInfo", - Handler: _Usercenter_UpdateUserInfo_Handler, - }, - { - MethodName: "FindUserInfoByUserIdList", - Handler: _Usercenter_FindUserInfoByUserIdList_Handler, - }, - }, - Streams: []grpc.StreamDesc{}, - Metadata: "usercenter.proto", -} diff --git a/go-zero-gen/usercenter/usercenter/usercenter.go b/go-zero-gen/usercenter/usercenter/usercenter.go deleted file mode 100644 index 02b5431..0000000 --- a/go-zero-gen/usercenter/usercenter/usercenter.go +++ /dev/null @@ -1,77 +0,0 @@ -// Code generated by goctl. DO NOT EDIT. -// Source: usercenter.proto - -package usercenter - -import ( - "context" - - "github.com/CloudStriver/service-idl-go/go-zero-gen/usercenter/pb" - - "github.com/zeromicro/go-zero/zrpc" - "google.golang.org/grpc" -) - -type ( - AddUserRemainderReq = pb.AddUserRemainderReq - AddUserRemainderResp = pb.AddUserRemainderResp - FindUserByUserIdListReq = pb.FindUserByUserIdListReq - FindUserByUserIdListResp = pb.FindUserByUserIdListResp - SendEmailCodeReq = pb.SendEmailCodeReq - SendEmailCodeResp = pb.SendEmailCodeResp - SendEmailReq = pb.SendEmailReq - SendEmailResp = pb.SendEmailResp - UpdateUserInfoReq = pb.UpdateUserInfoReq - UpdateUserInfoResp = pb.UpdateUserInfoResp - User = pb.User - UserAuth = pb.UserAuth - - Usercenter interface { - AddUserRemainder(ctx context.Context, in *AddUserRemainderReq, opts ...grpc.CallOption) (*AddUserRemainderResp, error) - AddUserRemainderRollBack(ctx context.Context, in *AddUserRemainderReq, opts ...grpc.CallOption) (*AddUserRemainderResp, error) - FindUserByUserIdList(ctx context.Context, in *FindUserByUserIdListReq, opts ...grpc.CallOption) (*FindUserByUserIdListResp, error) - SendEmailCode(ctx context.Context, in *SendEmailCodeReq, opts ...grpc.CallOption) (*SendEmailCodeResp, error) - UpdateUserInfo(ctx context.Context, in *UpdateUserInfoReq, opts ...grpc.CallOption) (*UpdateUserInfoResp, error) - FindUserInfoByUserIdList(ctx context.Context, in *FindUserByUserIdListReq, opts ...grpc.CallOption) (*FindUserByUserIdListResp, error) - } - - defaultUsercenter struct { - cli zrpc.Client - } -) - -func NewUsercenter(cli zrpc.Client) Usercenter { - return &defaultUsercenter{ - cli: cli, - } -} - -func (m *defaultUsercenter) AddUserRemainder(ctx context.Context, in *AddUserRemainderReq, opts ...grpc.CallOption) (*AddUserRemainderResp, error) { - client := pb.NewUsercenterClient(m.cli.Conn()) - return client.AddUserRemainder(ctx, in, opts...) -} - -func (m *defaultUsercenter) AddUserRemainderRollBack(ctx context.Context, in *AddUserRemainderReq, opts ...grpc.CallOption) (*AddUserRemainderResp, error) { - client := pb.NewUsercenterClient(m.cli.Conn()) - return client.AddUserRemainderRollBack(ctx, in, opts...) -} - -func (m *defaultUsercenter) FindUserByUserIdList(ctx context.Context, in *FindUserByUserIdListReq, opts ...grpc.CallOption) (*FindUserByUserIdListResp, error) { - client := pb.NewUsercenterClient(m.cli.Conn()) - return client.FindUserByUserIdList(ctx, in, opts...) -} - -func (m *defaultUsercenter) SendEmailCode(ctx context.Context, in *SendEmailCodeReq, opts ...grpc.CallOption) (*SendEmailCodeResp, error) { - client := pb.NewUsercenterClient(m.cli.Conn()) - return client.SendEmailCode(ctx, in, opts...) -} - -func (m *defaultUsercenter) UpdateUserInfo(ctx context.Context, in *UpdateUserInfoReq, opts ...grpc.CallOption) (*UpdateUserInfoResp, error) { - client := pb.NewUsercenterClient(m.cli.Conn()) - return client.UpdateUserInfo(ctx, in, opts...) -} - -func (m *defaultUsercenter) FindUserInfoByUserIdList(ctx context.Context, in *FindUserByUserIdListReq, opts ...grpc.CallOption) (*FindUserByUserIdListResp, error) { - client := pb.NewUsercenterClient(m.cli.Conn()) - return client.FindUserInfoByUserIdList(ctx, in, opts...) -}