From c19c2f776aa45416a401cbb944af7aefa8025704 Mon Sep 17 00:00:00 2001 From: "daniel.w" Date: Thu, 22 Aug 2024 22:30:04 +0800 Subject: [PATCH] =?UTF-8?q?=E7=A7=BB=E9=99=A4=E4=B8=8D=E5=BF=85=E8=A6=81?= =?UTF-8?q?=E6=AA=94=E6=A1=88?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .idea/.gitignore | 8 - .idea/app-cloudep-member-server.iml | 9 - .idea/dataSources.xml | 12 - .idea/modules.xml | 8 - .idea/vcs.xml | 6 - client/account/account.go | 147 -- etc/service.yaml | 37 - gen_result/pb/member/service.pb.go | 2201 ----------------------- gen_result/pb/member/service_grpc.pb.go | 553 ------ 9 files changed, 2981 deletions(-) delete mode 100644 .idea/.gitignore delete mode 100644 .idea/app-cloudep-member-server.iml delete mode 100644 .idea/dataSources.xml delete mode 100644 .idea/modules.xml delete mode 100644 .idea/vcs.xml delete mode 100644 client/account/account.go delete mode 100644 etc/service.yaml delete mode 100644 gen_result/pb/member/service.pb.go delete mode 100644 gen_result/pb/member/service_grpc.pb.go diff --git a/.idea/.gitignore b/.idea/.gitignore deleted file mode 100644 index 13566b8..0000000 --- a/.idea/.gitignore +++ /dev/null @@ -1,8 +0,0 @@ -# Default ignored files -/shelf/ -/workspace.xml -# Editor-based HTTP Client requests -/httpRequests/ -# Datasource local storage ignored files -/dataSources/ -/dataSources.local.xml diff --git a/.idea/app-cloudep-member-server.iml b/.idea/app-cloudep-member-server.iml deleted file mode 100644 index 5e764c4..0000000 --- a/.idea/app-cloudep-member-server.iml +++ /dev/null @@ -1,9 +0,0 @@ - - - - - - - - - \ No newline at end of file diff --git a/.idea/dataSources.xml b/.idea/dataSources.xml deleted file mode 100644 index f8dfa69..0000000 --- a/.idea/dataSources.xml +++ /dev/null @@ -1,12 +0,0 @@ - - - - - mysql.8 - true - com.mysql.cj.jdbc.Driver - jdbc:mysql://localhost:3306 - $ProjectFileDir$ - - - \ No newline at end of file diff --git a/.idea/modules.xml b/.idea/modules.xml deleted file mode 100644 index 0c909dc..0000000 --- a/.idea/modules.xml +++ /dev/null @@ -1,8 +0,0 @@ - - - - - - - - \ No newline at end of file diff --git a/.idea/vcs.xml b/.idea/vcs.xml deleted file mode 100644 index 35eb1dd..0000000 --- a/.idea/vcs.xml +++ /dev/null @@ -1,6 +0,0 @@ - - - - - - \ No newline at end of file diff --git a/client/account/account.go b/client/account/account.go deleted file mode 100644 index 66afb03..0000000 --- a/client/account/account.go +++ /dev/null @@ -1,147 +0,0 @@ -// Code generated by goctl. DO NOT EDIT. -// Source: service.proto - -package account - -import ( - "context" - - "app-cloudep-member-server/gen_result/pb/member" - - "github.com/zeromicro/go-zero/zrpc" - "google.golang.org/grpc" -) - -type ( - BindingUserReq = member.BindingUserReq - BindingUserResp = member.BindingUserResp - CreateLoginUserReq = member.CreateLoginUserReq - CreateUserInfoReq = member.CreateUserInfoReq - GenerateRefreshCodeReq = member.GenerateRefreshCodeReq - GenerateRefreshCodeResp = member.GenerateRefreshCodeResp - GetAccountInfoResp = member.GetAccountInfoResp - GetUIDByAccountReq = member.GetUIDByAccountReq - GetUidByAccountResp = member.GetUidByAccountResp - GetUserInfoReq = member.GetUserInfoReq - GetUserInfoResp = member.GetUserInfoResp - ListUserInfoReq = member.ListUserInfoReq - ListUserInfoResp = member.ListUserInfoResp - NoneReq = member.NoneReq - OKResp = member.OKResp - Pager = member.Pager - UpdateStatusReq = member.UpdateStatusReq - UpdateTokenReq = member.UpdateTokenReq - UpdateUserInfoReq = member.UpdateUserInfoReq - UserInfo = member.UserInfo - VerifyCode = member.VerifyCode - VerifyRefreshCodeReq = member.VerifyRefreshCodeReq - - Account interface { - // CreateUserAccount 建立帳號與密碼 -> 可登入,但可不可以做其他事情看業務流程,也可以只註冊就好 - CreateUserAccount(ctx context.Context, in *CreateLoginUserReq, opts ...grpc.CallOption) (*OKResp, error) - // GetUserAccountInfo 取得帳號密碼資料 - GetUserAccountInfo(ctx context.Context, in *GetUIDByAccountReq, opts ...grpc.CallOption) (*GetAccountInfoResp, error) - // UpdateUserToken 更新密碼 - UpdateUserToken(ctx context.Context, in *UpdateTokenReq, opts ...grpc.CallOption) (*OKResp, error) - // GetUidByAccount 用帳號換取 UID - GetUidByAccount(ctx context.Context, in *GetUIDByAccountReq, opts ...grpc.CallOption) (*GetUidByAccountResp, error) - // BindAccount 綁定帳號 -> account bind to UID - BindAccount(ctx context.Context, in *BindingUserReq, opts ...grpc.CallOption) (*BindingUserResp, error) - // BindUserInfo 初次,綁定 User Info - BindUserInfo(ctx context.Context, in *CreateUserInfoReq, opts ...grpc.CallOption) (*OKResp, error) - // UpdateUserInfo 更新 User Info - UpdateUserInfo(ctx context.Context, in *UpdateUserInfoReq, opts ...grpc.CallOption) (*OKResp, error) - // UpdateStatus 修改狀態 - UpdateStatus(ctx context.Context, in *UpdateStatusReq, opts ...grpc.CallOption) (*OKResp, error) - // GetUserInfo 取得會員資訊 - GetUserInfo(ctx context.Context, in *GetUserInfoReq, opts ...grpc.CallOption) (*GetUserInfoResp, error) - // ListMember 取得會員列表 - ListMember(ctx context.Context, in *ListUserInfoReq, opts ...grpc.CallOption) (*ListUserInfoResp, error) - // GenerateRefreshCode 這個帳號驗證碼(十分鐘),通用的 - GenerateRefreshCode(ctx context.Context, in *GenerateRefreshCodeReq, opts ...grpc.CallOption) (*GenerateRefreshCodeResp, error) - // VerifyRefreshCode 驗證忘記密碼 token - VerifyRefreshCode(ctx context.Context, in *VerifyRefreshCodeReq, opts ...grpc.CallOption) (*OKResp, error) - } - - defaultAccount struct { - cli zrpc.Client - } -) - -func NewAccount(cli zrpc.Client) Account { - return &defaultAccount{ - cli: cli, - } -} - -// CreateUserAccount 建立帳號與密碼 -> 可登入,但可不可以做其他事情看業務流程,也可以只註冊就好 -func (m *defaultAccount) CreateUserAccount(ctx context.Context, in *CreateLoginUserReq, opts ...grpc.CallOption) (*OKResp, error) { - client := member.NewAccountClient(m.cli.Conn()) - return client.CreateUserAccount(ctx, in, opts...) -} - -// GetUserAccountInfo 取得帳號密碼資料 -func (m *defaultAccount) GetUserAccountInfo(ctx context.Context, in *GetUIDByAccountReq, opts ...grpc.CallOption) (*GetAccountInfoResp, error) { - client := member.NewAccountClient(m.cli.Conn()) - return client.GetUserAccountInfo(ctx, in, opts...) -} - -// UpdateUserToken 更新密碼 -func (m *defaultAccount) UpdateUserToken(ctx context.Context, in *UpdateTokenReq, opts ...grpc.CallOption) (*OKResp, error) { - client := member.NewAccountClient(m.cli.Conn()) - return client.UpdateUserToken(ctx, in, opts...) -} - -// GetUidByAccount 用帳號換取 UID -func (m *defaultAccount) GetUidByAccount(ctx context.Context, in *GetUIDByAccountReq, opts ...grpc.CallOption) (*GetUidByAccountResp, error) { - client := member.NewAccountClient(m.cli.Conn()) - return client.GetUidByAccount(ctx, in, opts...) -} - -// BindAccount 綁定帳號 -> account bind to UID -func (m *defaultAccount) BindAccount(ctx context.Context, in *BindingUserReq, opts ...grpc.CallOption) (*BindingUserResp, error) { - client := member.NewAccountClient(m.cli.Conn()) - return client.BindAccount(ctx, in, opts...) -} - -// BindUserInfo 初次,綁定 User Info -func (m *defaultAccount) BindUserInfo(ctx context.Context, in *CreateUserInfoReq, opts ...grpc.CallOption) (*OKResp, error) { - client := member.NewAccountClient(m.cli.Conn()) - return client.BindUserInfo(ctx, in, opts...) -} - -// UpdateUserInfo 更新 User Info -func (m *defaultAccount) UpdateUserInfo(ctx context.Context, in *UpdateUserInfoReq, opts ...grpc.CallOption) (*OKResp, error) { - client := member.NewAccountClient(m.cli.Conn()) - return client.UpdateUserInfo(ctx, in, opts...) -} - -// UpdateStatus 修改狀態 -func (m *defaultAccount) UpdateStatus(ctx context.Context, in *UpdateStatusReq, opts ...grpc.CallOption) (*OKResp, error) { - client := member.NewAccountClient(m.cli.Conn()) - return client.UpdateStatus(ctx, in, opts...) -} - -// GetUserInfo 取得會員資訊 -func (m *defaultAccount) GetUserInfo(ctx context.Context, in *GetUserInfoReq, opts ...grpc.CallOption) (*GetUserInfoResp, error) { - client := member.NewAccountClient(m.cli.Conn()) - return client.GetUserInfo(ctx, in, opts...) -} - -// ListMember 取得會員列表 -func (m *defaultAccount) ListMember(ctx context.Context, in *ListUserInfoReq, opts ...grpc.CallOption) (*ListUserInfoResp, error) { - client := member.NewAccountClient(m.cli.Conn()) - return client.ListMember(ctx, in, opts...) -} - -// GenerateRefreshCode 這個帳號驗證碼(十分鐘),通用的 -func (m *defaultAccount) GenerateRefreshCode(ctx context.Context, in *GenerateRefreshCodeReq, opts ...grpc.CallOption) (*GenerateRefreshCodeResp, error) { - client := member.NewAccountClient(m.cli.Conn()) - return client.GenerateRefreshCode(ctx, in, opts...) -} - -// VerifyRefreshCode 驗證忘記密碼 token -func (m *defaultAccount) VerifyRefreshCode(ctx context.Context, in *VerifyRefreshCodeReq, opts ...grpc.CallOption) (*OKResp, error) { - client := member.NewAccountClient(m.cli.Conn()) - return client.VerifyRefreshCode(ctx, in, opts...) -} diff --git a/etc/service.yaml b/etc/service.yaml deleted file mode 100644 index f144f35..0000000 --- a/etc/service.yaml +++ /dev/null @@ -1,37 +0,0 @@ -Name: member.rpc -ListenOn: 0.0.0.0:8080 -Etcd: - Hosts: - - 127.0.0.1:2379 - Key: member.rpc -DB: - DsnString: root:yytt@tcp(127.0.0.1:3306)/ark_member?charset=utf8mb4&parseTime=true&loc=Asia%2FTaipei -Cache: - - Host: 127.0.0.1:7001 - type: cluster - - Host: 127.0.0.1:7002 - type: cluster - - Host: 127.0.0.1:7003 - type: cluster - - Host: 127.0.0.1:7004 - type: cluster - - Host: 127.0.0.1:7005 - type: cluster - - Host: 127.0.0.1:7006 - type: cluster - -Bcrypt: - Cost: 10 - -RedisCluster: - Host: 127.0.0.1:7001 - Type: cluster - -Mongo: - Schema: mongodb - Host: 127.0.0.1 - User: "" - Password: "" - Port: "27017" - Database: digimon_member - Collection: count diff --git a/gen_result/pb/member/service.pb.go b/gen_result/pb/member/service.pb.go deleted file mode 100644 index 28ad239..0000000 --- a/gen_result/pb/member/service.pb.go +++ /dev/null @@ -1,2201 +0,0 @@ -// Code generated by protoc-gen-go. DO NOT EDIT. -// versions: -// protoc-gen-go v1.34.2 -// protoc v3.19.4 -// source: generate/protobuf/service.proto - -package member - -import ( - reflect "reflect" - sync "sync" - - protoreflect "google.golang.org/protobuf/reflect/protoreflect" - protoimpl "google.golang.org/protobuf/runtime/protoimpl" -) - -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) -) - -// ================ enum ================ -type VerifyType int32 - -const ( - VerifyType_VERIFY_NONE VerifyType = 0 // 初始(異常) - VerifyType_VERIFY_EMAIL VerifyType = 1 - VerifyType_VERIFY_PHONE VerifyType = 2 - VerifyType_VERIFY_GOOGLE VerifyType = 3 // google 驗證器 - VerifyType_VERIFY_NOT VerifyType = 4 // 尚未 -) - -// Enum value maps for VerifyType. -var ( - VerifyType_name = map[int32]string{ - 0: "VERIFY_NONE", - 1: "VERIFY_EMAIL", - 2: "VERIFY_PHONE", - 3: "VERIFY_GOOGLE", - 4: "VERIFY_NOT", - } - VerifyType_value = map[string]int32{ - "VERIFY_NONE": 0, - "VERIFY_EMAIL": 1, - "VERIFY_PHONE": 2, - "VERIFY_GOOGLE": 3, - "VERIFY_NOT": 4, - } -) - -func (x VerifyType) Enum() *VerifyType { - p := new(VerifyType) - *p = x - return p -} - -func (x VerifyType) String() string { - return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) -} - -func (VerifyType) Descriptor() protoreflect.EnumDescriptor { - return file_generate_protobuf_service_proto_enumTypes[0].Descriptor() -} - -func (VerifyType) Type() protoreflect.EnumType { - return &file_generate_protobuf_service_proto_enumTypes[0] -} - -func (x VerifyType) Number() protoreflect.EnumNumber { - return protoreflect.EnumNumber(x) -} - -// Deprecated: Use VerifyType.Descriptor instead. -func (VerifyType) EnumDescriptor() ([]byte, []int) { - return file_generate_protobuf_service_proto_rawDescGZIP(), []int{0} -} - -type AlarmType int32 - -const ( - AlarmType_ALARM_NONE AlarmType = 0 // 初始(異常) - AlarmType_ALARM_NOT AlarmType = 1 // 未告警 - AlarmType_ALARM_SYSTEM AlarmType = 2 // 系統告警中 -) - -// Enum value maps for AlarmType. -var ( - AlarmType_name = map[int32]string{ - 0: "ALARM_NONE", - 1: "ALARM_NOT", - 2: "ALARM_SYSTEM", - } - AlarmType_value = map[string]int32{ - "ALARM_NONE": 0, - "ALARM_NOT": 1, - "ALARM_SYSTEM": 2, - } -) - -func (x AlarmType) Enum() *AlarmType { - p := new(AlarmType) - *p = x - return p -} - -func (x AlarmType) String() string { - return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) -} - -func (AlarmType) Descriptor() protoreflect.EnumDescriptor { - return file_generate_protobuf_service_proto_enumTypes[1].Descriptor() -} - -func (AlarmType) Type() protoreflect.EnumType { - return &file_generate_protobuf_service_proto_enumTypes[1] -} - -func (x AlarmType) Number() protoreflect.EnumNumber { - return protoreflect.EnumNumber(x) -} - -// Deprecated: Use AlarmType.Descriptor instead. -func (AlarmType) EnumDescriptor() ([]byte, []int) { - return file_generate_protobuf_service_proto_rawDescGZIP(), []int{1} -} - -type MemberStatus int32 - -const ( - MemberStatus_STATUS_NONE MemberStatus = 0 // 初始(異常) - MemberStatus_STATUS_VERIFY MemberStatus = 1 // 尚未驗證 - MemberStatus_STATUS_COMPLETE MemberStatus = 2 // 帳號啟用中 - MemberStatus_STATUS_DISABLE MemberStatus = 3 // 帳號停權中 - MemberStatus_STATUS_EMAIL MemberStatus = 4 // 信箱以驗證 - MemberStatus_STATUS_PHONE MemberStatus = 5 // 手機以驗證 - MemberStatus_STATUS_GA MemberStatus = 6 // GA 已綁定 -) - -// Enum value maps for MemberStatus. -var ( - MemberStatus_name = map[int32]string{ - 0: "STATUS_NONE", - 1: "STATUS_VERIFY", - 2: "STATUS_COMPLETE", - 3: "STATUS_DISABLE", - 4: "STATUS_EMAIL", - 5: "STATUS_PHONE", - 6: "STATUS_GA", - } - MemberStatus_value = map[string]int32{ - "STATUS_NONE": 0, - "STATUS_VERIFY": 1, - "STATUS_COMPLETE": 2, - "STATUS_DISABLE": 3, - "STATUS_EMAIL": 4, - "STATUS_PHONE": 5, - "STATUS_GA": 6, - } -) - -func (x MemberStatus) Enum() *MemberStatus { - p := new(MemberStatus) - *p = x - return p -} - -func (x MemberStatus) String() string { - return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) -} - -func (MemberStatus) Descriptor() protoreflect.EnumDescriptor { - return file_generate_protobuf_service_proto_enumTypes[2].Descriptor() -} - -func (MemberStatus) Type() protoreflect.EnumType { - return &file_generate_protobuf_service_proto_enumTypes[2] -} - -func (x MemberStatus) Number() protoreflect.EnumNumber { - return protoreflect.EnumNumber(x) -} - -// Deprecated: Use MemberStatus.Descriptor instead. -func (MemberStatus) EnumDescriptor() ([]byte, []int) { - return file_generate_protobuf_service_proto_rawDescGZIP(), []int{2} -} - -// OKResp -type OKResp struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields -} - -func (x *OKResp) Reset() { - *x = OKResp{} - if protoimpl.UnsafeEnabled { - mi := &file_generate_protobuf_service_proto_msgTypes[0] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *OKResp) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*OKResp) ProtoMessage() {} - -func (x *OKResp) ProtoReflect() protoreflect.Message { - mi := &file_generate_protobuf_service_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 OKResp.ProtoReflect.Descriptor instead. -func (*OKResp) Descriptor() ([]byte, []int) { - return file_generate_protobuf_service_proto_rawDescGZIP(), []int{0} -} - -// NoneReq -type NoneReq struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields -} - -func (x *NoneReq) Reset() { - *x = NoneReq{} - if protoimpl.UnsafeEnabled { - mi := &file_generate_protobuf_service_proto_msgTypes[1] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *NoneReq) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*NoneReq) ProtoMessage() {} - -func (x *NoneReq) ProtoReflect() protoreflect.Message { - mi := &file_generate_protobuf_service_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 NoneReq.ProtoReflect.Descriptor instead. -func (*NoneReq) Descriptor() ([]byte, []int) { - return file_generate_protobuf_service_proto_rawDescGZIP(), []int{1} -} - -// ================ common ================ -type Pager struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - Total int64 `protobuf:"varint,1,opt,name=total,proto3" json:"total,omitempty"` - Size int64 `protobuf:"varint,2,opt,name=size,proto3" json:"size,omitempty"` - Index int64 `protobuf:"varint,3,opt,name=index,proto3" json:"index,omitempty"` -} - -func (x *Pager) Reset() { - *x = Pager{} - if protoimpl.UnsafeEnabled { - mi := &file_generate_protobuf_service_proto_msgTypes[2] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *Pager) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*Pager) ProtoMessage() {} - -func (x *Pager) ProtoReflect() protoreflect.Message { - mi := &file_generate_protobuf_service_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 Pager.ProtoReflect.Descriptor instead. -func (*Pager) Descriptor() ([]byte, []int) { - return file_generate_protobuf_service_proto_rawDescGZIP(), []int{2} -} - -func (x *Pager) GetTotal() int64 { - if x != nil { - return x.Total - } - return 0 -} - -func (x *Pager) GetSize() int64 { - if x != nil { - return x.Size - } - return 0 -} - -func (x *Pager) GetIndex() int64 { - if x != nil { - return x.Index - } - return 0 -} - -// ================ account ================ -type CreateLoginUserReq struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - LoginId string `protobuf:"bytes,1,opt,name=login_id,json=loginId,proto3" json:"login_id,omitempty"` - Platform int64 `protobuf:"varint,2,opt,name=platform,proto3" json:"platform,omitempty"` - Token string `protobuf:"bytes,3,opt,name=token,proto3" json:"token,omitempty"` -} - -func (x *CreateLoginUserReq) Reset() { - *x = CreateLoginUserReq{} - if protoimpl.UnsafeEnabled { - mi := &file_generate_protobuf_service_proto_msgTypes[3] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *CreateLoginUserReq) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*CreateLoginUserReq) ProtoMessage() {} - -func (x *CreateLoginUserReq) ProtoReflect() protoreflect.Message { - mi := &file_generate_protobuf_service_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 CreateLoginUserReq.ProtoReflect.Descriptor instead. -func (*CreateLoginUserReq) Descriptor() ([]byte, []int) { - return file_generate_protobuf_service_proto_rawDescGZIP(), []int{3} -} - -func (x *CreateLoginUserReq) GetLoginId() string { - if x != nil { - return x.LoginId - } - return "" -} - -func (x *CreateLoginUserReq) GetPlatform() int64 { - if x != nil { - return x.Platform - } - return 0 -} - -func (x *CreateLoginUserReq) GetToken() string { - if x != nil { - return x.Token - } - return "" -} - -type BindingUserReq struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - Uid string `protobuf:"bytes,1,opt,name=uid,proto3" json:"uid,omitempty"` - LoginId string `protobuf:"bytes,2,opt,name=login_id,json=loginId,proto3" json:"login_id,omitempty"` - Type int64 `protobuf:"varint,3,opt,name=type,proto3" json:"type,omitempty"` -} - -func (x *BindingUserReq) Reset() { - *x = BindingUserReq{} - if protoimpl.UnsafeEnabled { - mi := &file_generate_protobuf_service_proto_msgTypes[4] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *BindingUserReq) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*BindingUserReq) ProtoMessage() {} - -func (x *BindingUserReq) ProtoReflect() protoreflect.Message { - mi := &file_generate_protobuf_service_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 BindingUserReq.ProtoReflect.Descriptor instead. -func (*BindingUserReq) Descriptor() ([]byte, []int) { - return file_generate_protobuf_service_proto_rawDescGZIP(), []int{4} -} - -func (x *BindingUserReq) GetUid() string { - if x != nil { - return x.Uid - } - return "" -} - -func (x *BindingUserReq) GetLoginId() string { - if x != nil { - return x.LoginId - } - return "" -} - -func (x *BindingUserReq) GetType() int64 { - if x != nil { - return x.Type - } - return 0 -} - -type BindingUserResp struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - Uid string `protobuf:"bytes,1,opt,name=uid,proto3" json:"uid,omitempty"` - LoginId string `protobuf:"bytes,2,opt,name=login_id,json=loginId,proto3" json:"login_id,omitempty"` - Type int64 `protobuf:"varint,3,opt,name=type,proto3" json:"type,omitempty"` -} - -func (x *BindingUserResp) Reset() { - *x = BindingUserResp{} - if protoimpl.UnsafeEnabled { - mi := &file_generate_protobuf_service_proto_msgTypes[5] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *BindingUserResp) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*BindingUserResp) ProtoMessage() {} - -func (x *BindingUserResp) ProtoReflect() protoreflect.Message { - mi := &file_generate_protobuf_service_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 BindingUserResp.ProtoReflect.Descriptor instead. -func (*BindingUserResp) Descriptor() ([]byte, []int) { - return file_generate_protobuf_service_proto_rawDescGZIP(), []int{5} -} - -func (x *BindingUserResp) GetUid() string { - if x != nil { - return x.Uid - } - return "" -} - -func (x *BindingUserResp) GetLoginId() string { - if x != nil { - return x.LoginId - } - return "" -} - -func (x *BindingUserResp) GetType() int64 { - if x != nil { - return x.Type - } - return 0 -} - -type CreateUserInfoReq struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - Uid string `protobuf:"bytes,1,opt,name=uid,proto3" json:"uid,omitempty"` - VerifyType VerifyType `protobuf:"varint,2,opt,name=verify_type,json=verifyType,proto3,enum=member.VerifyType" json:"verify_type,omitempty"` - AlarmType AlarmType `protobuf:"varint,3,opt,name=alarm_type,json=alarmType,proto3,enum=member.AlarmType" json:"alarm_type,omitempty"` - Status MemberStatus `protobuf:"varint,4,opt,name=status,proto3,enum=member.MemberStatus" json:"status,omitempty"` - Language string `protobuf:"bytes,5,opt,name=language,proto3" json:"language,omitempty"` - Currency string `protobuf:"bytes,6,opt,name=currency,proto3" json:"currency,omitempty"` - Avatar *string `protobuf:"bytes,7,opt,name=avatar,proto3,oneof" json:"avatar,omitempty"` - NickName *string `protobuf:"bytes,8,opt,name=nick_name,json=nickName,proto3,oneof" json:"nick_name,omitempty"` -} - -func (x *CreateUserInfoReq) Reset() { - *x = CreateUserInfoReq{} - if protoimpl.UnsafeEnabled { - mi := &file_generate_protobuf_service_proto_msgTypes[6] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *CreateUserInfoReq) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*CreateUserInfoReq) ProtoMessage() {} - -func (x *CreateUserInfoReq) ProtoReflect() protoreflect.Message { - mi := &file_generate_protobuf_service_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 CreateUserInfoReq.ProtoReflect.Descriptor instead. -func (*CreateUserInfoReq) Descriptor() ([]byte, []int) { - return file_generate_protobuf_service_proto_rawDescGZIP(), []int{6} -} - -func (x *CreateUserInfoReq) GetUid() string { - if x != nil { - return x.Uid - } - return "" -} - -func (x *CreateUserInfoReq) GetVerifyType() VerifyType { - if x != nil { - return x.VerifyType - } - return VerifyType_VERIFY_NONE -} - -func (x *CreateUserInfoReq) GetAlarmType() AlarmType { - if x != nil { - return x.AlarmType - } - return AlarmType_ALARM_NONE -} - -func (x *CreateUserInfoReq) GetStatus() MemberStatus { - if x != nil { - return x.Status - } - return MemberStatus_STATUS_NONE -} - -func (x *CreateUserInfoReq) GetLanguage() string { - if x != nil { - return x.Language - } - return "" -} - -func (x *CreateUserInfoReq) GetCurrency() string { - if x != nil { - return x.Currency - } - return "" -} - -func (x *CreateUserInfoReq) GetAvatar() string { - if x != nil && x.Avatar != nil { - return *x.Avatar - } - return "" -} - -func (x *CreateUserInfoReq) GetNickName() string { - if x != nil && x.NickName != nil { - return *x.NickName - } - return "" -} - -type GetAccountInfoResp struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - Data *CreateLoginUserReq `protobuf:"bytes,1,opt,name=data,proto3" json:"data,omitempty"` -} - -func (x *GetAccountInfoResp) Reset() { - *x = GetAccountInfoResp{} - if protoimpl.UnsafeEnabled { - mi := &file_generate_protobuf_service_proto_msgTypes[7] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *GetAccountInfoResp) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*GetAccountInfoResp) ProtoMessage() {} - -func (x *GetAccountInfoResp) ProtoReflect() protoreflect.Message { - mi := &file_generate_protobuf_service_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 GetAccountInfoResp.ProtoReflect.Descriptor instead. -func (*GetAccountInfoResp) Descriptor() ([]byte, []int) { - return file_generate_protobuf_service_proto_rawDescGZIP(), []int{7} -} - -func (x *GetAccountInfoResp) GetData() *CreateLoginUserReq { - if x != nil { - return x.Data - } - return nil -} - -// UpdateUserInfoReq 不處理邏輯給不給改,這裡只關新增修改刪除 -type UpdateUserInfoReq struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - Uid string `protobuf:"bytes,1,opt,name=uid,proto3" json:"uid,omitempty"` - Language *string `protobuf:"bytes,2,opt,name=language,proto3,oneof" json:"language,omitempty"` - Currency *string `protobuf:"bytes,3,opt,name=currency,proto3,oneof" json:"currency,omitempty"` - NickName *string `protobuf:"bytes,4,opt,name=nick_name,json=nickName,proto3,oneof" json:"nick_name,omitempty"` - Avatar *string `protobuf:"bytes,5,opt,name=avatar,proto3,oneof" json:"avatar,omitempty"` - VerifyType *VerifyType `protobuf:"varint,6,opt,name=verify_type,json=verifyType,proto3,enum=member.VerifyType,oneof" json:"verify_type,omitempty"` - AlarmType *AlarmType `protobuf:"varint,7,opt,name=alarm_type,json=alarmType,proto3,enum=member.AlarmType,oneof" json:"alarm_type,omitempty"` - Status *MemberStatus `protobuf:"varint,8,opt,name=status,proto3,enum=member.MemberStatus,oneof" json:"status,omitempty"` -} - -func (x *UpdateUserInfoReq) Reset() { - *x = UpdateUserInfoReq{} - if protoimpl.UnsafeEnabled { - mi := &file_generate_protobuf_service_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_generate_protobuf_service_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_generate_protobuf_service_proto_rawDescGZIP(), []int{8} -} - -func (x *UpdateUserInfoReq) GetUid() string { - if x != nil { - return x.Uid - } - return "" -} - -func (x *UpdateUserInfoReq) GetLanguage() string { - if x != nil && x.Language != nil { - return *x.Language - } - return "" -} - -func (x *UpdateUserInfoReq) GetCurrency() string { - if x != nil && x.Currency != nil { - return *x.Currency - } - return "" -} - -func (x *UpdateUserInfoReq) GetNickName() string { - if x != nil && x.NickName != nil { - return *x.NickName - } - return "" -} - -func (x *UpdateUserInfoReq) GetAvatar() string { - if x != nil && x.Avatar != nil { - return *x.Avatar - } - return "" -} - -func (x *UpdateUserInfoReq) GetVerifyType() VerifyType { - if x != nil && x.VerifyType != nil { - return *x.VerifyType - } - return VerifyType_VERIFY_NONE -} - -func (x *UpdateUserInfoReq) GetAlarmType() AlarmType { - if x != nil && x.AlarmType != nil { - return *x.AlarmType - } - return AlarmType_ALARM_NONE -} - -func (x *UpdateUserInfoReq) GetStatus() MemberStatus { - if x != nil && x.Status != nil { - return *x.Status - } - return MemberStatus_STATUS_NONE -} - -type GetUIDByAccountReq struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - Account string `protobuf:"bytes,1,opt,name=account,proto3" json:"account,omitempty"` -} - -func (x *GetUIDByAccountReq) Reset() { - *x = GetUIDByAccountReq{} - if protoimpl.UnsafeEnabled { - mi := &file_generate_protobuf_service_proto_msgTypes[9] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *GetUIDByAccountReq) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*GetUIDByAccountReq) ProtoMessage() {} - -func (x *GetUIDByAccountReq) ProtoReflect() protoreflect.Message { - mi := &file_generate_protobuf_service_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 GetUIDByAccountReq.ProtoReflect.Descriptor instead. -func (*GetUIDByAccountReq) Descriptor() ([]byte, []int) { - return file_generate_protobuf_service_proto_rawDescGZIP(), []int{9} -} - -func (x *GetUIDByAccountReq) GetAccount() string { - if x != nil { - return x.Account - } - return "" -} - -type GetUidByAccountResp struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - Uid string `protobuf:"bytes,1,opt,name=uid,proto3" json:"uid,omitempty"` - Account string `protobuf:"bytes,2,opt,name=account,proto3" json:"account,omitempty"` -} - -func (x *GetUidByAccountResp) Reset() { - *x = GetUidByAccountResp{} - if protoimpl.UnsafeEnabled { - mi := &file_generate_protobuf_service_proto_msgTypes[10] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *GetUidByAccountResp) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*GetUidByAccountResp) ProtoMessage() {} - -func (x *GetUidByAccountResp) ProtoReflect() protoreflect.Message { - mi := &file_generate_protobuf_service_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 GetUidByAccountResp.ProtoReflect.Descriptor instead. -func (*GetUidByAccountResp) Descriptor() ([]byte, []int) { - return file_generate_protobuf_service_proto_rawDescGZIP(), []int{10} -} - -func (x *GetUidByAccountResp) GetUid() string { - if x != nil { - return x.Uid - } - return "" -} - -func (x *GetUidByAccountResp) GetAccount() string { - if x != nil { - return x.Account - } - return "" -} - -type UpdateTokenReq struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - Account string `protobuf:"bytes,1,opt,name=account,proto3" json:"account,omitempty"` - Token string `protobuf:"bytes,2,opt,name=token,proto3" json:"token,omitempty"` - Platform int64 `protobuf:"varint,3,opt,name=platform,proto3" json:"platform,omitempty"` -} - -func (x *UpdateTokenReq) Reset() { - *x = UpdateTokenReq{} - if protoimpl.UnsafeEnabled { - mi := &file_generate_protobuf_service_proto_msgTypes[11] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *UpdateTokenReq) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*UpdateTokenReq) ProtoMessage() {} - -func (x *UpdateTokenReq) ProtoReflect() protoreflect.Message { - mi := &file_generate_protobuf_service_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 UpdateTokenReq.ProtoReflect.Descriptor instead. -func (*UpdateTokenReq) Descriptor() ([]byte, []int) { - return file_generate_protobuf_service_proto_rawDescGZIP(), []int{11} -} - -func (x *UpdateTokenReq) GetAccount() string { - if x != nil { - return x.Account - } - return "" -} - -func (x *UpdateTokenReq) GetToken() string { - if x != nil { - return x.Token - } - return "" -} - -func (x *UpdateTokenReq) GetPlatform() int64 { - if x != nil { - return x.Platform - } - return 0 -} - -type GenerateRefreshCodeReq struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - Account string `protobuf:"bytes,1,opt,name=account,proto3" json:"account,omitempty"` - CodeType int32 `protobuf:"varint,2,opt,name=code_type,json=codeType,proto3" json:"code_type,omitempty"` -} - -func (x *GenerateRefreshCodeReq) Reset() { - *x = GenerateRefreshCodeReq{} - if protoimpl.UnsafeEnabled { - mi := &file_generate_protobuf_service_proto_msgTypes[12] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *GenerateRefreshCodeReq) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*GenerateRefreshCodeReq) ProtoMessage() {} - -func (x *GenerateRefreshCodeReq) ProtoReflect() protoreflect.Message { - mi := &file_generate_protobuf_service_proto_msgTypes[12] - 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 GenerateRefreshCodeReq.ProtoReflect.Descriptor instead. -func (*GenerateRefreshCodeReq) Descriptor() ([]byte, []int) { - return file_generate_protobuf_service_proto_rawDescGZIP(), []int{12} -} - -func (x *GenerateRefreshCodeReq) GetAccount() string { - if x != nil { - return x.Account - } - return "" -} - -func (x *GenerateRefreshCodeReq) GetCodeType() int32 { - if x != nil { - return x.CodeType - } - return 0 -} - -type VerifyCode struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - VerifyCode string `protobuf:"bytes,1,opt,name=verify_code,json=verifyCode,proto3" json:"verify_code,omitempty"` -} - -func (x *VerifyCode) Reset() { - *x = VerifyCode{} - if protoimpl.UnsafeEnabled { - mi := &file_generate_protobuf_service_proto_msgTypes[13] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *VerifyCode) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*VerifyCode) ProtoMessage() {} - -func (x *VerifyCode) ProtoReflect() protoreflect.Message { - mi := &file_generate_protobuf_service_proto_msgTypes[13] - 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 VerifyCode.ProtoReflect.Descriptor instead. -func (*VerifyCode) Descriptor() ([]byte, []int) { - return file_generate_protobuf_service_proto_rawDescGZIP(), []int{13} -} - -func (x *VerifyCode) GetVerifyCode() string { - if x != nil { - return x.VerifyCode - } - return "" -} - -type GenerateRefreshCodeResp struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - Data *VerifyCode `protobuf:"bytes,1,opt,name=data,proto3" json:"data,omitempty"` -} - -func (x *GenerateRefreshCodeResp) Reset() { - *x = GenerateRefreshCodeResp{} - if protoimpl.UnsafeEnabled { - mi := &file_generate_protobuf_service_proto_msgTypes[14] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *GenerateRefreshCodeResp) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*GenerateRefreshCodeResp) ProtoMessage() {} - -func (x *GenerateRefreshCodeResp) ProtoReflect() protoreflect.Message { - mi := &file_generate_protobuf_service_proto_msgTypes[14] - 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 GenerateRefreshCodeResp.ProtoReflect.Descriptor instead. -func (*GenerateRefreshCodeResp) Descriptor() ([]byte, []int) { - return file_generate_protobuf_service_proto_rawDescGZIP(), []int{14} -} - -func (x *GenerateRefreshCodeResp) GetData() *VerifyCode { - if x != nil { - return x.Data - } - return nil -} - -type VerifyRefreshCodeReq struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - Account string `protobuf:"bytes,1,opt,name=account,proto3" json:"account,omitempty"` - CodeType int32 `protobuf:"varint,2,opt,name=code_type,json=codeType,proto3" json:"code_type,omitempty"` - VerifyCode string `protobuf:"bytes,3,opt,name=verify_code,json=verifyCode,proto3" json:"verify_code,omitempty"` -} - -func (x *VerifyRefreshCodeReq) Reset() { - *x = VerifyRefreshCodeReq{} - if protoimpl.UnsafeEnabled { - mi := &file_generate_protobuf_service_proto_msgTypes[15] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *VerifyRefreshCodeReq) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*VerifyRefreshCodeReq) ProtoMessage() {} - -func (x *VerifyRefreshCodeReq) ProtoReflect() protoreflect.Message { - mi := &file_generate_protobuf_service_proto_msgTypes[15] - 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 VerifyRefreshCodeReq.ProtoReflect.Descriptor instead. -func (*VerifyRefreshCodeReq) Descriptor() ([]byte, []int) { - return file_generate_protobuf_service_proto_rawDescGZIP(), []int{15} -} - -func (x *VerifyRefreshCodeReq) GetAccount() string { - if x != nil { - return x.Account - } - return "" -} - -func (x *VerifyRefreshCodeReq) GetCodeType() int32 { - if x != nil { - return x.CodeType - } - return 0 -} - -func (x *VerifyRefreshCodeReq) GetVerifyCode() string { - if x != nil { - return x.VerifyCode - } - return "" -} - -type UpdateStatusReq struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - Uid string `protobuf:"bytes,1,opt,name=uid,proto3" json:"uid,omitempty"` - Status MemberStatus `protobuf:"varint,2,opt,name=status,proto3,enum=member.MemberStatus" json:"status,omitempty"` -} - -func (x *UpdateStatusReq) Reset() { - *x = UpdateStatusReq{} - if protoimpl.UnsafeEnabled { - mi := &file_generate_protobuf_service_proto_msgTypes[16] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *UpdateStatusReq) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*UpdateStatusReq) ProtoMessage() {} - -func (x *UpdateStatusReq) ProtoReflect() protoreflect.Message { - mi := &file_generate_protobuf_service_proto_msgTypes[16] - 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 UpdateStatusReq.ProtoReflect.Descriptor instead. -func (*UpdateStatusReq) Descriptor() ([]byte, []int) { - return file_generate_protobuf_service_proto_rawDescGZIP(), []int{16} -} - -func (x *UpdateStatusReq) GetUid() string { - if x != nil { - return x.Uid - } - return "" -} - -func (x *UpdateStatusReq) GetStatus() MemberStatus { - if x != nil { - return x.Status - } - return MemberStatus_STATUS_NONE -} - -type GetUserInfoReq struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - Uid string `protobuf:"bytes,1,opt,name=uid,proto3" json:"uid,omitempty"` - NickName *string `protobuf:"bytes,2,opt,name=nick_name,json=nickName,proto3,oneof" json:"nick_name,omitempty"` -} - -func (x *GetUserInfoReq) Reset() { - *x = GetUserInfoReq{} - if protoimpl.UnsafeEnabled { - mi := &file_generate_protobuf_service_proto_msgTypes[17] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *GetUserInfoReq) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*GetUserInfoReq) ProtoMessage() {} - -func (x *GetUserInfoReq) ProtoReflect() protoreflect.Message { - mi := &file_generate_protobuf_service_proto_msgTypes[17] - 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 GetUserInfoReq.ProtoReflect.Descriptor instead. -func (*GetUserInfoReq) Descriptor() ([]byte, []int) { - return file_generate_protobuf_service_proto_rawDescGZIP(), []int{17} -} - -func (x *GetUserInfoReq) GetUid() string { - if x != nil { - return x.Uid - } - return "" -} - -func (x *GetUserInfoReq) GetNickName() string { - if x != nil && x.NickName != nil { - return *x.NickName - } - return "" -} - -type UserInfo struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - Uid string `protobuf:"bytes,1,opt,name=uid,proto3" json:"uid,omitempty"` - VerifyType VerifyType `protobuf:"varint,2,opt,name=verify_type,json=verifyType,proto3,enum=member.VerifyType" json:"verify_type,omitempty"` - AlarmType AlarmType `protobuf:"varint,3,opt,name=alarm_type,json=alarmType,proto3,enum=member.AlarmType" json:"alarm_type,omitempty"` - Status MemberStatus `protobuf:"varint,4,opt,name=status,proto3,enum=member.MemberStatus" json:"status,omitempty"` - Language string `protobuf:"bytes,5,opt,name=language,proto3" json:"language,omitempty"` - Currency string `protobuf:"bytes,6,opt,name=currency,proto3" json:"currency,omitempty"` - Avatar string `protobuf:"bytes,7,opt,name=avatar,proto3" json:"avatar,omitempty"` - NickName *string `protobuf:"bytes,8,opt,name=nick_name,json=nickName,proto3,oneof" json:"nick_name,omitempty"` -} - -func (x *UserInfo) Reset() { - *x = UserInfo{} - if protoimpl.UnsafeEnabled { - mi := &file_generate_protobuf_service_proto_msgTypes[18] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *UserInfo) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*UserInfo) ProtoMessage() {} - -func (x *UserInfo) ProtoReflect() protoreflect.Message { - mi := &file_generate_protobuf_service_proto_msgTypes[18] - 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 UserInfo.ProtoReflect.Descriptor instead. -func (*UserInfo) Descriptor() ([]byte, []int) { - return file_generate_protobuf_service_proto_rawDescGZIP(), []int{18} -} - -func (x *UserInfo) GetUid() string { - if x != nil { - return x.Uid - } - return "" -} - -func (x *UserInfo) GetVerifyType() VerifyType { - if x != nil { - return x.VerifyType - } - return VerifyType_VERIFY_NONE -} - -func (x *UserInfo) GetAlarmType() AlarmType { - if x != nil { - return x.AlarmType - } - return AlarmType_ALARM_NONE -} - -func (x *UserInfo) GetStatus() MemberStatus { - if x != nil { - return x.Status - } - return MemberStatus_STATUS_NONE -} - -func (x *UserInfo) GetLanguage() string { - if x != nil { - return x.Language - } - return "" -} - -func (x *UserInfo) GetCurrency() string { - if x != nil { - return x.Currency - } - return "" -} - -func (x *UserInfo) GetAvatar() string { - if x != nil { - return x.Avatar - } - return "" -} - -func (x *UserInfo) GetNickName() string { - if x != nil && x.NickName != nil { - return *x.NickName - } - return "" -} - -type GetUserInfoResp struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - Data *UserInfo `protobuf:"bytes,1,opt,name=data,proto3" json:"data,omitempty"` -} - -func (x *GetUserInfoResp) Reset() { - *x = GetUserInfoResp{} - if protoimpl.UnsafeEnabled { - mi := &file_generate_protobuf_service_proto_msgTypes[19] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *GetUserInfoResp) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*GetUserInfoResp) ProtoMessage() {} - -func (x *GetUserInfoResp) ProtoReflect() protoreflect.Message { - mi := &file_generate_protobuf_service_proto_msgTypes[19] - 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 GetUserInfoResp.ProtoReflect.Descriptor instead. -func (*GetUserInfoResp) Descriptor() ([]byte, []int) { - return file_generate_protobuf_service_proto_rawDescGZIP(), []int{19} -} - -func (x *GetUserInfoResp) GetData() *UserInfo { - if x != nil { - return x.Data - } - return nil -} - -type ListUserInfoReq struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - VerifyType *VerifyType `protobuf:"varint,1,opt,name=verify_type,json=verifyType,proto3,enum=member.VerifyType,oneof" json:"verify_type,omitempty"` - AlarmType *AlarmType `protobuf:"varint,2,opt,name=alarm_type,json=alarmType,proto3,enum=member.AlarmType,oneof" json:"alarm_type,omitempty"` - Status *MemberStatus `protobuf:"varint,3,opt,name=status,proto3,enum=member.MemberStatus,oneof" json:"status,omitempty"` - CreateStartTime *int64 `protobuf:"varint,4,opt,name=create_start_time,json=createStartTime,proto3,oneof" json:"create_start_time,omitempty"` - CreateEndTime *int64 `protobuf:"varint,5,opt,name=create_end_time,json=createEndTime,proto3,oneof" json:"create_end_time,omitempty"` - PageSize int64 `protobuf:"varint,6,opt,name=page_size,json=pageSize,proto3" json:"page_size,omitempty"` - PageIndex int64 `protobuf:"varint,7,opt,name=page_index,json=pageIndex,proto3" json:"page_index,omitempty"` -} - -func (x *ListUserInfoReq) Reset() { - *x = ListUserInfoReq{} - if protoimpl.UnsafeEnabled { - mi := &file_generate_protobuf_service_proto_msgTypes[20] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *ListUserInfoReq) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*ListUserInfoReq) ProtoMessage() {} - -func (x *ListUserInfoReq) ProtoReflect() protoreflect.Message { - mi := &file_generate_protobuf_service_proto_msgTypes[20] - 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 ListUserInfoReq.ProtoReflect.Descriptor instead. -func (*ListUserInfoReq) Descriptor() ([]byte, []int) { - return file_generate_protobuf_service_proto_rawDescGZIP(), []int{20} -} - -func (x *ListUserInfoReq) GetVerifyType() VerifyType { - if x != nil && x.VerifyType != nil { - return *x.VerifyType - } - return VerifyType_VERIFY_NONE -} - -func (x *ListUserInfoReq) GetAlarmType() AlarmType { - if x != nil && x.AlarmType != nil { - return *x.AlarmType - } - return AlarmType_ALARM_NONE -} - -func (x *ListUserInfoReq) GetStatus() MemberStatus { - if x != nil && x.Status != nil { - return *x.Status - } - return MemberStatus_STATUS_NONE -} - -func (x *ListUserInfoReq) GetCreateStartTime() int64 { - if x != nil && x.CreateStartTime != nil { - return *x.CreateStartTime - } - return 0 -} - -func (x *ListUserInfoReq) GetCreateEndTime() int64 { - if x != nil && x.CreateEndTime != nil { - return *x.CreateEndTime - } - return 0 -} - -func (x *ListUserInfoReq) GetPageSize() int64 { - if x != nil { - return x.PageSize - } - return 0 -} - -func (x *ListUserInfoReq) GetPageIndex() int64 { - if x != nil { - return x.PageIndex - } - return 0 -} - -type ListUserInfoResp struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - Data []*UserInfo `protobuf:"bytes,1,rep,name=data,proto3" json:"data,omitempty"` - Page *Pager `protobuf:"bytes,2,opt,name=page,proto3" json:"page,omitempty"` -} - -func (x *ListUserInfoResp) Reset() { - *x = ListUserInfoResp{} - if protoimpl.UnsafeEnabled { - mi := &file_generate_protobuf_service_proto_msgTypes[21] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *ListUserInfoResp) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*ListUserInfoResp) ProtoMessage() {} - -func (x *ListUserInfoResp) ProtoReflect() protoreflect.Message { - mi := &file_generate_protobuf_service_proto_msgTypes[21] - 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 ListUserInfoResp.ProtoReflect.Descriptor instead. -func (*ListUserInfoResp) Descriptor() ([]byte, []int) { - return file_generate_protobuf_service_proto_rawDescGZIP(), []int{21} -} - -func (x *ListUserInfoResp) GetData() []*UserInfo { - if x != nil { - return x.Data - } - return nil -} - -func (x *ListUserInfoResp) GetPage() *Pager { - if x != nil { - return x.Page - } - return nil -} - -var File_generate_protobuf_service_proto protoreflect.FileDescriptor - -var file_generate_protobuf_service_proto_rawDesc = []byte{ - 0x0a, 0x1f, 0x67, 0x65, 0x6e, 0x65, 0x72, 0x61, 0x74, 0x65, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, - 0x62, 0x75, 0x66, 0x2f, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, - 0x6f, 0x12, 0x06, 0x6d, 0x65, 0x6d, 0x62, 0x65, 0x72, 0x22, 0x08, 0x0a, 0x06, 0x4f, 0x4b, 0x52, - 0x65, 0x73, 0x70, 0x22, 0x09, 0x0a, 0x07, 0x4e, 0x6f, 0x6e, 0x65, 0x52, 0x65, 0x71, 0x22, 0x47, - 0x0a, 0x05, 0x50, 0x61, 0x67, 0x65, 0x72, 0x12, 0x14, 0x0a, 0x05, 0x74, 0x6f, 0x74, 0x61, 0x6c, - 0x18, 0x01, 0x20, 0x01, 0x28, 0x03, 0x52, 0x05, 0x74, 0x6f, 0x74, 0x61, 0x6c, 0x12, 0x12, 0x0a, - 0x04, 0x73, 0x69, 0x7a, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x03, 0x52, 0x04, 0x73, 0x69, 0x7a, - 0x65, 0x12, 0x14, 0x0a, 0x05, 0x69, 0x6e, 0x64, 0x65, 0x78, 0x18, 0x03, 0x20, 0x01, 0x28, 0x03, - 0x52, 0x05, 0x69, 0x6e, 0x64, 0x65, 0x78, 0x22, 0x61, 0x0a, 0x12, 0x43, 0x72, 0x65, 0x61, 0x74, - 0x65, 0x4c, 0x6f, 0x67, 0x69, 0x6e, 0x55, 0x73, 0x65, 0x72, 0x52, 0x65, 0x71, 0x12, 0x19, 0x0a, - 0x08, 0x6c, 0x6f, 0x67, 0x69, 0x6e, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, - 0x07, 0x6c, 0x6f, 0x67, 0x69, 0x6e, 0x49, 0x64, 0x12, 0x1a, 0x0a, 0x08, 0x70, 0x6c, 0x61, 0x74, - 0x66, 0x6f, 0x72, 0x6d, 0x18, 0x02, 0x20, 0x01, 0x28, 0x03, 0x52, 0x08, 0x70, 0x6c, 0x61, 0x74, - 0x66, 0x6f, 0x72, 0x6d, 0x12, 0x14, 0x0a, 0x05, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x18, 0x03, 0x20, - 0x01, 0x28, 0x09, 0x52, 0x05, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x22, 0x51, 0x0a, 0x0e, 0x42, 0x69, - 0x6e, 0x64, 0x69, 0x6e, 0x67, 0x55, 0x73, 0x65, 0x72, 0x52, 0x65, 0x71, 0x12, 0x10, 0x0a, 0x03, - 0x75, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x75, 0x69, 0x64, 0x12, 0x19, - 0x0a, 0x08, 0x6c, 0x6f, 0x67, 0x69, 0x6e, 0x5f, 0x69, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, - 0x52, 0x07, 0x6c, 0x6f, 0x67, 0x69, 0x6e, 0x49, 0x64, 0x12, 0x12, 0x0a, 0x04, 0x74, 0x79, 0x70, - 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x03, 0x52, 0x04, 0x74, 0x79, 0x70, 0x65, 0x22, 0x52, 0x0a, - 0x0f, 0x42, 0x69, 0x6e, 0x64, 0x69, 0x6e, 0x67, 0x55, 0x73, 0x65, 0x72, 0x52, 0x65, 0x73, 0x70, - 0x12, 0x10, 0x0a, 0x03, 0x75, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x75, - 0x69, 0x64, 0x12, 0x19, 0x0a, 0x08, 0x6c, 0x6f, 0x67, 0x69, 0x6e, 0x5f, 0x69, 0x64, 0x18, 0x02, - 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x6c, 0x6f, 0x67, 0x69, 0x6e, 0x49, 0x64, 0x12, 0x12, 0x0a, - 0x04, 0x74, 0x79, 0x70, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x03, 0x52, 0x04, 0x74, 0x79, 0x70, - 0x65, 0x22, 0xca, 0x02, 0x0a, 0x11, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x55, 0x73, 0x65, 0x72, - 0x49, 0x6e, 0x66, 0x6f, 0x52, 0x65, 0x71, 0x12, 0x10, 0x0a, 0x03, 0x75, 0x69, 0x64, 0x18, 0x01, - 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x75, 0x69, 0x64, 0x12, 0x33, 0x0a, 0x0b, 0x76, 0x65, 0x72, - 0x69, 0x66, 0x79, 0x5f, 0x74, 0x79, 0x70, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x12, - 0x2e, 0x6d, 0x65, 0x6d, 0x62, 0x65, 0x72, 0x2e, 0x56, 0x65, 0x72, 0x69, 0x66, 0x79, 0x54, 0x79, - 0x70, 0x65, 0x52, 0x0a, 0x76, 0x65, 0x72, 0x69, 0x66, 0x79, 0x54, 0x79, 0x70, 0x65, 0x12, 0x30, - 0x0a, 0x0a, 0x61, 0x6c, 0x61, 0x72, 0x6d, 0x5f, 0x74, 0x79, 0x70, 0x65, 0x18, 0x03, 0x20, 0x01, - 0x28, 0x0e, 0x32, 0x11, 0x2e, 0x6d, 0x65, 0x6d, 0x62, 0x65, 0x72, 0x2e, 0x41, 0x6c, 0x61, 0x72, - 0x6d, 0x54, 0x79, 0x70, 0x65, 0x52, 0x09, 0x61, 0x6c, 0x61, 0x72, 0x6d, 0x54, 0x79, 0x70, 0x65, - 0x12, 0x2c, 0x0a, 0x06, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0e, - 0x32, 0x14, 0x2e, 0x6d, 0x65, 0x6d, 0x62, 0x65, 0x72, 0x2e, 0x4d, 0x65, 0x6d, 0x62, 0x65, 0x72, - 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x52, 0x06, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x12, 0x1a, - 0x0a, 0x08, 0x6c, 0x61, 0x6e, 0x67, 0x75, 0x61, 0x67, 0x65, 0x18, 0x05, 0x20, 0x01, 0x28, 0x09, - 0x52, 0x08, 0x6c, 0x61, 0x6e, 0x67, 0x75, 0x61, 0x67, 0x65, 0x12, 0x1a, 0x0a, 0x08, 0x63, 0x75, - 0x72, 0x72, 0x65, 0x6e, 0x63, 0x79, 0x18, 0x06, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x63, 0x75, - 0x72, 0x72, 0x65, 0x6e, 0x63, 0x79, 0x12, 0x1b, 0x0a, 0x06, 0x61, 0x76, 0x61, 0x74, 0x61, 0x72, - 0x18, 0x07, 0x20, 0x01, 0x28, 0x09, 0x48, 0x00, 0x52, 0x06, 0x61, 0x76, 0x61, 0x74, 0x61, 0x72, - 0x88, 0x01, 0x01, 0x12, 0x20, 0x0a, 0x09, 0x6e, 0x69, 0x63, 0x6b, 0x5f, 0x6e, 0x61, 0x6d, 0x65, - 0x18, 0x08, 0x20, 0x01, 0x28, 0x09, 0x48, 0x01, 0x52, 0x08, 0x6e, 0x69, 0x63, 0x6b, 0x4e, 0x61, - 0x6d, 0x65, 0x88, 0x01, 0x01, 0x42, 0x09, 0x0a, 0x07, 0x5f, 0x61, 0x76, 0x61, 0x74, 0x61, 0x72, - 0x42, 0x0c, 0x0a, 0x0a, 0x5f, 0x6e, 0x69, 0x63, 0x6b, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x22, 0x44, - 0x0a, 0x12, 0x47, 0x65, 0x74, 0x41, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x49, 0x6e, 0x66, 0x6f, - 0x52, 0x65, 0x73, 0x70, 0x12, 0x2e, 0x0a, 0x04, 0x64, 0x61, 0x74, 0x61, 0x18, 0x01, 0x20, 0x01, - 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x6d, 0x65, 0x6d, 0x62, 0x65, 0x72, 0x2e, 0x43, 0x72, 0x65, 0x61, - 0x74, 0x65, 0x4c, 0x6f, 0x67, 0x69, 0x6e, 0x55, 0x73, 0x65, 0x72, 0x52, 0x65, 0x71, 0x52, 0x04, - 0x64, 0x61, 0x74, 0x61, 0x22, 0xa7, 0x03, 0x0a, 0x11, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x55, - 0x73, 0x65, 0x72, 0x49, 0x6e, 0x66, 0x6f, 0x52, 0x65, 0x71, 0x12, 0x10, 0x0a, 0x03, 0x75, 0x69, - 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x75, 0x69, 0x64, 0x12, 0x1f, 0x0a, 0x08, - 0x6c, 0x61, 0x6e, 0x67, 0x75, 0x61, 0x67, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x48, 0x00, - 0x52, 0x08, 0x6c, 0x61, 0x6e, 0x67, 0x75, 0x61, 0x67, 0x65, 0x88, 0x01, 0x01, 0x12, 0x1f, 0x0a, - 0x08, 0x63, 0x75, 0x72, 0x72, 0x65, 0x6e, 0x63, 0x79, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x48, - 0x01, 0x52, 0x08, 0x63, 0x75, 0x72, 0x72, 0x65, 0x6e, 0x63, 0x79, 0x88, 0x01, 0x01, 0x12, 0x20, - 0x0a, 0x09, 0x6e, 0x69, 0x63, 0x6b, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x04, 0x20, 0x01, 0x28, - 0x09, 0x48, 0x02, 0x52, 0x08, 0x6e, 0x69, 0x63, 0x6b, 0x4e, 0x61, 0x6d, 0x65, 0x88, 0x01, 0x01, - 0x12, 0x1b, 0x0a, 0x06, 0x61, 0x76, 0x61, 0x74, 0x61, 0x72, 0x18, 0x05, 0x20, 0x01, 0x28, 0x09, - 0x48, 0x03, 0x52, 0x06, 0x61, 0x76, 0x61, 0x74, 0x61, 0x72, 0x88, 0x01, 0x01, 0x12, 0x38, 0x0a, - 0x0b, 0x76, 0x65, 0x72, 0x69, 0x66, 0x79, 0x5f, 0x74, 0x79, 0x70, 0x65, 0x18, 0x06, 0x20, 0x01, - 0x28, 0x0e, 0x32, 0x12, 0x2e, 0x6d, 0x65, 0x6d, 0x62, 0x65, 0x72, 0x2e, 0x56, 0x65, 0x72, 0x69, - 0x66, 0x79, 0x54, 0x79, 0x70, 0x65, 0x48, 0x04, 0x52, 0x0a, 0x76, 0x65, 0x72, 0x69, 0x66, 0x79, - 0x54, 0x79, 0x70, 0x65, 0x88, 0x01, 0x01, 0x12, 0x35, 0x0a, 0x0a, 0x61, 0x6c, 0x61, 0x72, 0x6d, - 0x5f, 0x74, 0x79, 0x70, 0x65, 0x18, 0x07, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x11, 0x2e, 0x6d, 0x65, - 0x6d, 0x62, 0x65, 0x72, 0x2e, 0x41, 0x6c, 0x61, 0x72, 0x6d, 0x54, 0x79, 0x70, 0x65, 0x48, 0x05, - 0x52, 0x09, 0x61, 0x6c, 0x61, 0x72, 0x6d, 0x54, 0x79, 0x70, 0x65, 0x88, 0x01, 0x01, 0x12, 0x31, - 0x0a, 0x06, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x18, 0x08, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x14, - 0x2e, 0x6d, 0x65, 0x6d, 0x62, 0x65, 0x72, 0x2e, 0x4d, 0x65, 0x6d, 0x62, 0x65, 0x72, 0x53, 0x74, - 0x61, 0x74, 0x75, 0x73, 0x48, 0x06, 0x52, 0x06, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x88, 0x01, - 0x01, 0x42, 0x0b, 0x0a, 0x09, 0x5f, 0x6c, 0x61, 0x6e, 0x67, 0x75, 0x61, 0x67, 0x65, 0x42, 0x0b, - 0x0a, 0x09, 0x5f, 0x63, 0x75, 0x72, 0x72, 0x65, 0x6e, 0x63, 0x79, 0x42, 0x0c, 0x0a, 0x0a, 0x5f, - 0x6e, 0x69, 0x63, 0x6b, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x42, 0x09, 0x0a, 0x07, 0x5f, 0x61, 0x76, - 0x61, 0x74, 0x61, 0x72, 0x42, 0x0e, 0x0a, 0x0c, 0x5f, 0x76, 0x65, 0x72, 0x69, 0x66, 0x79, 0x5f, - 0x74, 0x79, 0x70, 0x65, 0x42, 0x0d, 0x0a, 0x0b, 0x5f, 0x61, 0x6c, 0x61, 0x72, 0x6d, 0x5f, 0x74, - 0x79, 0x70, 0x65, 0x42, 0x09, 0x0a, 0x07, 0x5f, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x22, 0x2e, - 0x0a, 0x12, 0x47, 0x65, 0x74, 0x55, 0x49, 0x44, 0x42, 0x79, 0x41, 0x63, 0x63, 0x6f, 0x75, 0x6e, - 0x74, 0x52, 0x65, 0x71, 0x12, 0x18, 0x0a, 0x07, 0x61, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x18, - 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x61, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x22, 0x41, - 0x0a, 0x13, 0x47, 0x65, 0x74, 0x55, 0x69, 0x64, 0x42, 0x79, 0x41, 0x63, 0x63, 0x6f, 0x75, 0x6e, - 0x74, 0x52, 0x65, 0x73, 0x70, 0x12, 0x10, 0x0a, 0x03, 0x75, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, - 0x28, 0x09, 0x52, 0x03, 0x75, 0x69, 0x64, 0x12, 0x18, 0x0a, 0x07, 0x61, 0x63, 0x63, 0x6f, 0x75, - 0x6e, 0x74, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x61, 0x63, 0x63, 0x6f, 0x75, 0x6e, - 0x74, 0x22, 0x5c, 0x0a, 0x0e, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x54, 0x6f, 0x6b, 0x65, 0x6e, - 0x52, 0x65, 0x71, 0x12, 0x18, 0x0a, 0x07, 0x61, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x18, 0x01, - 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x61, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x12, 0x14, 0x0a, - 0x05, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x74, 0x6f, - 0x6b, 0x65, 0x6e, 0x12, 0x1a, 0x0a, 0x08, 0x70, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x18, - 0x03, 0x20, 0x01, 0x28, 0x03, 0x52, 0x08, 0x70, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x22, - 0x4f, 0x0a, 0x16, 0x47, 0x65, 0x6e, 0x65, 0x72, 0x61, 0x74, 0x65, 0x52, 0x65, 0x66, 0x72, 0x65, - 0x73, 0x68, 0x43, 0x6f, 0x64, 0x65, 0x52, 0x65, 0x71, 0x12, 0x18, 0x0a, 0x07, 0x61, 0x63, 0x63, - 0x6f, 0x75, 0x6e, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x61, 0x63, 0x63, 0x6f, - 0x75, 0x6e, 0x74, 0x12, 0x1b, 0x0a, 0x09, 0x63, 0x6f, 0x64, 0x65, 0x5f, 0x74, 0x79, 0x70, 0x65, - 0x18, 0x02, 0x20, 0x01, 0x28, 0x05, 0x52, 0x08, 0x63, 0x6f, 0x64, 0x65, 0x54, 0x79, 0x70, 0x65, - 0x22, 0x2d, 0x0a, 0x0a, 0x56, 0x65, 0x72, 0x69, 0x66, 0x79, 0x43, 0x6f, 0x64, 0x65, 0x12, 0x1f, - 0x0a, 0x0b, 0x76, 0x65, 0x72, 0x69, 0x66, 0x79, 0x5f, 0x63, 0x6f, 0x64, 0x65, 0x18, 0x01, 0x20, - 0x01, 0x28, 0x09, 0x52, 0x0a, 0x76, 0x65, 0x72, 0x69, 0x66, 0x79, 0x43, 0x6f, 0x64, 0x65, 0x22, - 0x41, 0x0a, 0x17, 0x47, 0x65, 0x6e, 0x65, 0x72, 0x61, 0x74, 0x65, 0x52, 0x65, 0x66, 0x72, 0x65, - 0x73, 0x68, 0x43, 0x6f, 0x64, 0x65, 0x52, 0x65, 0x73, 0x70, 0x12, 0x26, 0x0a, 0x04, 0x64, 0x61, - 0x74, 0x61, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x12, 0x2e, 0x6d, 0x65, 0x6d, 0x62, 0x65, - 0x72, 0x2e, 0x56, 0x65, 0x72, 0x69, 0x66, 0x79, 0x43, 0x6f, 0x64, 0x65, 0x52, 0x04, 0x64, 0x61, - 0x74, 0x61, 0x22, 0x6e, 0x0a, 0x14, 0x56, 0x65, 0x72, 0x69, 0x66, 0x79, 0x52, 0x65, 0x66, 0x72, - 0x65, 0x73, 0x68, 0x43, 0x6f, 0x64, 0x65, 0x52, 0x65, 0x71, 0x12, 0x18, 0x0a, 0x07, 0x61, 0x63, - 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x61, 0x63, 0x63, - 0x6f, 0x75, 0x6e, 0x74, 0x12, 0x1b, 0x0a, 0x09, 0x63, 0x6f, 0x64, 0x65, 0x5f, 0x74, 0x79, 0x70, - 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x05, 0x52, 0x08, 0x63, 0x6f, 0x64, 0x65, 0x54, 0x79, 0x70, - 0x65, 0x12, 0x1f, 0x0a, 0x0b, 0x76, 0x65, 0x72, 0x69, 0x66, 0x79, 0x5f, 0x63, 0x6f, 0x64, 0x65, - 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0a, 0x76, 0x65, 0x72, 0x69, 0x66, 0x79, 0x43, 0x6f, - 0x64, 0x65, 0x22, 0x51, 0x0a, 0x0f, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x53, 0x74, 0x61, 0x74, - 0x75, 0x73, 0x52, 0x65, 0x71, 0x12, 0x10, 0x0a, 0x03, 0x75, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, - 0x28, 0x09, 0x52, 0x03, 0x75, 0x69, 0x64, 0x12, 0x2c, 0x0a, 0x06, 0x73, 0x74, 0x61, 0x74, 0x75, - 0x73, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x14, 0x2e, 0x6d, 0x65, 0x6d, 0x62, 0x65, 0x72, - 0x2e, 0x4d, 0x65, 0x6d, 0x62, 0x65, 0x72, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x52, 0x06, 0x73, - 0x74, 0x61, 0x74, 0x75, 0x73, 0x22, 0x52, 0x0a, 0x0e, 0x47, 0x65, 0x74, 0x55, 0x73, 0x65, 0x72, - 0x49, 0x6e, 0x66, 0x6f, 0x52, 0x65, 0x71, 0x12, 0x10, 0x0a, 0x03, 0x75, 0x69, 0x64, 0x18, 0x01, - 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x75, 0x69, 0x64, 0x12, 0x20, 0x0a, 0x09, 0x6e, 0x69, 0x63, - 0x6b, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x48, 0x00, 0x52, 0x08, - 0x6e, 0x69, 0x63, 0x6b, 0x4e, 0x61, 0x6d, 0x65, 0x88, 0x01, 0x01, 0x42, 0x0c, 0x0a, 0x0a, 0x5f, - 0x6e, 0x69, 0x63, 0x6b, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x22, 0xb1, 0x02, 0x0a, 0x08, 0x55, 0x73, - 0x65, 0x72, 0x49, 0x6e, 0x66, 0x6f, 0x12, 0x10, 0x0a, 0x03, 0x75, 0x69, 0x64, 0x18, 0x01, 0x20, - 0x01, 0x28, 0x09, 0x52, 0x03, 0x75, 0x69, 0x64, 0x12, 0x33, 0x0a, 0x0b, 0x76, 0x65, 0x72, 0x69, - 0x66, 0x79, 0x5f, 0x74, 0x79, 0x70, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x12, 0x2e, - 0x6d, 0x65, 0x6d, 0x62, 0x65, 0x72, 0x2e, 0x56, 0x65, 0x72, 0x69, 0x66, 0x79, 0x54, 0x79, 0x70, - 0x65, 0x52, 0x0a, 0x76, 0x65, 0x72, 0x69, 0x66, 0x79, 0x54, 0x79, 0x70, 0x65, 0x12, 0x30, 0x0a, - 0x0a, 0x61, 0x6c, 0x61, 0x72, 0x6d, 0x5f, 0x74, 0x79, 0x70, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, - 0x0e, 0x32, 0x11, 0x2e, 0x6d, 0x65, 0x6d, 0x62, 0x65, 0x72, 0x2e, 0x41, 0x6c, 0x61, 0x72, 0x6d, - 0x54, 0x79, 0x70, 0x65, 0x52, 0x09, 0x61, 0x6c, 0x61, 0x72, 0x6d, 0x54, 0x79, 0x70, 0x65, 0x12, - 0x2c, 0x0a, 0x06, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0e, 0x32, - 0x14, 0x2e, 0x6d, 0x65, 0x6d, 0x62, 0x65, 0x72, 0x2e, 0x4d, 0x65, 0x6d, 0x62, 0x65, 0x72, 0x53, - 0x74, 0x61, 0x74, 0x75, 0x73, 0x52, 0x06, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x12, 0x1a, 0x0a, - 0x08, 0x6c, 0x61, 0x6e, 0x67, 0x75, 0x61, 0x67, 0x65, 0x18, 0x05, 0x20, 0x01, 0x28, 0x09, 0x52, - 0x08, 0x6c, 0x61, 0x6e, 0x67, 0x75, 0x61, 0x67, 0x65, 0x12, 0x1a, 0x0a, 0x08, 0x63, 0x75, 0x72, - 0x72, 0x65, 0x6e, 0x63, 0x79, 0x18, 0x06, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x63, 0x75, 0x72, - 0x72, 0x65, 0x6e, 0x63, 0x79, 0x12, 0x16, 0x0a, 0x06, 0x61, 0x76, 0x61, 0x74, 0x61, 0x72, 0x18, - 0x07, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x61, 0x76, 0x61, 0x74, 0x61, 0x72, 0x12, 0x20, 0x0a, - 0x09, 0x6e, 0x69, 0x63, 0x6b, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x08, 0x20, 0x01, 0x28, 0x09, - 0x48, 0x00, 0x52, 0x08, 0x6e, 0x69, 0x63, 0x6b, 0x4e, 0x61, 0x6d, 0x65, 0x88, 0x01, 0x01, 0x42, - 0x0c, 0x0a, 0x0a, 0x5f, 0x6e, 0x69, 0x63, 0x6b, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x22, 0x37, 0x0a, - 0x0f, 0x47, 0x65, 0x74, 0x55, 0x73, 0x65, 0x72, 0x49, 0x6e, 0x66, 0x6f, 0x52, 0x65, 0x73, 0x70, - 0x12, 0x24, 0x0a, 0x04, 0x64, 0x61, 0x74, 0x61, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x10, - 0x2e, 0x6d, 0x65, 0x6d, 0x62, 0x65, 0x72, 0x2e, 0x55, 0x73, 0x65, 0x72, 0x49, 0x6e, 0x66, 0x6f, - 0x52, 0x04, 0x64, 0x61, 0x74, 0x61, 0x22, 0xa3, 0x03, 0x0a, 0x0f, 0x4c, 0x69, 0x73, 0x74, 0x55, - 0x73, 0x65, 0x72, 0x49, 0x6e, 0x66, 0x6f, 0x52, 0x65, 0x71, 0x12, 0x38, 0x0a, 0x0b, 0x76, 0x65, - 0x72, 0x69, 0x66, 0x79, 0x5f, 0x74, 0x79, 0x70, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0e, 0x32, - 0x12, 0x2e, 0x6d, 0x65, 0x6d, 0x62, 0x65, 0x72, 0x2e, 0x56, 0x65, 0x72, 0x69, 0x66, 0x79, 0x54, - 0x79, 0x70, 0x65, 0x48, 0x00, 0x52, 0x0a, 0x76, 0x65, 0x72, 0x69, 0x66, 0x79, 0x54, 0x79, 0x70, - 0x65, 0x88, 0x01, 0x01, 0x12, 0x35, 0x0a, 0x0a, 0x61, 0x6c, 0x61, 0x72, 0x6d, 0x5f, 0x74, 0x79, - 0x70, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x11, 0x2e, 0x6d, 0x65, 0x6d, 0x62, 0x65, - 0x72, 0x2e, 0x41, 0x6c, 0x61, 0x72, 0x6d, 0x54, 0x79, 0x70, 0x65, 0x48, 0x01, 0x52, 0x09, 0x61, - 0x6c, 0x61, 0x72, 0x6d, 0x54, 0x79, 0x70, 0x65, 0x88, 0x01, 0x01, 0x12, 0x31, 0x0a, 0x06, 0x73, - 0x74, 0x61, 0x74, 0x75, 0x73, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x14, 0x2e, 0x6d, 0x65, - 0x6d, 0x62, 0x65, 0x72, 0x2e, 0x4d, 0x65, 0x6d, 0x62, 0x65, 0x72, 0x53, 0x74, 0x61, 0x74, 0x75, - 0x73, 0x48, 0x02, 0x52, 0x06, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x88, 0x01, 0x01, 0x12, 0x2f, - 0x0a, 0x11, 0x63, 0x72, 0x65, 0x61, 0x74, 0x65, 0x5f, 0x73, 0x74, 0x61, 0x72, 0x74, 0x5f, 0x74, - 0x69, 0x6d, 0x65, 0x18, 0x04, 0x20, 0x01, 0x28, 0x03, 0x48, 0x03, 0x52, 0x0f, 0x63, 0x72, 0x65, - 0x61, 0x74, 0x65, 0x53, 0x74, 0x61, 0x72, 0x74, 0x54, 0x69, 0x6d, 0x65, 0x88, 0x01, 0x01, 0x12, - 0x2b, 0x0a, 0x0f, 0x63, 0x72, 0x65, 0x61, 0x74, 0x65, 0x5f, 0x65, 0x6e, 0x64, 0x5f, 0x74, 0x69, - 0x6d, 0x65, 0x18, 0x05, 0x20, 0x01, 0x28, 0x03, 0x48, 0x04, 0x52, 0x0d, 0x63, 0x72, 0x65, 0x61, - 0x74, 0x65, 0x45, 0x6e, 0x64, 0x54, 0x69, 0x6d, 0x65, 0x88, 0x01, 0x01, 0x12, 0x1b, 0x0a, 0x09, - 0x70, 0x61, 0x67, 0x65, 0x5f, 0x73, 0x69, 0x7a, 0x65, 0x18, 0x06, 0x20, 0x01, 0x28, 0x03, 0x52, - 0x08, 0x70, 0x61, 0x67, 0x65, 0x53, 0x69, 0x7a, 0x65, 0x12, 0x1d, 0x0a, 0x0a, 0x70, 0x61, 0x67, - 0x65, 0x5f, 0x69, 0x6e, 0x64, 0x65, 0x78, 0x18, 0x07, 0x20, 0x01, 0x28, 0x03, 0x52, 0x09, 0x70, - 0x61, 0x67, 0x65, 0x49, 0x6e, 0x64, 0x65, 0x78, 0x42, 0x0e, 0x0a, 0x0c, 0x5f, 0x76, 0x65, 0x72, - 0x69, 0x66, 0x79, 0x5f, 0x74, 0x79, 0x70, 0x65, 0x42, 0x0d, 0x0a, 0x0b, 0x5f, 0x61, 0x6c, 0x61, - 0x72, 0x6d, 0x5f, 0x74, 0x79, 0x70, 0x65, 0x42, 0x09, 0x0a, 0x07, 0x5f, 0x73, 0x74, 0x61, 0x74, - 0x75, 0x73, 0x42, 0x14, 0x0a, 0x12, 0x5f, 0x63, 0x72, 0x65, 0x61, 0x74, 0x65, 0x5f, 0x73, 0x74, - 0x61, 0x72, 0x74, 0x5f, 0x74, 0x69, 0x6d, 0x65, 0x42, 0x12, 0x0a, 0x10, 0x5f, 0x63, 0x72, 0x65, - 0x61, 0x74, 0x65, 0x5f, 0x65, 0x6e, 0x64, 0x5f, 0x74, 0x69, 0x6d, 0x65, 0x22, 0x5b, 0x0a, 0x10, - 0x4c, 0x69, 0x73, 0x74, 0x55, 0x73, 0x65, 0x72, 0x49, 0x6e, 0x66, 0x6f, 0x52, 0x65, 0x73, 0x70, - 0x12, 0x24, 0x0a, 0x04, 0x64, 0x61, 0x74, 0x61, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x10, - 0x2e, 0x6d, 0x65, 0x6d, 0x62, 0x65, 0x72, 0x2e, 0x55, 0x73, 0x65, 0x72, 0x49, 0x6e, 0x66, 0x6f, - 0x52, 0x04, 0x64, 0x61, 0x74, 0x61, 0x12, 0x21, 0x0a, 0x04, 0x70, 0x61, 0x67, 0x65, 0x18, 0x02, - 0x20, 0x01, 0x28, 0x0b, 0x32, 0x0d, 0x2e, 0x6d, 0x65, 0x6d, 0x62, 0x65, 0x72, 0x2e, 0x50, 0x61, - 0x67, 0x65, 0x72, 0x52, 0x04, 0x70, 0x61, 0x67, 0x65, 0x2a, 0x64, 0x0a, 0x0a, 0x56, 0x65, 0x72, - 0x69, 0x66, 0x79, 0x54, 0x79, 0x70, 0x65, 0x12, 0x0f, 0x0a, 0x0b, 0x56, 0x45, 0x52, 0x49, 0x46, - 0x59, 0x5f, 0x4e, 0x4f, 0x4e, 0x45, 0x10, 0x00, 0x12, 0x10, 0x0a, 0x0c, 0x56, 0x45, 0x52, 0x49, - 0x46, 0x59, 0x5f, 0x45, 0x4d, 0x41, 0x49, 0x4c, 0x10, 0x01, 0x12, 0x10, 0x0a, 0x0c, 0x56, 0x45, - 0x52, 0x49, 0x46, 0x59, 0x5f, 0x50, 0x48, 0x4f, 0x4e, 0x45, 0x10, 0x02, 0x12, 0x11, 0x0a, 0x0d, - 0x56, 0x45, 0x52, 0x49, 0x46, 0x59, 0x5f, 0x47, 0x4f, 0x4f, 0x47, 0x4c, 0x45, 0x10, 0x03, 0x12, - 0x0e, 0x0a, 0x0a, 0x56, 0x45, 0x52, 0x49, 0x46, 0x59, 0x5f, 0x4e, 0x4f, 0x54, 0x10, 0x04, 0x2a, - 0x3c, 0x0a, 0x09, 0x41, 0x6c, 0x61, 0x72, 0x6d, 0x54, 0x79, 0x70, 0x65, 0x12, 0x0e, 0x0a, 0x0a, - 0x41, 0x4c, 0x41, 0x52, 0x4d, 0x5f, 0x4e, 0x4f, 0x4e, 0x45, 0x10, 0x00, 0x12, 0x0d, 0x0a, 0x09, - 0x41, 0x4c, 0x41, 0x52, 0x4d, 0x5f, 0x4e, 0x4f, 0x54, 0x10, 0x01, 0x12, 0x10, 0x0a, 0x0c, 0x41, - 0x4c, 0x41, 0x52, 0x4d, 0x5f, 0x53, 0x59, 0x53, 0x54, 0x45, 0x4d, 0x10, 0x02, 0x2a, 0x8e, 0x01, - 0x0a, 0x0c, 0x4d, 0x65, 0x6d, 0x62, 0x65, 0x72, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x12, 0x0f, - 0x0a, 0x0b, 0x53, 0x54, 0x41, 0x54, 0x55, 0x53, 0x5f, 0x4e, 0x4f, 0x4e, 0x45, 0x10, 0x00, 0x12, - 0x11, 0x0a, 0x0d, 0x53, 0x54, 0x41, 0x54, 0x55, 0x53, 0x5f, 0x56, 0x45, 0x52, 0x49, 0x46, 0x59, - 0x10, 0x01, 0x12, 0x13, 0x0a, 0x0f, 0x53, 0x54, 0x41, 0x54, 0x55, 0x53, 0x5f, 0x43, 0x4f, 0x4d, - 0x50, 0x4c, 0x45, 0x54, 0x45, 0x10, 0x02, 0x12, 0x12, 0x0a, 0x0e, 0x53, 0x54, 0x41, 0x54, 0x55, - 0x53, 0x5f, 0x44, 0x49, 0x53, 0x41, 0x42, 0x4c, 0x45, 0x10, 0x03, 0x12, 0x10, 0x0a, 0x0c, 0x53, - 0x54, 0x41, 0x54, 0x55, 0x53, 0x5f, 0x45, 0x4d, 0x41, 0x49, 0x4c, 0x10, 0x04, 0x12, 0x10, 0x0a, - 0x0c, 0x53, 0x54, 0x41, 0x54, 0x55, 0x53, 0x5f, 0x50, 0x48, 0x4f, 0x4e, 0x45, 0x10, 0x05, 0x12, - 0x0d, 0x0a, 0x09, 0x53, 0x54, 0x41, 0x54, 0x55, 0x53, 0x5f, 0x47, 0x41, 0x10, 0x06, 0x32, 0xac, - 0x06, 0x0a, 0x07, 0x41, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x12, 0x3f, 0x0a, 0x11, 0x43, 0x72, - 0x65, 0x61, 0x74, 0x65, 0x55, 0x73, 0x65, 0x72, 0x41, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x12, - 0x1a, 0x2e, 0x6d, 0x65, 0x6d, 0x62, 0x65, 0x72, 0x2e, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x4c, - 0x6f, 0x67, 0x69, 0x6e, 0x55, 0x73, 0x65, 0x72, 0x52, 0x65, 0x71, 0x1a, 0x0e, 0x2e, 0x6d, 0x65, - 0x6d, 0x62, 0x65, 0x72, 0x2e, 0x4f, 0x4b, 0x52, 0x65, 0x73, 0x70, 0x12, 0x4c, 0x0a, 0x12, 0x47, - 0x65, 0x74, 0x55, 0x73, 0x65, 0x72, 0x41, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x49, 0x6e, 0x66, - 0x6f, 0x12, 0x1a, 0x2e, 0x6d, 0x65, 0x6d, 0x62, 0x65, 0x72, 0x2e, 0x47, 0x65, 0x74, 0x55, 0x49, - 0x44, 0x42, 0x79, 0x41, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x52, 0x65, 0x71, 0x1a, 0x1a, 0x2e, - 0x6d, 0x65, 0x6d, 0x62, 0x65, 0x72, 0x2e, 0x47, 0x65, 0x74, 0x41, 0x63, 0x63, 0x6f, 0x75, 0x6e, - 0x74, 0x49, 0x6e, 0x66, 0x6f, 0x52, 0x65, 0x73, 0x70, 0x12, 0x39, 0x0a, 0x0f, 0x55, 0x70, 0x64, - 0x61, 0x74, 0x65, 0x55, 0x73, 0x65, 0x72, 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x12, 0x16, 0x2e, 0x6d, - 0x65, 0x6d, 0x62, 0x65, 0x72, 0x2e, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x54, 0x6f, 0x6b, 0x65, - 0x6e, 0x52, 0x65, 0x71, 0x1a, 0x0e, 0x2e, 0x6d, 0x65, 0x6d, 0x62, 0x65, 0x72, 0x2e, 0x4f, 0x4b, - 0x52, 0x65, 0x73, 0x70, 0x12, 0x4a, 0x0a, 0x0f, 0x47, 0x65, 0x74, 0x55, 0x69, 0x64, 0x42, 0x79, - 0x41, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x12, 0x1a, 0x2e, 0x6d, 0x65, 0x6d, 0x62, 0x65, 0x72, - 0x2e, 0x47, 0x65, 0x74, 0x55, 0x49, 0x44, 0x42, 0x79, 0x41, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, - 0x52, 0x65, 0x71, 0x1a, 0x1b, 0x2e, 0x6d, 0x65, 0x6d, 0x62, 0x65, 0x72, 0x2e, 0x47, 0x65, 0x74, - 0x55, 0x69, 0x64, 0x42, 0x79, 0x41, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x52, 0x65, 0x73, 0x70, - 0x12, 0x3e, 0x0a, 0x0b, 0x42, 0x69, 0x6e, 0x64, 0x41, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x12, - 0x16, 0x2e, 0x6d, 0x65, 0x6d, 0x62, 0x65, 0x72, 0x2e, 0x42, 0x69, 0x6e, 0x64, 0x69, 0x6e, 0x67, - 0x55, 0x73, 0x65, 0x72, 0x52, 0x65, 0x71, 0x1a, 0x17, 0x2e, 0x6d, 0x65, 0x6d, 0x62, 0x65, 0x72, - 0x2e, 0x42, 0x69, 0x6e, 0x64, 0x69, 0x6e, 0x67, 0x55, 0x73, 0x65, 0x72, 0x52, 0x65, 0x73, 0x70, - 0x12, 0x39, 0x0a, 0x0c, 0x42, 0x69, 0x6e, 0x64, 0x55, 0x73, 0x65, 0x72, 0x49, 0x6e, 0x66, 0x6f, - 0x12, 0x19, 0x2e, 0x6d, 0x65, 0x6d, 0x62, 0x65, 0x72, 0x2e, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, - 0x55, 0x73, 0x65, 0x72, 0x49, 0x6e, 0x66, 0x6f, 0x52, 0x65, 0x71, 0x1a, 0x0e, 0x2e, 0x6d, 0x65, - 0x6d, 0x62, 0x65, 0x72, 0x2e, 0x4f, 0x4b, 0x52, 0x65, 0x73, 0x70, 0x12, 0x3b, 0x0a, 0x0e, 0x55, - 0x70, 0x64, 0x61, 0x74, 0x65, 0x55, 0x73, 0x65, 0x72, 0x49, 0x6e, 0x66, 0x6f, 0x12, 0x19, 0x2e, - 0x6d, 0x65, 0x6d, 0x62, 0x65, 0x72, 0x2e, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x55, 0x73, 0x65, - 0x72, 0x49, 0x6e, 0x66, 0x6f, 0x52, 0x65, 0x71, 0x1a, 0x0e, 0x2e, 0x6d, 0x65, 0x6d, 0x62, 0x65, - 0x72, 0x2e, 0x4f, 0x4b, 0x52, 0x65, 0x73, 0x70, 0x12, 0x37, 0x0a, 0x0c, 0x55, 0x70, 0x64, 0x61, - 0x74, 0x65, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x12, 0x17, 0x2e, 0x6d, 0x65, 0x6d, 0x62, 0x65, - 0x72, 0x2e, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x52, 0x65, - 0x71, 0x1a, 0x0e, 0x2e, 0x6d, 0x65, 0x6d, 0x62, 0x65, 0x72, 0x2e, 0x4f, 0x4b, 0x52, 0x65, 0x73, - 0x70, 0x12, 0x3e, 0x0a, 0x0b, 0x47, 0x65, 0x74, 0x55, 0x73, 0x65, 0x72, 0x49, 0x6e, 0x66, 0x6f, - 0x12, 0x16, 0x2e, 0x6d, 0x65, 0x6d, 0x62, 0x65, 0x72, 0x2e, 0x47, 0x65, 0x74, 0x55, 0x73, 0x65, - 0x72, 0x49, 0x6e, 0x66, 0x6f, 0x52, 0x65, 0x71, 0x1a, 0x17, 0x2e, 0x6d, 0x65, 0x6d, 0x62, 0x65, - 0x72, 0x2e, 0x47, 0x65, 0x74, 0x55, 0x73, 0x65, 0x72, 0x49, 0x6e, 0x66, 0x6f, 0x52, 0x65, 0x73, - 0x70, 0x12, 0x3f, 0x0a, 0x0a, 0x4c, 0x69, 0x73, 0x74, 0x4d, 0x65, 0x6d, 0x62, 0x65, 0x72, 0x12, - 0x17, 0x2e, 0x6d, 0x65, 0x6d, 0x62, 0x65, 0x72, 0x2e, 0x4c, 0x69, 0x73, 0x74, 0x55, 0x73, 0x65, - 0x72, 0x49, 0x6e, 0x66, 0x6f, 0x52, 0x65, 0x71, 0x1a, 0x18, 0x2e, 0x6d, 0x65, 0x6d, 0x62, 0x65, - 0x72, 0x2e, 0x4c, 0x69, 0x73, 0x74, 0x55, 0x73, 0x65, 0x72, 0x49, 0x6e, 0x66, 0x6f, 0x52, 0x65, - 0x73, 0x70, 0x12, 0x56, 0x0a, 0x13, 0x47, 0x65, 0x6e, 0x65, 0x72, 0x61, 0x74, 0x65, 0x52, 0x65, - 0x66, 0x72, 0x65, 0x73, 0x68, 0x43, 0x6f, 0x64, 0x65, 0x12, 0x1e, 0x2e, 0x6d, 0x65, 0x6d, 0x62, - 0x65, 0x72, 0x2e, 0x47, 0x65, 0x6e, 0x65, 0x72, 0x61, 0x74, 0x65, 0x52, 0x65, 0x66, 0x72, 0x65, - 0x73, 0x68, 0x43, 0x6f, 0x64, 0x65, 0x52, 0x65, 0x71, 0x1a, 0x1f, 0x2e, 0x6d, 0x65, 0x6d, 0x62, - 0x65, 0x72, 0x2e, 0x47, 0x65, 0x6e, 0x65, 0x72, 0x61, 0x74, 0x65, 0x52, 0x65, 0x66, 0x72, 0x65, - 0x73, 0x68, 0x43, 0x6f, 0x64, 0x65, 0x52, 0x65, 0x73, 0x70, 0x12, 0x41, 0x0a, 0x11, 0x56, 0x65, - 0x72, 0x69, 0x66, 0x79, 0x52, 0x65, 0x66, 0x72, 0x65, 0x73, 0x68, 0x43, 0x6f, 0x64, 0x65, 0x12, - 0x1c, 0x2e, 0x6d, 0x65, 0x6d, 0x62, 0x65, 0x72, 0x2e, 0x56, 0x65, 0x72, 0x69, 0x66, 0x79, 0x52, - 0x65, 0x66, 0x72, 0x65, 0x73, 0x68, 0x43, 0x6f, 0x64, 0x65, 0x52, 0x65, 0x71, 0x1a, 0x0e, 0x2e, - 0x6d, 0x65, 0x6d, 0x62, 0x65, 0x72, 0x2e, 0x4f, 0x4b, 0x52, 0x65, 0x73, 0x70, 0x42, 0x0a, 0x5a, - 0x08, 0x2e, 0x2f, 0x6d, 0x65, 0x6d, 0x62, 0x65, 0x72, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, - 0x33, -} - -var ( - file_generate_protobuf_service_proto_rawDescOnce sync.Once - file_generate_protobuf_service_proto_rawDescData = file_generate_protobuf_service_proto_rawDesc -) - -func file_generate_protobuf_service_proto_rawDescGZIP() []byte { - file_generate_protobuf_service_proto_rawDescOnce.Do(func() { - file_generate_protobuf_service_proto_rawDescData = protoimpl.X.CompressGZIP(file_generate_protobuf_service_proto_rawDescData) - }) - return file_generate_protobuf_service_proto_rawDescData -} - -var file_generate_protobuf_service_proto_enumTypes = make([]protoimpl.EnumInfo, 3) -var file_generate_protobuf_service_proto_msgTypes = make([]protoimpl.MessageInfo, 22) -var file_generate_protobuf_service_proto_goTypes = []any{ - (VerifyType)(0), // 0: member.VerifyType - (AlarmType)(0), // 1: member.AlarmType - (MemberStatus)(0), // 2: member.MemberStatus - (*OKResp)(nil), // 3: member.OKResp - (*NoneReq)(nil), // 4: member.NoneReq - (*Pager)(nil), // 5: member.Pager - (*CreateLoginUserReq)(nil), // 6: member.CreateLoginUserReq - (*BindingUserReq)(nil), // 7: member.BindingUserReq - (*BindingUserResp)(nil), // 8: member.BindingUserResp - (*CreateUserInfoReq)(nil), // 9: member.CreateUserInfoReq - (*GetAccountInfoResp)(nil), // 10: member.GetAccountInfoResp - (*UpdateUserInfoReq)(nil), // 11: member.UpdateUserInfoReq - (*GetUIDByAccountReq)(nil), // 12: member.GetUIDByAccountReq - (*GetUidByAccountResp)(nil), // 13: member.GetUidByAccountResp - (*UpdateTokenReq)(nil), // 14: member.UpdateTokenReq - (*GenerateRefreshCodeReq)(nil), // 15: member.GenerateRefreshCodeReq - (*VerifyCode)(nil), // 16: member.VerifyCode - (*GenerateRefreshCodeResp)(nil), // 17: member.GenerateRefreshCodeResp - (*VerifyRefreshCodeReq)(nil), // 18: member.VerifyRefreshCodeReq - (*UpdateStatusReq)(nil), // 19: member.UpdateStatusReq - (*GetUserInfoReq)(nil), // 20: member.GetUserInfoReq - (*UserInfo)(nil), // 21: member.UserInfo - (*GetUserInfoResp)(nil), // 22: member.GetUserInfoResp - (*ListUserInfoReq)(nil), // 23: member.ListUserInfoReq - (*ListUserInfoResp)(nil), // 24: member.ListUserInfoResp -} -var file_generate_protobuf_service_proto_depIdxs = []int32{ - 0, // 0: member.CreateUserInfoReq.verify_type:type_name -> member.VerifyType - 1, // 1: member.CreateUserInfoReq.alarm_type:type_name -> member.AlarmType - 2, // 2: member.CreateUserInfoReq.status:type_name -> member.MemberStatus - 6, // 3: member.GetAccountInfoResp.data:type_name -> member.CreateLoginUserReq - 0, // 4: member.UpdateUserInfoReq.verify_type:type_name -> member.VerifyType - 1, // 5: member.UpdateUserInfoReq.alarm_type:type_name -> member.AlarmType - 2, // 6: member.UpdateUserInfoReq.status:type_name -> member.MemberStatus - 16, // 7: member.GenerateRefreshCodeResp.data:type_name -> member.VerifyCode - 2, // 8: member.UpdateStatusReq.status:type_name -> member.MemberStatus - 0, // 9: member.UserInfo.verify_type:type_name -> member.VerifyType - 1, // 10: member.UserInfo.alarm_type:type_name -> member.AlarmType - 2, // 11: member.UserInfo.status:type_name -> member.MemberStatus - 21, // 12: member.GetUserInfoResp.data:type_name -> member.UserInfo - 0, // 13: member.ListUserInfoReq.verify_type:type_name -> member.VerifyType - 1, // 14: member.ListUserInfoReq.alarm_type:type_name -> member.AlarmType - 2, // 15: member.ListUserInfoReq.status:type_name -> member.MemberStatus - 21, // 16: member.ListUserInfoResp.data:type_name -> member.UserInfo - 5, // 17: member.ListUserInfoResp.page:type_name -> member.Pager - 6, // 18: member.Account.CreateUserAccount:input_type -> member.CreateLoginUserReq - 12, // 19: member.Account.GetUserAccountInfo:input_type -> member.GetUIDByAccountReq - 14, // 20: member.Account.UpdateUserToken:input_type -> member.UpdateTokenReq - 12, // 21: member.Account.GetUidByAccount:input_type -> member.GetUIDByAccountReq - 7, // 22: member.Account.BindAccount:input_type -> member.BindingUserReq - 9, // 23: member.Account.BindUserInfo:input_type -> member.CreateUserInfoReq - 11, // 24: member.Account.UpdateUserInfo:input_type -> member.UpdateUserInfoReq - 19, // 25: member.Account.UpdateStatus:input_type -> member.UpdateStatusReq - 20, // 26: member.Account.GetUserInfo:input_type -> member.GetUserInfoReq - 23, // 27: member.Account.ListMember:input_type -> member.ListUserInfoReq - 15, // 28: member.Account.GenerateRefreshCode:input_type -> member.GenerateRefreshCodeReq - 18, // 29: member.Account.VerifyRefreshCode:input_type -> member.VerifyRefreshCodeReq - 3, // 30: member.Account.CreateUserAccount:output_type -> member.OKResp - 10, // 31: member.Account.GetUserAccountInfo:output_type -> member.GetAccountInfoResp - 3, // 32: member.Account.UpdateUserToken:output_type -> member.OKResp - 13, // 33: member.Account.GetUidByAccount:output_type -> member.GetUidByAccountResp - 8, // 34: member.Account.BindAccount:output_type -> member.BindingUserResp - 3, // 35: member.Account.BindUserInfo:output_type -> member.OKResp - 3, // 36: member.Account.UpdateUserInfo:output_type -> member.OKResp - 3, // 37: member.Account.UpdateStatus:output_type -> member.OKResp - 22, // 38: member.Account.GetUserInfo:output_type -> member.GetUserInfoResp - 24, // 39: member.Account.ListMember:output_type -> member.ListUserInfoResp - 17, // 40: member.Account.GenerateRefreshCode:output_type -> member.GenerateRefreshCodeResp - 3, // 41: member.Account.VerifyRefreshCode:output_type -> member.OKResp - 30, // [30:42] is the sub-list for method output_type - 18, // [18:30] is the sub-list for method input_type - 18, // [18:18] is the sub-list for extension type_name - 18, // [18:18] is the sub-list for extension extendee - 0, // [0:18] is the sub-list for field type_name -} - -func init() { file_generate_protobuf_service_proto_init() } -func file_generate_protobuf_service_proto_init() { - if File_generate_protobuf_service_proto != nil { - return - } - if !protoimpl.UnsafeEnabled { - file_generate_protobuf_service_proto_msgTypes[0].Exporter = func(v any, i int) any { - switch v := v.(*OKResp); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_generate_protobuf_service_proto_msgTypes[1].Exporter = func(v any, i int) any { - switch v := v.(*NoneReq); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_generate_protobuf_service_proto_msgTypes[2].Exporter = func(v any, i int) any { - switch v := v.(*Pager); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_generate_protobuf_service_proto_msgTypes[3].Exporter = func(v any, i int) any { - switch v := v.(*CreateLoginUserReq); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_generate_protobuf_service_proto_msgTypes[4].Exporter = func(v any, i int) any { - switch v := v.(*BindingUserReq); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_generate_protobuf_service_proto_msgTypes[5].Exporter = func(v any, i int) any { - switch v := v.(*BindingUserResp); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_generate_protobuf_service_proto_msgTypes[6].Exporter = func(v any, i int) any { - switch v := v.(*CreateUserInfoReq); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_generate_protobuf_service_proto_msgTypes[7].Exporter = func(v any, i int) any { - switch v := v.(*GetAccountInfoResp); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_generate_protobuf_service_proto_msgTypes[8].Exporter = func(v any, i int) any { - switch v := v.(*UpdateUserInfoReq); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_generate_protobuf_service_proto_msgTypes[9].Exporter = func(v any, i int) any { - switch v := v.(*GetUIDByAccountReq); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_generate_protobuf_service_proto_msgTypes[10].Exporter = func(v any, i int) any { - switch v := v.(*GetUidByAccountResp); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_generate_protobuf_service_proto_msgTypes[11].Exporter = func(v any, i int) any { - switch v := v.(*UpdateTokenReq); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_generate_protobuf_service_proto_msgTypes[12].Exporter = func(v any, i int) any { - switch v := v.(*GenerateRefreshCodeReq); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_generate_protobuf_service_proto_msgTypes[13].Exporter = func(v any, i int) any { - switch v := v.(*VerifyCode); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_generate_protobuf_service_proto_msgTypes[14].Exporter = func(v any, i int) any { - switch v := v.(*GenerateRefreshCodeResp); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_generate_protobuf_service_proto_msgTypes[15].Exporter = func(v any, i int) any { - switch v := v.(*VerifyRefreshCodeReq); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_generate_protobuf_service_proto_msgTypes[16].Exporter = func(v any, i int) any { - switch v := v.(*UpdateStatusReq); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_generate_protobuf_service_proto_msgTypes[17].Exporter = func(v any, i int) any { - switch v := v.(*GetUserInfoReq); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_generate_protobuf_service_proto_msgTypes[18].Exporter = func(v any, i int) any { - switch v := v.(*UserInfo); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_generate_protobuf_service_proto_msgTypes[19].Exporter = func(v any, i int) any { - switch v := v.(*GetUserInfoResp); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_generate_protobuf_service_proto_msgTypes[20].Exporter = func(v any, i int) any { - switch v := v.(*ListUserInfoReq); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_generate_protobuf_service_proto_msgTypes[21].Exporter = func(v any, i int) any { - switch v := v.(*ListUserInfoResp); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - } - file_generate_protobuf_service_proto_msgTypes[6].OneofWrappers = []any{} - file_generate_protobuf_service_proto_msgTypes[8].OneofWrappers = []any{} - file_generate_protobuf_service_proto_msgTypes[17].OneofWrappers = []any{} - file_generate_protobuf_service_proto_msgTypes[18].OneofWrappers = []any{} - file_generate_protobuf_service_proto_msgTypes[20].OneofWrappers = []any{} - type x struct{} - out := protoimpl.TypeBuilder{ - File: protoimpl.DescBuilder{ - GoPackagePath: reflect.TypeOf(x{}).PkgPath(), - RawDescriptor: file_generate_protobuf_service_proto_rawDesc, - NumEnums: 3, - NumMessages: 22, - NumExtensions: 0, - NumServices: 1, - }, - GoTypes: file_generate_protobuf_service_proto_goTypes, - DependencyIndexes: file_generate_protobuf_service_proto_depIdxs, - EnumInfos: file_generate_protobuf_service_proto_enumTypes, - MessageInfos: file_generate_protobuf_service_proto_msgTypes, - }.Build() - File_generate_protobuf_service_proto = out.File - file_generate_protobuf_service_proto_rawDesc = nil - file_generate_protobuf_service_proto_goTypes = nil - file_generate_protobuf_service_proto_depIdxs = nil -} diff --git a/gen_result/pb/member/service_grpc.pb.go b/gen_result/pb/member/service_grpc.pb.go deleted file mode 100644 index 99d1ee3..0000000 --- a/gen_result/pb/member/service_grpc.pb.go +++ /dev/null @@ -1,553 +0,0 @@ -// Code generated by protoc-gen-go-grpc. DO NOT EDIT. -// versions: -// - protoc-gen-go-grpc v1.4.0 -// - protoc v3.19.4 -// source: generate/protobuf/service.proto - -package member - -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.62.0 or later. -const _ = grpc.SupportPackageIsVersion8 - -const ( - Account_CreateUserAccount_FullMethodName = "/member.Account/CreateUserAccount" - Account_GetUserAccountInfo_FullMethodName = "/member.Account/GetUserAccountInfo" - Account_UpdateUserToken_FullMethodName = "/member.Account/UpdateUserToken" - Account_GetUidByAccount_FullMethodName = "/member.Account/GetUidByAccount" - Account_BindAccount_FullMethodName = "/member.Account/BindAccount" - Account_BindUserInfo_FullMethodName = "/member.Account/BindUserInfo" - Account_UpdateUserInfo_FullMethodName = "/member.Account/UpdateUserInfo" - Account_UpdateStatus_FullMethodName = "/member.Account/UpdateStatus" - Account_GetUserInfo_FullMethodName = "/member.Account/GetUserInfo" - Account_ListMember_FullMethodName = "/member.Account/ListMember" - Account_GenerateRefreshCode_FullMethodName = "/member.Account/GenerateRefreshCode" - Account_VerifyRefreshCode_FullMethodName = "/member.Account/VerifyRefreshCode" -) - -// AccountClient is the client API for Account 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 AccountClient interface { - // CreateUserAccount 建立帳號與密碼 -> 可登入,但可不可以做其他事情看業務流程,也可以只註冊就好 - CreateUserAccount(ctx context.Context, in *CreateLoginUserReq, opts ...grpc.CallOption) (*OKResp, error) - // GetUserAccountInfo 取得帳號密碼資料 - GetUserAccountInfo(ctx context.Context, in *GetUIDByAccountReq, opts ...grpc.CallOption) (*GetAccountInfoResp, error) - // UpdateUserToken 更新密碼 - UpdateUserToken(ctx context.Context, in *UpdateTokenReq, opts ...grpc.CallOption) (*OKResp, error) - // GetUidByAccount 用帳號換取 UID - GetUidByAccount(ctx context.Context, in *GetUIDByAccountReq, opts ...grpc.CallOption) (*GetUidByAccountResp, error) - // BindAccount 綁定帳號 -> account bind to UID - BindAccount(ctx context.Context, in *BindingUserReq, opts ...grpc.CallOption) (*BindingUserResp, error) - // BindUserInfo 初次,綁定 User Info - BindUserInfo(ctx context.Context, in *CreateUserInfoReq, opts ...grpc.CallOption) (*OKResp, error) - // UpdateUserInfo 更新 User Info - UpdateUserInfo(ctx context.Context, in *UpdateUserInfoReq, opts ...grpc.CallOption) (*OKResp, error) - // UpdateStatus 修改狀態 - UpdateStatus(ctx context.Context, in *UpdateStatusReq, opts ...grpc.CallOption) (*OKResp, error) - // GetUserInfo 取得會員資訊 - GetUserInfo(ctx context.Context, in *GetUserInfoReq, opts ...grpc.CallOption) (*GetUserInfoResp, error) - // ListMember 取得會員列表 - ListMember(ctx context.Context, in *ListUserInfoReq, opts ...grpc.CallOption) (*ListUserInfoResp, error) - // GenerateRefreshCode 這個帳號驗證碼(十分鐘),通用的 - GenerateRefreshCode(ctx context.Context, in *GenerateRefreshCodeReq, opts ...grpc.CallOption) (*GenerateRefreshCodeResp, error) - // VerifyRefreshCode 驗證忘記密碼 token - VerifyRefreshCode(ctx context.Context, in *VerifyRefreshCodeReq, opts ...grpc.CallOption) (*OKResp, error) -} - -type accountClient struct { - cc grpc.ClientConnInterface -} - -func NewAccountClient(cc grpc.ClientConnInterface) AccountClient { - return &accountClient{cc} -} - -func (c *accountClient) CreateUserAccount(ctx context.Context, in *CreateLoginUserReq, opts ...grpc.CallOption) (*OKResp, error) { - cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) - out := new(OKResp) - err := c.cc.Invoke(ctx, Account_CreateUserAccount_FullMethodName, in, out, cOpts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *accountClient) GetUserAccountInfo(ctx context.Context, in *GetUIDByAccountReq, opts ...grpc.CallOption) (*GetAccountInfoResp, error) { - cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) - out := new(GetAccountInfoResp) - err := c.cc.Invoke(ctx, Account_GetUserAccountInfo_FullMethodName, in, out, cOpts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *accountClient) UpdateUserToken(ctx context.Context, in *UpdateTokenReq, opts ...grpc.CallOption) (*OKResp, error) { - cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) - out := new(OKResp) - err := c.cc.Invoke(ctx, Account_UpdateUserToken_FullMethodName, in, out, cOpts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *accountClient) GetUidByAccount(ctx context.Context, in *GetUIDByAccountReq, opts ...grpc.CallOption) (*GetUidByAccountResp, error) { - cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) - out := new(GetUidByAccountResp) - err := c.cc.Invoke(ctx, Account_GetUidByAccount_FullMethodName, in, out, cOpts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *accountClient) BindAccount(ctx context.Context, in *BindingUserReq, opts ...grpc.CallOption) (*BindingUserResp, error) { - cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) - out := new(BindingUserResp) - err := c.cc.Invoke(ctx, Account_BindAccount_FullMethodName, in, out, cOpts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *accountClient) BindUserInfo(ctx context.Context, in *CreateUserInfoReq, opts ...grpc.CallOption) (*OKResp, error) { - cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) - out := new(OKResp) - err := c.cc.Invoke(ctx, Account_BindUserInfo_FullMethodName, in, out, cOpts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *accountClient) UpdateUserInfo(ctx context.Context, in *UpdateUserInfoReq, opts ...grpc.CallOption) (*OKResp, error) { - cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) - out := new(OKResp) - err := c.cc.Invoke(ctx, Account_UpdateUserInfo_FullMethodName, in, out, cOpts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *accountClient) UpdateStatus(ctx context.Context, in *UpdateStatusReq, opts ...grpc.CallOption) (*OKResp, error) { - cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) - out := new(OKResp) - err := c.cc.Invoke(ctx, Account_UpdateStatus_FullMethodName, in, out, cOpts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *accountClient) GetUserInfo(ctx context.Context, in *GetUserInfoReq, opts ...grpc.CallOption) (*GetUserInfoResp, error) { - cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) - out := new(GetUserInfoResp) - err := c.cc.Invoke(ctx, Account_GetUserInfo_FullMethodName, in, out, cOpts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *accountClient) ListMember(ctx context.Context, in *ListUserInfoReq, opts ...grpc.CallOption) (*ListUserInfoResp, error) { - cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) - out := new(ListUserInfoResp) - err := c.cc.Invoke(ctx, Account_ListMember_FullMethodName, in, out, cOpts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *accountClient) GenerateRefreshCode(ctx context.Context, in *GenerateRefreshCodeReq, opts ...grpc.CallOption) (*GenerateRefreshCodeResp, error) { - cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) - out := new(GenerateRefreshCodeResp) - err := c.cc.Invoke(ctx, Account_GenerateRefreshCode_FullMethodName, in, out, cOpts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *accountClient) VerifyRefreshCode(ctx context.Context, in *VerifyRefreshCodeReq, opts ...grpc.CallOption) (*OKResp, error) { - cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) - out := new(OKResp) - err := c.cc.Invoke(ctx, Account_VerifyRefreshCode_FullMethodName, in, out, cOpts...) - if err != nil { - return nil, err - } - return out, nil -} - -// AccountServer is the server API for Account service. -// All implementations must embed UnimplementedAccountServer -// for forward compatibility -type AccountServer interface { - // CreateUserAccount 建立帳號與密碼 -> 可登入,但可不可以做其他事情看業務流程,也可以只註冊就好 - CreateUserAccount(context.Context, *CreateLoginUserReq) (*OKResp, error) - // GetUserAccountInfo 取得帳號密碼資料 - GetUserAccountInfo(context.Context, *GetUIDByAccountReq) (*GetAccountInfoResp, error) - // UpdateUserToken 更新密碼 - UpdateUserToken(context.Context, *UpdateTokenReq) (*OKResp, error) - // GetUidByAccount 用帳號換取 UID - GetUidByAccount(context.Context, *GetUIDByAccountReq) (*GetUidByAccountResp, error) - // BindAccount 綁定帳號 -> account bind to UID - BindAccount(context.Context, *BindingUserReq) (*BindingUserResp, error) - // BindUserInfo 初次,綁定 User Info - BindUserInfo(context.Context, *CreateUserInfoReq) (*OKResp, error) - // UpdateUserInfo 更新 User Info - UpdateUserInfo(context.Context, *UpdateUserInfoReq) (*OKResp, error) - // UpdateStatus 修改狀態 - UpdateStatus(context.Context, *UpdateStatusReq) (*OKResp, error) - // GetUserInfo 取得會員資訊 - GetUserInfo(context.Context, *GetUserInfoReq) (*GetUserInfoResp, error) - // ListMember 取得會員列表 - ListMember(context.Context, *ListUserInfoReq) (*ListUserInfoResp, error) - // GenerateRefreshCode 這個帳號驗證碼(十分鐘),通用的 - GenerateRefreshCode(context.Context, *GenerateRefreshCodeReq) (*GenerateRefreshCodeResp, error) - // VerifyRefreshCode 驗證忘記密碼 token - VerifyRefreshCode(context.Context, *VerifyRefreshCodeReq) (*OKResp, error) - mustEmbedUnimplementedAccountServer() -} - -// UnimplementedAccountServer must be embedded to have forward compatible implementations. -type UnimplementedAccountServer struct { -} - -func (UnimplementedAccountServer) CreateUserAccount(context.Context, *CreateLoginUserReq) (*OKResp, error) { - return nil, status.Errorf(codes.Unimplemented, "method CreateUserAccount not implemented") -} -func (UnimplementedAccountServer) GetUserAccountInfo(context.Context, *GetUIDByAccountReq) (*GetAccountInfoResp, error) { - return nil, status.Errorf(codes.Unimplemented, "method GetUserAccountInfo not implemented") -} -func (UnimplementedAccountServer) UpdateUserToken(context.Context, *UpdateTokenReq) (*OKResp, error) { - return nil, status.Errorf(codes.Unimplemented, "method UpdateUserToken not implemented") -} -func (UnimplementedAccountServer) GetUidByAccount(context.Context, *GetUIDByAccountReq) (*GetUidByAccountResp, error) { - return nil, status.Errorf(codes.Unimplemented, "method GetUidByAccount not implemented") -} -func (UnimplementedAccountServer) BindAccount(context.Context, *BindingUserReq) (*BindingUserResp, error) { - return nil, status.Errorf(codes.Unimplemented, "method BindAccount not implemented") -} -func (UnimplementedAccountServer) BindUserInfo(context.Context, *CreateUserInfoReq) (*OKResp, error) { - return nil, status.Errorf(codes.Unimplemented, "method BindUserInfo not implemented") -} -func (UnimplementedAccountServer) UpdateUserInfo(context.Context, *UpdateUserInfoReq) (*OKResp, error) { - return nil, status.Errorf(codes.Unimplemented, "method UpdateUserInfo not implemented") -} -func (UnimplementedAccountServer) UpdateStatus(context.Context, *UpdateStatusReq) (*OKResp, error) { - return nil, status.Errorf(codes.Unimplemented, "method UpdateStatus not implemented") -} -func (UnimplementedAccountServer) GetUserInfo(context.Context, *GetUserInfoReq) (*GetUserInfoResp, error) { - return nil, status.Errorf(codes.Unimplemented, "method GetUserInfo not implemented") -} -func (UnimplementedAccountServer) ListMember(context.Context, *ListUserInfoReq) (*ListUserInfoResp, error) { - return nil, status.Errorf(codes.Unimplemented, "method ListMember not implemented") -} -func (UnimplementedAccountServer) GenerateRefreshCode(context.Context, *GenerateRefreshCodeReq) (*GenerateRefreshCodeResp, error) { - return nil, status.Errorf(codes.Unimplemented, "method GenerateRefreshCode not implemented") -} -func (UnimplementedAccountServer) VerifyRefreshCode(context.Context, *VerifyRefreshCodeReq) (*OKResp, error) { - return nil, status.Errorf(codes.Unimplemented, "method VerifyRefreshCode not implemented") -} -func (UnimplementedAccountServer) mustEmbedUnimplementedAccountServer() {} - -// UnsafeAccountServer may be embedded to opt out of forward compatibility for this service. -// Use of this interface is not recommended, as added methods to AccountServer will -// result in compilation errors. -type UnsafeAccountServer interface { - mustEmbedUnimplementedAccountServer() -} - -func RegisterAccountServer(s grpc.ServiceRegistrar, srv AccountServer) { - s.RegisterService(&Account_ServiceDesc, srv) -} - -func _Account_CreateUserAccount_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(CreateLoginUserReq) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(AccountServer).CreateUserAccount(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: Account_CreateUserAccount_FullMethodName, - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(AccountServer).CreateUserAccount(ctx, req.(*CreateLoginUserReq)) - } - return interceptor(ctx, in, info, handler) -} - -func _Account_GetUserAccountInfo_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(GetUIDByAccountReq) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(AccountServer).GetUserAccountInfo(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: Account_GetUserAccountInfo_FullMethodName, - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(AccountServer).GetUserAccountInfo(ctx, req.(*GetUIDByAccountReq)) - } - return interceptor(ctx, in, info, handler) -} - -func _Account_UpdateUserToken_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(UpdateTokenReq) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(AccountServer).UpdateUserToken(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: Account_UpdateUserToken_FullMethodName, - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(AccountServer).UpdateUserToken(ctx, req.(*UpdateTokenReq)) - } - return interceptor(ctx, in, info, handler) -} - -func _Account_GetUidByAccount_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(GetUIDByAccountReq) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(AccountServer).GetUidByAccount(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: Account_GetUidByAccount_FullMethodName, - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(AccountServer).GetUidByAccount(ctx, req.(*GetUIDByAccountReq)) - } - return interceptor(ctx, in, info, handler) -} - -func _Account_BindAccount_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(BindingUserReq) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(AccountServer).BindAccount(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: Account_BindAccount_FullMethodName, - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(AccountServer).BindAccount(ctx, req.(*BindingUserReq)) - } - return interceptor(ctx, in, info, handler) -} - -func _Account_BindUserInfo_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(CreateUserInfoReq) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(AccountServer).BindUserInfo(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: Account_BindUserInfo_FullMethodName, - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(AccountServer).BindUserInfo(ctx, req.(*CreateUserInfoReq)) - } - return interceptor(ctx, in, info, handler) -} - -func _Account_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.(AccountServer).UpdateUserInfo(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: Account_UpdateUserInfo_FullMethodName, - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(AccountServer).UpdateUserInfo(ctx, req.(*UpdateUserInfoReq)) - } - return interceptor(ctx, in, info, handler) -} - -func _Account_UpdateStatus_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(UpdateStatusReq) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(AccountServer).UpdateStatus(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: Account_UpdateStatus_FullMethodName, - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(AccountServer).UpdateStatus(ctx, req.(*UpdateStatusReq)) - } - return interceptor(ctx, in, info, handler) -} - -func _Account_GetUserInfo_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(GetUserInfoReq) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(AccountServer).GetUserInfo(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: Account_GetUserInfo_FullMethodName, - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(AccountServer).GetUserInfo(ctx, req.(*GetUserInfoReq)) - } - return interceptor(ctx, in, info, handler) -} - -func _Account_ListMember_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(ListUserInfoReq) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(AccountServer).ListMember(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: Account_ListMember_FullMethodName, - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(AccountServer).ListMember(ctx, req.(*ListUserInfoReq)) - } - return interceptor(ctx, in, info, handler) -} - -func _Account_GenerateRefreshCode_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(GenerateRefreshCodeReq) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(AccountServer).GenerateRefreshCode(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: Account_GenerateRefreshCode_FullMethodName, - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(AccountServer).GenerateRefreshCode(ctx, req.(*GenerateRefreshCodeReq)) - } - return interceptor(ctx, in, info, handler) -} - -func _Account_VerifyRefreshCode_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(VerifyRefreshCodeReq) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(AccountServer).VerifyRefreshCode(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: Account_VerifyRefreshCode_FullMethodName, - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(AccountServer).VerifyRefreshCode(ctx, req.(*VerifyRefreshCodeReq)) - } - return interceptor(ctx, in, info, handler) -} - -// Account_ServiceDesc is the grpc.ServiceDesc for Account service. -// It's only intended for direct use with grpc.RegisterService, -// and not to be introspected or modified (even as a copy) -var Account_ServiceDesc = grpc.ServiceDesc{ - ServiceName: "member.Account", - HandlerType: (*AccountServer)(nil), - Methods: []grpc.MethodDesc{ - { - MethodName: "CreateUserAccount", - Handler: _Account_CreateUserAccount_Handler, - }, - { - MethodName: "GetUserAccountInfo", - Handler: _Account_GetUserAccountInfo_Handler, - }, - { - MethodName: "UpdateUserToken", - Handler: _Account_UpdateUserToken_Handler, - }, - { - MethodName: "GetUidByAccount", - Handler: _Account_GetUidByAccount_Handler, - }, - { - MethodName: "BindAccount", - Handler: _Account_BindAccount_Handler, - }, - { - MethodName: "BindUserInfo", - Handler: _Account_BindUserInfo_Handler, - }, - { - MethodName: "UpdateUserInfo", - Handler: _Account_UpdateUserInfo_Handler, - }, - { - MethodName: "UpdateStatus", - Handler: _Account_UpdateStatus_Handler, - }, - { - MethodName: "GetUserInfo", - Handler: _Account_GetUserInfo_Handler, - }, - { - MethodName: "ListMember", - Handler: _Account_ListMember_Handler, - }, - { - MethodName: "GenerateRefreshCode", - Handler: _Account_GenerateRefreshCode_Handler, - }, - { - MethodName: "VerifyRefreshCode", - Handler: _Account_VerifyRefreshCode_Handler, - }, - }, - Streams: []grpc.StreamDesc{}, - Metadata: "generate/protobuf/service.proto", -}