diff --git a/.idea/.gitignore b/.idea/.gitignore
new file mode 100644
index 0000000..13566b8
--- /dev/null
+++ b/.idea/.gitignore
@@ -0,0 +1,8 @@
+# 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
new file mode 100644
index 0000000..5e764c4
--- /dev/null
+++ b/.idea/app-cloudep-member-server.iml
@@ -0,0 +1,9 @@
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/.idea/dataSources.xml b/.idea/dataSources.xml
new file mode 100644
index 0000000..f8dfa69
--- /dev/null
+++ b/.idea/dataSources.xml
@@ -0,0 +1,12 @@
+
+
+
+
+ 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
new file mode 100644
index 0000000..0c909dc
--- /dev/null
+++ b/.idea/modules.xml
@@ -0,0 +1,8 @@
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/.idea/vcs.xml b/.idea/vcs.xml
new file mode 100644
index 0000000..35eb1dd
--- /dev/null
+++ b/.idea/vcs.xml
@@ -0,0 +1,6 @@
+
+
+
+
+
+
\ No newline at end of file
diff --git a/build/Dockerfile b/build/Dockerfile
new file mode 100644
index 0000000..78cd457
--- /dev/null
+++ b/build/Dockerfile
@@ -0,0 +1,47 @@
+###########
+# BUILDER #
+###########
+
+FROM golang:1.22.3 as builder
+
+ARG VERSION
+ARG BUILT
+ARG GIT_COMMIT
+ARG SSH_PRV_KEY
+
+# private go packages
+ENV GOPRIVATE=code.30cm.net
+ENV FLAG="-s -w -X main.Version=${VERSION} -X main.Built=${BUILT} -X main.GitCommit=${GIT_COMMIT}"
+WORKDIR /app
+COPY . .
+
+
+RUN apt-get update && \
+ apt-get install git
+
+# Make the root foler for our ssh
+RUN mkdir -p /root/.ssh && \
+ chmod 0700 /root/.ssh && \
+ ssh-keyscan git.30cm.net > /root/.ssh/known_hosts && \
+ echo "$SSH_PRV_KEY" > /root/.ssh/id_rsa && \
+ chmod 600 /root/.ssh/id_rsa
+
+
+
+RUN --mount=type=ssh go mod download
+
+RUN CGO_ENABLED=0 GOOS=linux GOARCH=amd64 go build \
+ -ldflags "$FLAG" \
+ -o service
+
+##########
+## FINAL #
+##########
+#
+FROM gcr.io/distroless/static-debian11
+WORKDIR /app
+
+COPY --from=builder /app/service /app/service
+COPY --from=builder /app/etc/service.yaml /app/etc/service.yaml
+EXPOSE 8080
+CMD ["/app/service"]
\ No newline at end of file
diff --git a/chart/readme.md b/chart/readme.md
new file mode 100644
index 0000000..33c4f67
--- /dev/null
+++ b/chart/readme.md
@@ -0,0 +1 @@
+// TODO 未來要放 helm 的地方
\ No newline at end of file
diff --git a/client/account/account.go b/client/account/account.go
new file mode 100644
index 0000000..66afb03
--- /dev/null
+++ b/client/account/account.go
@@ -0,0 +1,147 @@
+// 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
new file mode 100644
index 0000000..f144f35
--- /dev/null
+++ b/etc/service.yaml
@@ -0,0 +1,37 @@
+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
new file mode 100644
index 0000000..28ad239
--- /dev/null
+++ b/gen_result/pb/member/service.pb.go
@@ -0,0 +1,2201 @@
+// 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
new file mode 100644
index 0000000..99d1ee3
--- /dev/null
+++ b/gen_result/pb/member/service_grpc.pb.go
@@ -0,0 +1,553 @@
+// 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",
+}
diff --git a/go.sum b/go.sum
new file mode 100644
index 0000000..708ede0
--- /dev/null
+++ b/go.sum
@@ -0,0 +1,330 @@
+code.30cm.net/digimon/library-go/errors v1.0.1 h1:9PmBQP8EiulJM4DsnO9mfYS+uLUE9dwyEjUlql14Hms=
+code.30cm.net/digimon/library-go/errors v1.0.1/go.mod h1:4yVE3lyHi/cLB3W59Tw70FBqO10ZhXo470NWp7aQ0tc=
+code.30cm.net/digimon/library-go/validator v1.0.0 h1:F48CU0+Z4ZZFhKHvjgm4u0M7v5wanFfVLKz+d92o+ks=
+code.30cm.net/digimon/library-go/validator v1.0.0/go.mod h1:haNzZMm0PhdvhuX8R6N/ZMp4CjOhs7/dHgTHzeOTNrY=
+filippo.io/edwards25519 v1.1.0 h1:FNf4tywRC1HmFuKW5xopWpigGjJKiJSV0Cqo0cJWDaA=
+filippo.io/edwards25519 v1.1.0/go.mod h1:BxyFTGdWcka3PhytdK4V28tE5sGfRvvvRV7EaN4VDT4=
+github.com/DATA-DOG/go-sqlmock v1.5.2 h1:OcvFkGmslmlZibjAjaHm3L//6LiuBgolP7OputlJIzU=
+github.com/DATA-DOG/go-sqlmock v1.5.2/go.mod h1:88MAG/4G7SMwSE3CeA0ZKzrT5CiOU3OJ+JlNzwDqpNU=
+github.com/alicebob/gopher-json v0.0.0-20230218143504-906a9b012302 h1:uvdUDbHQHO85qeSydJtItA4T55Pw6BtAejd0APRJOCE=
+github.com/alicebob/gopher-json v0.0.0-20230218143504-906a9b012302/go.mod h1:SGnFV6hVsYE877CKEZ6tDNTjaSXYUk6QqoIK6PrAtcc=
+github.com/alicebob/miniredis/v2 v2.33.0 h1:uvTF0EDeu9RLnUEG27Db5I68ESoIxTiXbNUiji6lZrA=
+github.com/alicebob/miniredis/v2 v2.33.0/go.mod h1:MhP4a3EU7aENRi9aO+tHfTBZicLqQevyi/DJpoj6mi0=
+github.com/benbjohnson/clock v1.1.0 h1:Q92kusRqC1XV2MjkWETPvjJVqKetz1OzxZB7mHJLju8=
+github.com/benbjohnson/clock v1.1.0/go.mod h1:J11/hYXuz8f4ySSvYwY0FKfm+ezbsZBKZxNJlLklBHA=
+github.com/beorn7/perks v1.0.1 h1:VlbKKnNfV8bJzeqoa4cOKqO6bYr3WgKZxO8Z16+hsOM=
+github.com/beorn7/perks v1.0.1/go.mod h1:G2ZrVWU2WbWT9wwq4/hrbKbnv/1ERSJQ0ibhJ6rlkpw=
+github.com/bsm/ginkgo/v2 v2.12.0 h1:Ny8MWAHyOepLGlLKYmXG4IEkioBysk6GpaRTLC8zwWs=
+github.com/bsm/ginkgo/v2 v2.12.0/go.mod h1:SwYbGRRDovPVboqFv0tPTcG1sN61LM1Z4ARdbAV9g4c=
+github.com/bsm/gomega v1.27.10 h1:yeMWxP2pV2fG3FgAODIY8EiRE3dy0aeFYt4l7wh6yKA=
+github.com/bsm/gomega v1.27.10/go.mod h1:JyEr/xRbxbtgWNi8tIEVPUYZ5Dzef52k01W3YH0H+O0=
+github.com/bwmarrin/snowflake v0.3.0 h1:xm67bEhkKh6ij1790JB83OujPR5CzNe8QuQqAgISZN0=
+github.com/bwmarrin/snowflake v0.3.0/go.mod h1:NdZxfVWX+oR6y2K0o6qAYv6gIOP9rjG0/E9WsDpxqwE=
+github.com/cenkalti/backoff/v4 v4.3.0 h1:MyRJ/UdXutAwSAT+s3wNd7MfTIcy71VQueUuFK343L8=
+github.com/cenkalti/backoff/v4 v4.3.0/go.mod h1:Y3VNntkOUPxTVeUxJ/G5vcM//AlwfmyYozVcomhLiZE=
+github.com/cespare/xxhash/v2 v2.3.0 h1:UL815xU9SqsFlibzuggzjXhog7bL6oX9BbNZnL2UFvs=
+github.com/cespare/xxhash/v2 v2.3.0/go.mod h1:VGX0DQ3Q6kWi7AoAeZDth3/j3BFtOZR5XLFGgcrjCOs=
+github.com/coreos/go-semver v0.3.1 h1:yi21YpKnrx1gt5R+la8n5WgS0kCrsPp33dmEyHReZr4=
+github.com/coreos/go-semver v0.3.1/go.mod h1:irMmmIw/7yzSRPWryHsK7EYSg09caPQL03VsM8rvUec=
+github.com/coreos/go-systemd/v22 v22.5.0 h1:RrqgGjYQKalulkV8NGVIfkXQf6YYmOyiJKk8iXXhfZs=
+github.com/coreos/go-systemd/v22 v22.5.0/go.mod h1:Y58oyj3AT4RCenI/lSvhwexgC+NSVTIJ3seZv2GcEnc=
+github.com/creack/pty v1.1.9/go.mod h1:oKZEueFk5CKHvIhNR5MUki03XCEU+Q6VDXinZuGJ33E=
+github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38=
+github.com/davecgh/go-spew v1.1.1 h1:vj9j/u1bqnvCEfJOwUhtlOARqs3+rkHYY13jYWTU97c=
+github.com/davecgh/go-spew v1.1.1/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38=
+github.com/dgryski/go-rendezvous v0.0.0-20200823014737-9f7001d12a5f h1:lO4WD4F/rVNCu3HqELle0jiPLLBs70cWOduZpkS1E78=
+github.com/dgryski/go-rendezvous v0.0.0-20200823014737-9f7001d12a5f/go.mod h1:cuUVRXasLTGF7a8hSLbxyZXjz+1KgoB3wDUb6vlszIc=
+github.com/emicklei/go-restful/v3 v3.11.0 h1:rAQeMHw1c7zTmncogyy8VvRZwtkmkZ4FxERmMY4rD+g=
+github.com/emicklei/go-restful/v3 v3.11.0/go.mod h1:6n3XBCmQQb25CM2LCACGz8ukIrRry+4bhvbpWn3mrbc=
+github.com/fatih/color v1.17.0 h1:GlRw1BRJxkpqUCBKzKOw098ed57fEsKeNjpTe3cSjK4=
+github.com/fatih/color v1.17.0/go.mod h1:YZ7TlrGPkiz6ku9fK3TLD/pl3CpsiFyu8N92HLgmosI=
+github.com/gabriel-vasile/mimetype v1.4.3 h1:in2uUcidCuFcDKtdcBxlR0rJ1+fsokWf+uqxgUFjbI0=
+github.com/gabriel-vasile/mimetype v1.4.3/go.mod h1:d8uq/6HKRL6CGdk+aubisF/M5GcPfT7nKyLpA0lbSSk=
+github.com/go-logr/logr v1.2.2/go.mod h1:jdQByPbusPIv2/zmleS9BjJVeZ6kBagPoEUsqbVz/1A=
+github.com/go-logr/logr v1.3.0/go.mod h1:9T104GzyrTigFIr8wt5mBrctHMim0Nb2HLGrmQ40KvY=
+github.com/go-logr/logr v1.4.2 h1:6pFjapn8bFcIbiKo3XT4j/BhANplGihG6tvd+8rYgrY=
+github.com/go-logr/logr v1.4.2/go.mod h1:9T104GzyrTigFIr8wt5mBrctHMim0Nb2HLGrmQ40KvY=
+github.com/go-logr/stdr v1.2.2 h1:hSWxHoqTgW2S2qGc0LTAI563KZ5YKYRhT3MFKZMbjag=
+github.com/go-logr/stdr v1.2.2/go.mod h1:mMo/vtBO5dYbehREoey6XUKy/eSumjCCveDpRre4VKE=
+github.com/go-openapi/jsonpointer v0.19.6 h1:eCs3fxoIi3Wh6vtgmLTOjdhSpiqphQ+DaPn38N2ZdrE=
+github.com/go-openapi/jsonpointer v0.19.6/go.mod h1:osyAmYz/mB/C3I+WsTTSgw1ONzaLJoLCyoi6/zppojs=
+github.com/go-openapi/jsonreference v0.20.2 h1:3sVjiK66+uXK/6oQ8xgcRKcFgQ5KXa2KvnJRumpMGbE=
+github.com/go-openapi/jsonreference v0.20.2/go.mod h1:Bl1zwGIM8/wsvqjsOQLJ/SH+En5Ap4rVB5KVcIDZG2k=
+github.com/go-openapi/swag v0.22.3/go.mod h1:UzaqsxGiab7freDnrUUra0MwWfN/q7tE4j+VcZ0yl14=
+github.com/go-openapi/swag v0.22.4 h1:QLMzNJnMGPRNDCbySlcj1x01tzU8/9LTTL9hZZZogBU=
+github.com/go-openapi/swag v0.22.4/go.mod h1:UzaqsxGiab7freDnrUUra0MwWfN/q7tE4j+VcZ0yl14=
+github.com/go-playground/assert/v2 v2.2.0 h1:JvknZsQTYeFEAhQwI4qEt9cyV5ONwRHC+lYKSsYSR8s=
+github.com/go-playground/assert/v2 v2.2.0/go.mod h1:VDjEfimB/XKnb+ZQfWdccd7VUvScMdVu0Titje2rxJ4=
+github.com/go-playground/locales v0.14.1 h1:EWaQ/wswjilfKLTECiXz7Rh+3BjFhfDFKv/oXslEjJA=
+github.com/go-playground/locales v0.14.1/go.mod h1:hxrqLVvrK65+Rwrd5Fc6F2O76J/NuW9t0sjnWqG1slY=
+github.com/go-playground/universal-translator v0.18.1 h1:Bcnm0ZwsGyWbCzImXv+pAJnYK9S473LQFuzCbDbfSFY=
+github.com/go-playground/universal-translator v0.18.1/go.mod h1:xekY+UJKNuX9WP91TpwSH2VMlDf28Uj24BCp08ZFTUY=
+github.com/go-playground/validator/v10 v10.22.0 h1:k6HsTZ0sTnROkhS//R0O+55JgM8C4Bx7ia+JlgcnOao=
+github.com/go-playground/validator/v10 v10.22.0/go.mod h1:dbuPbCMFw/DrkbEynArYaCwl3amGuJotoKCe95atGMM=
+github.com/go-sql-driver/mysql v1.8.1 h1:LedoTUt/eveggdHS9qUFC1EFSa8bU2+1pZjSRpvNJ1Y=
+github.com/go-sql-driver/mysql v1.8.1/go.mod h1:wEBSXgmK//2ZFJyE+qWnIsVGmvmEKlqwuVSjsCm7DZg=
+github.com/go-task/slim-sprig v0.0.0-20230315185526-52ccab3ef572 h1:tfuBGBXKqDEevZMzYi5KSi8KkcZtzBcTgAUUtapy0OI=
+github.com/go-task/slim-sprig v0.0.0-20230315185526-52ccab3ef572/go.mod h1:9Pwr4B2jHnOSGXyyzV8ROjYa2ojvAY6HCGYYfMoC3Ls=
+github.com/godbus/dbus/v5 v5.0.4/go.mod h1:xhWf0FNVPg57R7Z0UbKHbJfkEywrmjJnf7w5xrFpKfA=
+github.com/gogo/protobuf v1.3.2 h1:Ov1cvc58UF3b5XjBnZv7+opcTcQFZebYjWzi34vdm4Q=
+github.com/gogo/protobuf v1.3.2/go.mod h1:P1XiOD3dCwIKUDQYPy72D8LYyHL2YPYrpS2s69NZV8Q=
+github.com/golang/mock v1.6.0 h1:ErTB+efbowRARo13NNdxyJji2egdxLGQhRaY+DUumQc=
+github.com/golang/mock v1.6.0/go.mod h1:p6yTPP+5HYm5mzsMV8JkE6ZKdX+/wYM6Hr+LicevLPs=
+github.com/golang/protobuf v1.5.4 h1:i7eJL8qZTpSEXOPTxNKhASYpMn+8e5Q6AdndVa1dWek=
+github.com/golang/protobuf v1.5.4/go.mod h1:lnTiLA8Wa4RWRcIUkrtSVa5nRhsEGBg48fD6rSs7xps=
+github.com/golang/snappy v0.0.4 h1:yAGX7huGHXlcLOEtBnF4w7FQwA26wojNCwOYAEhLjQM=
+github.com/golang/snappy v0.0.4/go.mod h1:/XxbfmMg8lxefKM7IXC3fBNl/7bRcc72aCRzEWrmP2Q=
+github.com/google/gnostic-models v0.6.8 h1:yo/ABAfM5IMRsS1VnXjTBvUb61tFIHozhlYvRgGre9I=
+github.com/google/gnostic-models v0.6.8/go.mod h1:5n7qKqH0f5wFt+aWF8CW6pZLLNOfYuF5OpfBSENuI8U=
+github.com/google/go-cmp v0.5.9/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY=
+github.com/google/go-cmp v0.6.0 h1:ofyhxvXcZhMsU5ulbFiLKl/XBFqE1GSq7atu8tAmTRI=
+github.com/google/go-cmp v0.6.0/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY=
+github.com/google/gofuzz v1.0.0/go.mod h1:dBl0BpW6vV/+mYPU4Po3pmUjxk6FQPldtuIdl/M65Eg=
+github.com/google/gofuzz v1.2.0 h1:xRy4A+RhZaiKjJ1bPfwQ8sedCA+YS2YcCHW6ec7JMi0=
+github.com/google/gofuzz v1.2.0/go.mod h1:dBl0BpW6vV/+mYPU4Po3pmUjxk6FQPldtuIdl/M65Eg=
+github.com/google/pprof v0.0.0-20210720184732-4bb14d4b1be1 h1:K6RDEckDVWvDI9JAJYCmNdQXq6neHJOYx3V6jnqNEec=
+github.com/google/pprof v0.0.0-20210720184732-4bb14d4b1be1/go.mod h1:kpwsk12EmLew5upagYY7GY0pfYCcupk39gWOCRROcvE=
+github.com/google/uuid v1.6.0 h1:NIvaJDMOsjHA8n1jAhLSgzrAzy1Hgr+hNrb57e+94F0=
+github.com/google/uuid v1.6.0/go.mod h1:TIyPZe4MgqvfeYDBFedMoGGpEw/LqOeaOT+nhxU+yHo=
+github.com/grpc-ecosystem/grpc-gateway/v2 v2.20.0 h1:bkypFPDjIYGfCYD5mRBvpqxfYX1YCS1PXdKYWi8FsN0=
+github.com/grpc-ecosystem/grpc-gateway/v2 v2.20.0/go.mod h1:P+Lt/0by1T8bfcF3z737NnSbmxQAppXMRziHUxPOC8k=
+github.com/h2non/parth v0.0.0-20190131123155-b4df798d6542 h1:2VTzZjLZBgl62/EtslCrtky5vbi9dd7HrQPQIx6wqiw=
+github.com/h2non/parth v0.0.0-20190131123155-b4df798d6542/go.mod h1:Ow0tF8D4Kplbc8s8sSb3V2oUCygFHVp8gC3Dn6U4MNI=
+github.com/josharian/intern v1.0.0 h1:vlS4z54oSdjm0bgjRigI+G1HpF+tI+9rE5LLzOg8HmY=
+github.com/josharian/intern v1.0.0/go.mod h1:5DoeVV0s6jJacbCEi61lwdGj/aVlrQvzHFFd8Hwg//Y=
+github.com/json-iterator/go v1.1.12 h1:PV8peI4a0ysnczrg+LtxykD8LfKY9ML6u2jnxaEnrnM=
+github.com/json-iterator/go v1.1.12/go.mod h1:e30LSqwooZae/UwlEbR2852Gd8hjQvJoHmT4TnhNGBo=
+github.com/kisielk/errcheck v1.5.0/go.mod h1:pFxgyoBC7bSaBwPgfKdkLd5X25qrDl4LWUI2bnpBCr8=
+github.com/kisielk/gotool v1.0.0/go.mod h1:XhKaO+MFFWcvkIS/tQcRk01m1F5IRFswLeQ+oQHNcck=
+github.com/klauspost/compress v1.17.8 h1:YcnTYrq7MikUT7k0Yb5eceMmALQPYBW/Xltxn0NAMnU=
+github.com/klauspost/compress v1.17.8/go.mod h1:Di0epgTjJY877eYKx5yC51cX2A2Vl2ibi7bDH9ttBbw=
+github.com/kr/pretty v0.2.1/go.mod h1:ipq/a2n7PKx3OHsz4KJII5eveXtPO4qwEXGdVfWzfnI=
+github.com/kr/pretty v0.3.1 h1:flRD4NNwYAUpkphVc1HcthR4KEIFJ65n8Mw5qdRn3LE=
+github.com/kr/pretty v0.3.1/go.mod h1:hoEshYVHaxMs3cyo3Yncou5ZscifuDolrwPKZanG3xk=
+github.com/kr/pty v1.1.1/go.mod h1:pFQYn66WHrOpPYNljwOMqo10TkYh1fy3cYio2l3bCsQ=
+github.com/kr/text v0.1.0/go.mod h1:4Jbv+DJW3UT/LiOwJeYQe1efqtUx/iVham/4vfdArNI=
+github.com/kr/text v0.2.0 h1:5Nx0Ya0ZqY2ygV366QzturHI13Jq95ApcVaJBhpS+AY=
+github.com/kr/text v0.2.0/go.mod h1:eLer722TekiGuMkidMxC/pM04lWEeraHUUmBw8l2grE=
+github.com/leodido/go-urn v1.4.0 h1:WT9HwE9SGECu3lg4d/dIA+jxlljEa1/ffXKmRjqdmIQ=
+github.com/leodido/go-urn v1.4.0/go.mod h1:bvxc+MVxLKB4z00jd1z+Dvzr47oO32F/QSNjSBOlFxI=
+github.com/mailru/easyjson v0.7.7 h1:UGYAvKxe3sBsEDzO8ZeWOSlIQfWFlxbzLZe7hwFURr0=
+github.com/mailru/easyjson v0.7.7/go.mod h1:xzfreul335JAWq5oZzymOObrkdz5UnU4kGfJJLY9Nlc=
+github.com/mattn/go-colorable v0.1.13 h1:fFA4WZxdEF4tXPZVKMLwD8oUnCTTo08duU7wxecdEvA=
+github.com/mattn/go-colorable v0.1.13/go.mod h1:7S9/ev0klgBDR4GtXTXX8a3vIGJpMovkB8vQcUbaXHg=
+github.com/mattn/go-isatty v0.0.16/go.mod h1:kYGgaQfpe5nmfYZH+SKPsOc2e4SrIfOl2e/yFXSvRLM=
+github.com/mattn/go-isatty v0.0.20 h1:xfD0iDuEKnDkl03q4limB+vH+GxLEtL/jb4xVJSWWEY=
+github.com/mattn/go-isatty v0.0.20/go.mod h1:W+V8PltTTMOvKvAeJH7IuucS94S2C6jfK/D7dTCTo3Y=
+github.com/modern-go/concurrent v0.0.0-20180228061459-e0a39a4cb421/go.mod h1:6dJC0mAP4ikYIbvyc7fijjWJddQyLn8Ig3JB5CqoB9Q=
+github.com/modern-go/concurrent v0.0.0-20180306012644-bacd9c7ef1dd h1:TRLaZ9cD/w8PVh93nsPXa1VrQ6jlwL5oN8l14QlcNfg=
+github.com/modern-go/concurrent v0.0.0-20180306012644-bacd9c7ef1dd/go.mod h1:6dJC0mAP4ikYIbvyc7fijjWJddQyLn8Ig3JB5CqoB9Q=
+github.com/modern-go/reflect2 v1.0.2 h1:xBagoLtFs94CBntxluKeaWgTMpvLxC4ur3nMaC9Gz0M=
+github.com/modern-go/reflect2 v1.0.2/go.mod h1:yWuevngMOJpCy52FWWMvUC8ws7m/LJsjYzDa0/r8luk=
+github.com/montanaflynn/stats v0.7.1 h1:etflOAAHORrCC44V+aR6Ftzort912ZU+YLiSTuV8eaE=
+github.com/montanaflynn/stats v0.7.1/go.mod h1:etXPPgVO6n31NxCd9KQUMvCM+ve0ruNzt6R8Bnaayow=
+github.com/munnerz/goautoneg v0.0.0-20191010083416-a7dc8b61c822 h1:C3w9PqII01/Oq1c1nUAm88MOHcQC9l5mIlSMApZMrHA=
+github.com/munnerz/goautoneg v0.0.0-20191010083416-a7dc8b61c822/go.mod h1:+n7T8mK8HuQTcFwEeznm/DIxMOiR9yIdICNftLE1DvQ=
+github.com/onsi/ginkgo/v2 v2.13.0 h1:0jY9lJquiL8fcf3M4LAXN5aMlS/b2BV86HFFPCPMgE4=
+github.com/onsi/ginkgo/v2 v2.13.0/go.mod h1:TE309ZR8s5FsKKpuB1YAQYBzCaAfUgatB/xlT/ETL/o=
+github.com/onsi/gomega v1.29.0 h1:KIA/t2t5UBzoirT4H9tsML45GEbo3ouUnBHsCfD2tVg=
+github.com/onsi/gomega v1.29.0/go.mod h1:9sxs+SwGrKI0+PWe4Fxa9tFQQBG5xSsSbMXOI8PPpoQ=
+github.com/openzipkin/zipkin-go v0.4.3 h1:9EGwpqkgnwdEIJ+Od7QVSEIH+ocmm5nPat0G7sjsSdg=
+github.com/openzipkin/zipkin-go v0.4.3/go.mod h1:M9wCJZFWCo2RiY+o1eBCEMe0Dp2S5LDHcMZmk3RmK7c=
+github.com/pelletier/go-toml/v2 v2.2.2 h1:aYUidT7k73Pcl9nb2gScu7NSrKCSHIDE89b3+6Wq+LM=
+github.com/pelletier/go-toml/v2 v2.2.2/go.mod h1:1t835xjRzz80PqgE6HHgN2JOsmgYu/h4qDAS4n929Rs=
+github.com/pkg/errors v0.9.1 h1:FEBLx1zS214owpjy7qsBeixbURkuhQAwrK5UwLGTwt4=
+github.com/pkg/errors v0.9.1/go.mod h1:bwawxfHBFNV+L2hUp1rHADufV3IMtnDRdf1r5NINEl0=
+github.com/pmezard/go-difflib v1.0.0 h1:4DBwDE0NGyQoBHbLQYPwSUPoCMWR5BEzIk/f1lZbAQM=
+github.com/pmezard/go-difflib v1.0.0/go.mod h1:iKH77koFhYxTK1pcRnkKkqfTogsbg7gZNVY4sRDYZ/4=
+github.com/prashantv/gostub v1.1.0 h1:BTyx3RfQjRHnUWaGF9oQos79AlQ5k8WNktv7VGvVH4g=
+github.com/prashantv/gostub v1.1.0/go.mod h1:A5zLQHz7ieHGG7is6LLXLz7I8+3LZzsrV0P1IAHhP5U=
+github.com/prometheus/client_golang v1.19.1 h1:wZWJDwK+NameRJuPGDhlnFgx8e8HN3XHQeLaYJFJBOE=
+github.com/prometheus/client_golang v1.19.1/go.mod h1:mP78NwGzrVks5S2H6ab8+ZZGJLZUq1hoULYBAYBw1Ho=
+github.com/prometheus/client_model v0.5.0 h1:VQw1hfvPvk3Uv6Qf29VrPF32JB6rtbgI6cYPYQjL0Qw=
+github.com/prometheus/client_model v0.5.0/go.mod h1:dTiFglRmd66nLR9Pv9f0mZi7B7fk5Pm3gvsjB5tr+kI=
+github.com/prometheus/common v0.48.0 h1:QO8U2CdOzSn1BBsmXJXduaaW+dY/5QLjfB8svtSzKKE=
+github.com/prometheus/common v0.48.0/go.mod h1:0/KsvlIEfPQCQ5I2iNSAWKPZziNCvRs5EC6ILDTlAPc=
+github.com/prometheus/procfs v0.12.0 h1:jluTpSng7V9hY0O2R9DzzJHYb2xULk9VTR1V1R/k6Bo=
+github.com/prometheus/procfs v0.12.0/go.mod h1:pcuDEFsWDnvcgNzo4EEweacyhjeA9Zk3cnaOZAZEfOo=
+github.com/redis/go-redis/v9 v9.6.1 h1:HHDteefn6ZkTtY5fGUE8tj8uy85AHk6zP7CpzIAM0y4=
+github.com/redis/go-redis/v9 v9.6.1/go.mod h1:0C0c6ycQsdpVNQpxb1njEQIqkx5UcsM8FJCQLgE9+RA=
+github.com/rogpeppe/go-internal v1.10.0 h1:TMyTOH3F/DB16zRVcYyreMH6GnZZrwQVAoYjRBZyWFQ=
+github.com/rogpeppe/go-internal v1.10.0/go.mod h1:UQnix2H7Ngw/k4C5ijL5+65zddjncjaFoBhdsK/akog=
+github.com/spaolacci/murmur3 v1.1.0 h1:7c1g84S4BPRrfL5Xrdp6fOJ206sU9y293DDHaoy0bLI=
+github.com/spaolacci/murmur3 v1.1.0/go.mod h1:JwIasOWyU6f++ZhiEuf87xNszmSA2myDM2Kzu9HwQUA=
+github.com/spf13/pflag v1.0.5 h1:iy+VFUOCP1a+8yFto/drg2CJ5u0yRoB7fZw3DKv/JXA=
+github.com/spf13/pflag v1.0.5/go.mod h1:McXfInJRrz4CZXVZOBLb0bTZqETkiAhM9Iw0y3An2Bg=
+github.com/stretchr/objx v0.1.0/go.mod h1:HFkY916IF+rwdDfMAkV7OtwuqBVzrE8GR6GFx+wExME=
+github.com/stretchr/objx v0.4.0/go.mod h1:YvHI0jy2hoMjB+UWwv71VJQ9isScKT/TqJzVSSt89Yw=
+github.com/stretchr/objx v0.5.0/go.mod h1:Yh+to48EsGEfYuaHDzXPcE3xhTkx73EhmCGUpEOglKo=
+github.com/stretchr/objx v0.5.2 h1:xuMeJ0Sdp5ZMRXx/aWO6RZxdr3beISkG5/G/aIRr3pY=
+github.com/stretchr/objx v0.5.2/go.mod h1:FRsXN1f5AsAjCGJKqEizvkpNtU+EGNCLh3NxZ/8L+MA=
+github.com/stretchr/testify v1.3.0/go.mod h1:M5WIy9Dh21IEIfnGCwXGc5bZfKNJtfHm1UVUgZn+9EI=
+github.com/stretchr/testify v1.7.1/go.mod h1:6Fq8oRcR53rry900zMqJjRRixrwX3KX962/h/Wwjteg=
+github.com/stretchr/testify v1.8.0/go.mod h1:yNjHg4UonilssWZ8iaSj1OCr/vHnekPRkoO+kdMU+MU=
+github.com/stretchr/testify v1.8.1/go.mod h1:w2LPCIKwWwSfY2zedu0+kehJoqGctiVI29o6fzry7u4=
+github.com/stretchr/testify v1.8.4/go.mod h1:sz/lmYIOXD/1dqDmKjjqLyZ2RngseejIcXlSw2iwfAo=
+github.com/stretchr/testify v1.9.0 h1:HtqpIVDClZ4nwg75+f6Lvsy/wHu+3BoSGCbBAcpTsTg=
+github.com/stretchr/testify v1.9.0/go.mod h1:r2ic/lqez/lEtzL7wO/rwa5dbSLXVDPFyf8C91i36aY=
+github.com/xdg-go/pbkdf2 v1.0.0 h1:Su7DPu48wXMwC3bs7MCNG+z4FhcyEuz5dlvchbq0B0c=
+github.com/xdg-go/pbkdf2 v1.0.0/go.mod h1:jrpuAogTd400dnrH08LKmI/xc1MbPOebTwRqcT5RDeI=
+github.com/xdg-go/scram v1.1.2 h1:FHX5I5B4i4hKRVRBCFRxq1iQRej7WO3hhBuJf+UUySY=
+github.com/xdg-go/scram v1.1.2/go.mod h1:RT/sEzTbU5y00aCK8UOx6R7YryM0iF1N2MOmC3kKLN4=
+github.com/xdg-go/stringprep v1.0.4 h1:XLI/Ng3O1Atzq0oBs3TWm+5ZVgkq2aqdlvP9JtoZ6c8=
+github.com/xdg-go/stringprep v1.0.4/go.mod h1:mPGuuIYwz7CmR2bT9j4GbQqutWS1zV24gijq1dTyGkM=
+github.com/youmark/pkcs8 v0.0.0-20201027041543-1326539a0a0a h1:fZHgsYlfvtyqToslyjUt3VOPF4J7aK/3MPcK7xp3PDk=
+github.com/youmark/pkcs8 v0.0.0-20201027041543-1326539a0a0a/go.mod h1:ul22v+Nro/R083muKhosV54bj5niojjWZvU8xrevuH4=
+github.com/yuin/goldmark v1.1.27/go.mod h1:3hX8gzYuyVAZsxl0MRgGTJEmQBFcNTphYh9decYSb74=
+github.com/yuin/goldmark v1.2.1/go.mod h1:3hX8gzYuyVAZsxl0MRgGTJEmQBFcNTphYh9decYSb74=
+github.com/yuin/goldmark v1.3.5/go.mod h1:mwnBkeHKe2W/ZEtQ+71ViKU8L12m81fl3OWwC1Zlc8k=
+github.com/yuin/goldmark v1.4.13/go.mod h1:6yULJ656Px+3vBD8DxQVa3kxgyrAnzto9xy5taEt/CY=
+github.com/yuin/gopher-lua v1.1.1 h1:kYKnWBjvbNP4XLT3+bPEwAXJx262OhaHDWDVOPjL46M=
+github.com/yuin/gopher-lua v1.1.1/go.mod h1:GBR0iDaNXjAgGg9zfCvksxSRnQx76gclCIb7kdAd1Pw=
+github.com/zeromicro/go-zero v1.7.0 h1:B+y7tUVlo3qVQ6F0I0R9bi+Dq4I1QdO9ZB+dz1r0p1s=
+github.com/zeromicro/go-zero v1.7.0/go.mod h1:ypW4PzQI+jUrMcNJDDQ+7YW+pE+tMua9Xj/pmtmS1Dc=
+go.etcd.io/etcd/api/v3 v3.5.15 h1:3KpLJir1ZEBrYuV2v+Twaa/e2MdDCEZ/70H+lzEiwsk=
+go.etcd.io/etcd/api/v3 v3.5.15/go.mod h1:N9EhGzXq58WuMllgH9ZvnEr7SI9pS0k0+DHZezGp7jM=
+go.etcd.io/etcd/client/pkg/v3 v3.5.15 h1:fo0HpWz/KlHGMCC+YejpiCmyWDEuIpnTDzpJLB5fWlA=
+go.etcd.io/etcd/client/pkg/v3 v3.5.15/go.mod h1:mXDI4NAOwEiszrHCb0aqfAYNCrZP4e9hRca3d1YK8EU=
+go.etcd.io/etcd/client/v3 v3.5.15 h1:23M0eY4Fd/inNv1ZfU3AxrbbOdW79r9V9Rl62Nm6ip4=
+go.etcd.io/etcd/client/v3 v3.5.15/go.mod h1:CLSJxrYjvLtHsrPKsy7LmZEE+DK2ktfd2bN4RhBMwlU=
+go.mongodb.org/mongo-driver v1.16.0 h1:tpRsfBJMROVHKpdGyc1BBEzzjDUWjItxbVSZ8Ls4BQ4=
+go.mongodb.org/mongo-driver v1.16.0/go.mod h1:oB6AhJQvFQL4LEHyXi6aJzQJtBiTQHiAd83l0GdFaiw=
+go.opentelemetry.io/otel v1.24.0 h1:0LAOdjNmQeSTzGBzduGe/rU4tZhMwL5rWgtp9Ku5Jfo=
+go.opentelemetry.io/otel v1.24.0/go.mod h1:W7b9Ozg4nkF5tWI5zsXkaKKDjdVjpD4oAt9Qi/MArHo=
+go.opentelemetry.io/otel/exporters/jaeger v1.17.0 h1:D7UpUy2Xc2wsi1Ras6V40q806WM07rqoCWzXu7Sqy+4=
+go.opentelemetry.io/otel/exporters/jaeger v1.17.0/go.mod h1:nPCqOnEH9rNLKqH/+rrUjiMzHJdV1BlpKcTwRTyKkKI=
+go.opentelemetry.io/otel/exporters/otlp/otlptrace v1.24.0 h1:t6wl9SPayj+c7lEIFgm4ooDBZVb01IhLB4InpomhRw8=
+go.opentelemetry.io/otel/exporters/otlp/otlptrace v1.24.0/go.mod h1:iSDOcsnSA5INXzZtwaBPrKp/lWu/V14Dd+llD0oI2EA=
+go.opentelemetry.io/otel/exporters/otlp/otlptrace/otlptracegrpc v1.24.0 h1:Mw5xcxMwlqoJd97vwPxA8isEaIoxsta9/Q51+TTJLGE=
+go.opentelemetry.io/otel/exporters/otlp/otlptrace/otlptracegrpc v1.24.0/go.mod h1:CQNu9bj7o7mC6U7+CA/schKEYakYXWr79ucDHTMGhCM=
+go.opentelemetry.io/otel/exporters/otlp/otlptrace/otlptracehttp v1.24.0 h1:Xw8U6u2f8DK2XAkGRFV7BBLENgnTGX9i4rQRxJf+/vs=
+go.opentelemetry.io/otel/exporters/otlp/otlptrace/otlptracehttp v1.24.0/go.mod h1:6KW1Fm6R/s6Z3PGXwSJN2K4eT6wQB3vXX6CVnYX9NmM=
+go.opentelemetry.io/otel/exporters/stdout/stdouttrace v1.24.0 h1:s0PHtIkN+3xrbDOpt2M8OTG92cWqUESvzh2MxiR5xY8=
+go.opentelemetry.io/otel/exporters/stdout/stdouttrace v1.24.0/go.mod h1:hZlFbDbRt++MMPCCfSJfmhkGIWnX1h3XjkfxZUjLrIA=
+go.opentelemetry.io/otel/exporters/zipkin v1.24.0 h1:3evrL5poBuh1KF51D9gO/S+N/1msnm4DaBqs/rpXUqY=
+go.opentelemetry.io/otel/exporters/zipkin v1.24.0/go.mod h1:0EHgD8R0+8yRhUYJOGR8Hfg2dpiJQxDOszd5smVO9wM=
+go.opentelemetry.io/otel/metric v1.24.0 h1:6EhoGWWK28x1fbpA4tYTOWBkPefTDQnb8WSGXlc88kI=
+go.opentelemetry.io/otel/metric v1.24.0/go.mod h1:VYhLe1rFfxuTXLgj4CBiyz+9WYBA8pNGJgDcSFRKBco=
+go.opentelemetry.io/otel/sdk v1.24.0 h1:YMPPDNymmQN3ZgczicBY3B6sf9n62Dlj9pWD3ucgoDw=
+go.opentelemetry.io/otel/sdk v1.24.0/go.mod h1:KVrIYw6tEubO9E96HQpcmpTKDVn9gdv35HoYiQWGDFg=
+go.opentelemetry.io/otel/trace v1.24.0 h1:CsKnnL4dUAr/0llH9FKuc698G04IrpWV0MQA/Y1YELI=
+go.opentelemetry.io/otel/trace v1.24.0/go.mod h1:HPc3Xr/cOApsBI154IU0OI0HJexz+aw5uPdbs3UCjNU=
+go.opentelemetry.io/proto/otlp v1.3.1 h1:TrMUixzpM0yuc/znrFTP9MMRh8trP93mkCiDVeXrui0=
+go.opentelemetry.io/proto/otlp v1.3.1/go.mod h1:0X1WI4de4ZsLrrJNLAQbFeLCm3T7yBkR0XqQ7niQU+8=
+go.uber.org/atomic v1.10.0 h1:9qC72Qh0+3MqyJbAn8YU5xVq1frD8bn3JtD2oXtafVQ=
+go.uber.org/atomic v1.10.0/go.mod h1:LUxbIzbOniOlMKjJjyPfpl4v+PKK2cNJn91OQbhoJI0=
+go.uber.org/automaxprocs v1.5.3 h1:kWazyxZUrS3Gs4qUpbwo5kEIMGe/DAvi5Z4tl2NW4j8=
+go.uber.org/automaxprocs v1.5.3/go.mod h1:eRbA25aqJrxAbsLO0xy5jVwPt7FQnRgjW+efnwa1WM0=
+go.uber.org/goleak v1.3.0 h1:2K3zAYmnTNqV73imy9J1T3WC+gmCePx2hEGkimedGto=
+go.uber.org/goleak v1.3.0/go.mod h1:CoHD4mav9JJNrW/WLlf7HGZPjdw8EucARQHekz1X6bE=
+go.uber.org/mock v0.4.0 h1:VcM4ZOtdbR4f6VXfiOpwpVJDL6lCReaZ6mw31wqh7KU=
+go.uber.org/mock v0.4.0/go.mod h1:a6FSlNadKUHUa9IP5Vyt1zh4fC7uAwxMutEAscFbkZc=
+go.uber.org/multierr v1.9.0 h1:7fIwc/ZtS0q++VgcfqFDxSBZVv/Xo49/SYnDFupUwlI=
+go.uber.org/multierr v1.9.0/go.mod h1:X2jQV1h+kxSjClGpnseKVIxpmcjrj7MNnI0bnlfKTVQ=
+go.uber.org/zap v1.24.0 h1:FiJd5l1UOLj0wCgbSE0rwwXHzEdAZS6hiiSnxJN/D60=
+go.uber.org/zap v1.24.0/go.mod h1:2kMP+WWQ8aoFoedH3T2sq6iJ2yDWpHbP0f6MQbS9Gkg=
+golang.org/x/crypto v0.0.0-20190308221718-c2843e01d9a2/go.mod h1:djNgcEr1/C05ACkg1iLfiJU5Ep61QUkGW8qpdssI0+w=
+golang.org/x/crypto v0.0.0-20191011191535-87dc89f01550/go.mod h1:yigFU9vqHzYiE8UmvKecakEJjdnWj3jj499lnFckfCI=
+golang.org/x/crypto v0.0.0-20200302210943-78000ba7a073/go.mod h1:LzIPMQfyMNhhGPhUkYOs5KpL4U8rLKemX1yGLhDgUto=
+golang.org/x/crypto v0.0.0-20200622213623-75b288015ac9/go.mod h1:LzIPMQfyMNhhGPhUkYOs5KpL4U8rLKemX1yGLhDgUto=
+golang.org/x/crypto v0.0.0-20210921155107-089bfa567519/go.mod h1:GvvjBRRGRdwPK5ydBHafDWAxML/pGHZbMvKqRZ5+Abc=
+golang.org/x/crypto v0.25.0 h1:ypSNr+bnYL2YhwoMt2zPxHFmbAN1KZs/njMG3hxUp30=
+golang.org/x/crypto v0.25.0/go.mod h1:T+wALwcMOSE0kXgUAnPAHqTLW+XHgcELELW8VaDgm/M=
+golang.org/x/mod v0.2.0/go.mod h1:s0Qsj1ACt9ePp/hMypM3fl4fZqREWJwdYDEqhRiZZUA=
+golang.org/x/mod v0.3.0/go.mod h1:s0Qsj1ACt9ePp/hMypM3fl4fZqREWJwdYDEqhRiZZUA=
+golang.org/x/mod v0.4.2/go.mod h1:s0Qsj1ACt9ePp/hMypM3fl4fZqREWJwdYDEqhRiZZUA=
+golang.org/x/mod v0.6.0-dev.0.20220419223038-86c51ed26bb4/go.mod h1:jJ57K6gSWd91VN4djpZkiMVwK6gcyfeH4XE8wZrZaV4=
+golang.org/x/net v0.0.0-20190404232315-eb5bcb51f2a3/go.mod h1:t9HGtf8HONx5eT2rtn7q6eTqICYqUVnKs3thJo3Qplg=
+golang.org/x/net v0.0.0-20190620200207-3b0461eec859/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s=
+golang.org/x/net v0.0.0-20200226121028-0de0cce0169b/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s=
+golang.org/x/net v0.0.0-20201021035429-f5854403a974/go.mod h1:sp8m0HH+o8qH0wwXwYZr8TS3Oi6o0r6Gce1SSxlDquU=
+golang.org/x/net v0.0.0-20210226172049-e18ecbb05110/go.mod h1:m0MpNAwzfU5UDzcl9v0D8zg8gWTRqZa9RBIspLL5mdg=
+golang.org/x/net v0.0.0-20210405180319-a5a99cb37ef4/go.mod h1:p54w0d4576C0XHj96bSt6lcn1PtDYWL6XObtHCRCNQM=
+golang.org/x/net v0.0.0-20220722155237-a158d28d115b/go.mod h1:XRhObCWvk6IyKnWLug+ECip1KBveYUHfp+8e9klMJ9c=
+golang.org/x/net v0.27.0 h1:5K3Njcw06/l2y9vpGCSdcxWOYHOUk3dVNGDXN+FvAys=
+golang.org/x/net v0.27.0/go.mod h1:dDi0PyhWNoiUOrAS8uXv/vnScO4wnHQO4mj9fn/RytE=
+golang.org/x/oauth2 v0.20.0 h1:4mQdhULixXKP1rwYBW0vAijoXnkTG0BLCDRzfe1idMo=
+golang.org/x/oauth2 v0.20.0/go.mod h1:XYTD2NtWslqkgxebSiOHnXEap4TF09sJSc7H1sXbhtI=
+golang.org/x/sync v0.0.0-20190423024810-112230192c58/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM=
+golang.org/x/sync v0.0.0-20190911185100-cd5d95a43a6e/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM=
+golang.org/x/sync v0.0.0-20201020160332-67f06af15bc9/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM=
+golang.org/x/sync v0.0.0-20210220032951-036812b2e83c/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM=
+golang.org/x/sync v0.0.0-20220722155255-886fb9371eb4/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM=
+golang.org/x/sync v0.7.0 h1:YsImfSBoP9QPYL0xyKJPq0gcaJdG3rInoqxTWbfQu9M=
+golang.org/x/sync v0.7.0/go.mod h1:Czt+wKu1gCyEFDUtn0jG5QVvpJ6rzVqr5aXyt9drQfk=
+golang.org/x/sys v0.0.0-20190215142949-d0b11bdaac8a/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY=
+golang.org/x/sys v0.0.0-20190412213103-97732733099d/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
+golang.org/x/sys v0.0.0-20200930185726-fdedc70b468f/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
+golang.org/x/sys v0.0.0-20201119102817-f84b799fce68/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
+golang.org/x/sys v0.0.0-20210330210617-4fbd30eecc44/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
+golang.org/x/sys v0.0.0-20210510120138-977fb7262007/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg=
+golang.org/x/sys v0.0.0-20210615035016-665e8c7367d1/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg=
+golang.org/x/sys v0.0.0-20220520151302-bc2c85ada10a/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg=
+golang.org/x/sys v0.0.0-20220722155257-8c9f86f7a55f/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg=
+golang.org/x/sys v0.0.0-20220811171246-fbc7d0a398ab/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg=
+golang.org/x/sys v0.6.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg=
+golang.org/x/sys v0.22.0 h1:RI27ohtqKCnwULzJLqkv897zojh5/DwS/ENaMzUOaWI=
+golang.org/x/sys v0.22.0/go.mod h1:/VUhepiaJMQUp4+oa/7Zr1D23ma6VTLIYjOOTFZPUcA=
+golang.org/x/term v0.0.0-20201126162022-7de9c90e9dd1/go.mod h1:bj7SfCRtBDWHUb9snDiAeCFNEtKQo2Wmx5Cou7ajbmo=
+golang.org/x/term v0.0.0-20210927222741-03fcf44c2211/go.mod h1:jbD1KX2456YbFQfuXm/mYQcufACuNUgVhRMnK/tPxf8=
+golang.org/x/term v0.22.0 h1:BbsgPEJULsl2fV/AT3v15Mjva5yXKQDyKf+TbDz7QJk=
+golang.org/x/term v0.22.0/go.mod h1:F3qCibpT5AMpCRfhfT53vVJwhLtIVHhB9XDjfFvnMI4=
+golang.org/x/text v0.3.0/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ=
+golang.org/x/text v0.3.3/go.mod h1:5Zoc/QRtKVWzQhOtBMvqHzDpF6irO9z98xDceosuGiQ=
+golang.org/x/text v0.3.7/go.mod h1:u+2+/6zg+i71rQMx5EYifcz6MCKuco9NR6JIITiCfzQ=
+golang.org/x/text v0.3.8/go.mod h1:E6s5w1FMmriuDzIBO73fBruAKo1PCIq6d2Q6DHfQ8WQ=
+golang.org/x/text v0.16.0 h1:a94ExnEXNtEwYLGJSIUxnWoxoRz/ZcCsV63ROupILh4=
+golang.org/x/text v0.16.0/go.mod h1:GhwF1Be+LQoKShO3cGOHzqOgRrGaYc9AvblQOmPVHnI=
+golang.org/x/time v0.5.0 h1:o7cqy6amK/52YcAKIPlM3a+Fpj35zvRj2TP+e1xFSfk=
+golang.org/x/time v0.5.0/go.mod h1:3BpzKBy/shNhVucY/MWOyx10tF3SFh9QdLuxbVysPQM=
+golang.org/x/tools v0.0.0-20180917221912-90fa682c2a6e/go.mod h1:n7NCudcB/nEzxVGmLbDWY5pfWTLqBcC2KZ6jyYvM4mQ=
+golang.org/x/tools v0.0.0-20191119224855-298f0cb1881e/go.mod h1:b+2E5dAYhXwXZwtnZ6UAqBI28+e2cm9otk0dWdXHAEo=
+golang.org/x/tools v0.0.0-20200619180055-7c47624df98f/go.mod h1:EkVYQZoAsY45+roYkvgYkIh4xh/qjgUK9TdY2XT94GE=
+golang.org/x/tools v0.0.0-20210106214847-113979e3529a/go.mod h1:emZCQorbCU4vsT4fOWvOPXz4eW1wZW4PmDk9uLelYpA=
+golang.org/x/tools v0.1.1/go.mod h1:o0xws9oXOQQZyjljx8fwUC0k7L1pTE6eaCbjGeHmOkk=
+golang.org/x/tools v0.1.12/go.mod h1:hNGJHUnrk76NpqgfD5Aqm5Crs+Hm0VOH/i9J2+nxYbc=
+golang.org/x/tools v0.21.1-0.20240508182429-e35e4ccd0d2d h1:vU5i/LfpvrRCpgM/VPfJLg5KjxD3E+hfT1SH+d9zLwg=
+golang.org/x/tools v0.21.1-0.20240508182429-e35e4ccd0d2d/go.mod h1:aiJjzUbINMkxbQROHiO6hDPo2LHcIPhhQsa9DLh0yGk=
+golang.org/x/xerrors v0.0.0-20190717185122-a985d3407aa7/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0=
+golang.org/x/xerrors v0.0.0-20191011141410-1b5146add898/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0=
+golang.org/x/xerrors v0.0.0-20191204190536-9bdfabe68543/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0=
+golang.org/x/xerrors v0.0.0-20200804184101-5ec99f83aff1/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0=
+google.golang.org/genproto/googleapis/api v0.0.0-20240711142825-46eb208f015d h1:kHjw/5UfflP/L5EbledDrcG4C2597RtymmGRZvHiCuY=
+google.golang.org/genproto/googleapis/api v0.0.0-20240711142825-46eb208f015d/go.mod h1:mw8MG/Qz5wfgYr6VqVCiZcHe/GJEfI+oGGDCohaVgB0=
+google.golang.org/genproto/googleapis/rpc v0.0.0-20240701130421-f6361c86f094 h1:BwIjyKYGsK9dMCBOorzRri8MQwmi7mT9rGHsCEinZkA=
+google.golang.org/genproto/googleapis/rpc v0.0.0-20240701130421-f6361c86f094/go.mod h1:Ue6ibwXGpU+dqIcODieyLOcgj7z8+IcskoNIgZxtrFY=
+google.golang.org/grpc v1.65.0 h1:bs/cUb4lp1G5iImFFd3u5ixQzweKizoZJAwBNLR42lc=
+google.golang.org/grpc v1.65.0/go.mod h1:WgYC2ypjlB0EiQi6wdKixMqukr6lBc0Vo+oOgjrM5ZQ=
+google.golang.org/protobuf v1.34.2 h1:6xV6lTsCfpGD21XK49h7MhtcApnLqkfYgPcdHftf6hg=
+google.golang.org/protobuf v1.34.2/go.mod h1:qYOHts0dSfpeUzUFpOMr/WGzszTmLH+DiWniOlNbLDw=
+gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0=
+gopkg.in/check.v1 v1.0.0-20201130134442-10cb98267c6c h1:Hei/4ADfdWqJk1ZMxUNpqntNwaWcugrBjAiHlqqRiVk=
+gopkg.in/check.v1 v1.0.0-20201130134442-10cb98267c6c/go.mod h1:JHkPIbrfpd72SG/EVd6muEfDQjcINNoR0C8j2r3qZ4Q=
+gopkg.in/h2non/gock.v1 v1.1.2 h1:jBbHXgGBK/AoPVfJh5x4r/WxIrElvbLel8TCZkkZJoY=
+gopkg.in/h2non/gock.v1 v1.1.2/go.mod h1:n7UGz/ckNChHiK05rDoiC4MYSunEC/lyaUm2WWaDva0=
+gopkg.in/inf.v0 v0.9.1 h1:73M5CoZyi3ZLMOyDlQh031Cx6N9NDJ2Vvfl76EDAgDc=
+gopkg.in/inf.v0 v0.9.1/go.mod h1:cWUDdTG/fYaXco+Dcufb5Vnc6Gp2YChqWtbxRZE0mXw=
+gopkg.in/yaml.v2 v2.2.8/go.mod h1:hI93XBmqTisBFMUTm0b8Fm+jr3Dg1NNxqwp+5A1VGuI=
+gopkg.in/yaml.v2 v2.4.0 h1:D8xgwECY7CYvx+Y2n4sBz93Jn9JRvxdiyyo8CTfuKaY=
+gopkg.in/yaml.v2 v2.4.0/go.mod h1:RDklbk79AGWmwhnvt/jBztapEOGDOx6ZbXqjP6csGnQ=
+gopkg.in/yaml.v3 v3.0.0-20200313102051-9f266ea9e77c/go.mod h1:K4uyk7z7BCEPqu6E+C64Yfv1cQ7kz7rIZviUmN+EgEM=
+gopkg.in/yaml.v3 v3.0.1 h1:fxVm/GzAzEWqLHuvctI91KS9hhNmmWOoWu0XTYJS7CA=
+gopkg.in/yaml.v3 v3.0.1/go.mod h1:K4uyk7z7BCEPqu6E+C64Yfv1cQ7kz7rIZviUmN+EgEM=
+k8s.io/api v0.29.3 h1:2ORfZ7+bGC3YJqGpV0KSDDEVf8hdGQ6A03/50vj8pmw=
+k8s.io/api v0.29.3/go.mod h1:y2yg2NTyHUUkIoTC+phinTnEa3KFM6RZ3szxt014a80=
+k8s.io/apimachinery v0.29.4 h1:RaFdJiDmuKs/8cm1M6Dh1Kvyh59YQFDcFuFTSmXes6Q=
+k8s.io/apimachinery v0.29.4/go.mod h1:i3FJVwhvSp/6n8Fl4K97PJEP8C+MM+aoDq4+ZJBf70Y=
+k8s.io/client-go v0.29.3 h1:R/zaZbEAxqComZ9FHeQwOh3Y1ZUs7FaHKZdQtIc2WZg=
+k8s.io/client-go v0.29.3/go.mod h1:tkDisCvgPfiRpxGnOORfkljmS+UrW+WtXAy2fTvXJB0=
+k8s.io/klog/v2 v2.110.1 h1:U/Af64HJf7FcwMcXyKm2RPM22WZzyR7OSpYj5tg3cL0=
+k8s.io/klog/v2 v2.110.1/go.mod h1:YGtd1984u+GgbuZ7e08/yBuAfKLSO0+uR1Fhi6ExXjo=
+k8s.io/kube-openapi v0.0.0-20231010175941-2dd684a91f00 h1:aVUu9fTY98ivBPKR9Y5w/AuzbMm96cd3YHRTU83I780=
+k8s.io/kube-openapi v0.0.0-20231010175941-2dd684a91f00/go.mod h1:AsvuZPBlUDVuCdzJ87iajxtXuR9oktsTctW/R9wwouA=
+k8s.io/utils v0.0.0-20240711033017-18e509b52bc8 h1:pUdcCO1Lk/tbT5ztQWOBi5HBgbBP1J8+AsQnQCKsi8A=
+k8s.io/utils v0.0.0-20240711033017-18e509b52bc8/go.mod h1:OLgZIPagt7ERELqWJFomSt595RzquPNLL48iOWgYOg0=
+sigs.k8s.io/json v0.0.0-20221116044647-bc3834ca7abd h1:EDPBXCAspyGV4jQlpZSudPeMmr1bNJefnuqLsRAsHZo=
+sigs.k8s.io/json v0.0.0-20221116044647-bc3834ca7abd/go.mod h1:B8JuhiUyNFVKdsE8h686QcCxMaH6HrOAZj4vswFpcB0=
+sigs.k8s.io/structured-merge-diff/v4 v4.4.1 h1:150L+0vs/8DA78h1u02ooW1/fFq/Lwr+sGiqlzvrtq4=
+sigs.k8s.io/structured-merge-diff/v4 v4.4.1/go.mod h1:N8hJocpFajUSSeSJ9bOZ77VzejKZaXsTtZo4/u7Io08=
+sigs.k8s.io/yaml v1.3.0 h1:a2VclLzOGrwOHDiV8EfBGhvjHvP46CtW5j6POvhYGGo=
+sigs.k8s.io/yaml v1.3.0/go.mod h1:GeOyir5tyXNByN85N/dRIT9es5UQNerPYEKK56eTBm8=
diff --git a/internal/logic/account/bind_account_logic.go b/internal/logic/account/bind_account_logic.go
new file mode 100644
index 0000000..d54a952
--- /dev/null
+++ b/internal/logic/account/bind_account_logic.go
@@ -0,0 +1,74 @@
+package accountlogic
+
+import (
+ "app-cloudep-member-server/internal/model"
+ "context"
+ "fmt"
+
+ ers "code.30cm.net/digimon/library-go/errors"
+
+ "app-cloudep-member-server/gen_result/pb/member"
+ "app-cloudep-member-server/internal/svc"
+
+ "github.com/zeromicro/go-zero/core/logx"
+)
+
+type BindAccountLogic struct {
+ ctx context.Context
+ svcCtx *svc.ServiceContext
+ logx.Logger
+}
+
+func NewBindAccountLogic(ctx context.Context, svcCtx *svc.ServiceContext) *BindAccountLogic {
+ return &BindAccountLogic{
+ ctx: ctx,
+ svcCtx: svcCtx,
+ Logger: logx.WithContext(ctx),
+ }
+}
+
+type bindLoginUserReq struct {
+ Account string `json:"account" validate:"account"`
+ UID string `json:"uid" `
+ Type int64 `json:"type" validate:"required,oneof=1 2 3"`
+}
+
+// BindAccount 綁定帳號 -> account bind to UID
+func (l *BindAccountLogic) BindAccount(in *member.BindingUserReq) (*member.BindingUserResp, error) {
+ // 驗證資料
+ if err := l.svcCtx.Validate.ValidateAll(&bindLoginUserReq{
+ Account: in.GetLoginId(),
+ Type: in.GetType(),
+ }); err != nil {
+ return nil, ers.InvalidFormat(err.Error())
+ }
+
+ // 先確定有這個Account
+ if _, err := l.svcCtx.AccountModel.FindOneByAccount(l.ctx, in.GetLoginId()); err != nil {
+ return nil, ers.ResourceNotFound(fmt.Sprintf("failed to get account : %s ", in.GetLoginId()))
+ }
+
+ var err error
+ uid := in.GetUid()
+ // 有 UID 綁看看,沒帶UID 近來,確認沒重複就直接綁一個給他
+ if in.GetUid() == "" {
+ uid, err = l.svcCtx.GenUIDUseCase.Generate(l.ctx)
+ if err != nil {
+ return nil, ers.ArkInternal(fmt.Sprintf("[GenUIDUseCase.Generate] failed to get account : %s ", in.GetLoginId()))
+ }
+ }
+
+ if _, err := l.svcCtx.AccountToUidModel.Insert(l.ctx, &model.AccountToUid{
+ Account: in.LoginId,
+ Uid: uid,
+ Type: in.GetType(),
+ }); err != nil {
+ return nil, ers.DBError(err.Error())
+ }
+
+ return &member.BindingUserResp{
+ LoginId: in.LoginId,
+ Uid: uid,
+ Type: in.GetType(),
+ }, nil
+}
diff --git a/internal/logic/account/bind_account_logic_test.go b/internal/logic/account/bind_account_logic_test.go
new file mode 100644
index 0000000..1ed3b3f
--- /dev/null
+++ b/internal/logic/account/bind_account_logic_test.go
@@ -0,0 +1,177 @@
+package accountlogic
+
+import (
+ "app-cloudep-member-server/gen_result/pb/member"
+ "app-cloudep-member-server/internal/domain"
+ libMock "app-cloudep-member-server/internal/mock/lib"
+ modelMock "app-cloudep-member-server/internal/mock/model"
+ usecaseMock "app-cloudep-member-server/internal/mock/usecase"
+ "app-cloudep-member-server/internal/model"
+ "app-cloudep-member-server/internal/svc"
+ "context"
+ "errors"
+ "fmt"
+ "testing"
+
+ "github.com/alicebob/miniredis/v2"
+ "github.com/stretchr/testify/assert"
+ "github.com/zeromicro/go-zero/core/stores/redis"
+ "go.uber.org/mock/gomock"
+)
+
+func TestBindAccountLogic_BindAccount(t *testing.T) {
+ // mock
+ ctrl := gomock.NewController(t)
+ defer ctrl.Finish()
+
+ mockAccountModel := modelMock.NewMockAccountModel(ctrl)
+ mockAccountToUidModel := modelMock.NewMockAccountToUidModel(ctrl)
+ mockGenUIDModel := usecaseMock.NewMockUIDGenerateUseCase(ctrl)
+ mockValidate := libMock.NewMockValidate(ctrl)
+
+ r1, err := miniredis.Run()
+ assert.NoError(t, err)
+ defer r1.Close()
+
+ newRedis, err := redis.NewRedis(redis.RedisConf{
+ Host: r1.Addr(),
+ Type: redis.ClusterType,
+ Pass: "",
+ })
+ assert.NoError(t, err)
+
+ sc := svc.ServiceContext{
+ AccountModel: mockAccountModel,
+ AccountToUidModel: mockAccountToUidModel,
+ GenUIDUseCase: mockGenUIDModel,
+ Redis: *newRedis,
+ Validate: mockValidate,
+ }
+
+ l := NewBindAccountLogic(context.Background(), &sc)
+
+ tests := []struct {
+ name string
+ input *member.BindingUserReq
+ setupMocks func()
+ expectError bool
+ expected *member.BindingUserResp
+ }{
+ {
+ name: "ok",
+ input: &member.BindingUserReq{
+ LoginId: "cat1@30cm.net",
+ Uid: "12345",
+ Type: domain.AccountTypeMail.ToInt64(),
+ },
+ setupMocks: func() {
+ // mock validate returns
+ mockValidate.EXPECT().
+ ValidateAll(gomock.Any()).Return(nil)
+ mockAccountModel.EXPECT().
+ FindOneByAccount(gomock.Any(), "cat1@30cm.net").
+ Return(&model.Account{Account: "cat1@30cm.net"}, nil)
+
+ mockAccountToUidModel.EXPECT().
+ Insert(gomock.Any(), gomock.Any()).
+ Return(nil, nil)
+ },
+ expectError: false,
+ expected: &member.BindingUserResp{
+ LoginId: "cat1@30cm.net",
+ Uid: "12345",
+ Type: domain.AccountTypeMail.ToInt64(),
+ },
+ },
+ {
+ name: "valid account without UID",
+ input: &member.BindingUserReq{
+ LoginId: "cat1@30cm.net",
+ Uid: "",
+ Type: domain.AccountTypeMail.ToInt64(),
+ },
+ setupMocks: func() {
+ // mock validate returns
+ mockValidate.EXPECT().
+ ValidateAll(gomock.Any()).Return(nil)
+ mockAccountModel.EXPECT().
+ FindOneByAccount(gomock.Any(), "cat1@30cm.net").
+ Return(&model.Account{Account: "cat1@30cm.net"}, nil)
+ mockGenUIDModel.EXPECT().
+ Generate(gomock.Any()).
+ Return("OOOOOOOD", nil)
+ mockAccountToUidModel.EXPECT().
+ Insert(gomock.Any(), &model.AccountToUid{Account: "cat1@30cm.net", Uid: "OOOOOOOD", Type: domain.AccountTypeMail.ToInt64()}).
+ Return(nil, nil)
+ },
+ expectError: false,
+ expected: &member.BindingUserResp{
+ LoginId: "cat1@30cm.net",
+ Uid: "OOOOOOOD",
+ Type: domain.AccountTypeMail.ToInt64(),
+ },
+ },
+ {
+ name: "account not found",
+ input: &member.BindingUserReq{
+ LoginId: "cat2@30cm.net",
+ Uid: "12345",
+ },
+ setupMocks: func() {
+ // mock validate returns
+ mockValidate.EXPECT().
+ ValidateAll(gomock.Any()).Return(nil)
+ mockAccountModel.EXPECT().
+ FindOneByAccount(gomock.Any(), "cat2@30cm.net").
+ Return(nil, errors.New("account not found"))
+ },
+ expectError: true,
+ },
+ {
+ name: "insert account to UID failed",
+ input: &member.BindingUserReq{
+ LoginId: "cat2@30cm.net",
+ Uid: "OOOOOOJ",
+ },
+ setupMocks: func() {
+ // mock validate returns
+ mockValidate.EXPECT().
+ ValidateAll(gomock.Any()).Return(nil)
+ mockAccountModel.EXPECT().
+ FindOneByAccount(gomock.Any(), "cat2@30cm.net").
+ Return(&model.Account{Account: "cat2@30cm.net"}, nil)
+ mockAccountToUidModel.EXPECT().
+ Insert(gomock.Any(), &model.AccountToUid{Account: "cat2@30cm.net", Uid: "OOOOOOJ"}).
+ Return(nil, errors.New("insert failed"))
+ },
+ expectError: true,
+ },
+ {
+ name: "failed to validate param",
+ input: &member.BindingUserReq{
+ LoginId: "cat3",
+ Uid: "OOOOOOOL",
+ },
+ setupMocks: func() {
+ // mock validate returns
+ mockValidate.EXPECT().
+ ValidateAll(gomock.Any()).Return(fmt.Errorf("invalid format: failed to get correct formate loginID "))
+ },
+ expectError: true,
+ },
+ }
+
+ for _, tt := range tests {
+ t.Run(tt.name, func(t *testing.T) {
+ tt.setupMocks()
+
+ resp, err := l.BindAccount(tt.input)
+ if tt.expectError {
+ assert.Error(t, err)
+ } else {
+ assert.NoError(t, err)
+ assert.Equal(t, tt.expected, resp)
+ }
+ })
+ }
+}
diff --git a/internal/logic/account/bind_user_info_logic.go b/internal/logic/account/bind_user_info_logic.go
new file mode 100644
index 0000000..b08e6c8
--- /dev/null
+++ b/internal/logic/account/bind_user_info_logic.go
@@ -0,0 +1,92 @@
+package accountlogic
+
+import (
+ "app-cloudep-member-server/internal/model"
+ "context"
+ "errors"
+ "time"
+
+ ers "code.30cm.net/digimon/library-go/errors"
+ "github.com/go-sql-driver/mysql"
+
+ "app-cloudep-member-server/gen_result/pb/member"
+ "app-cloudep-member-server/internal/svc"
+
+ "github.com/zeromicro/go-zero/core/logx"
+)
+
+type BindUserInfoLogic struct {
+ ctx context.Context
+ svcCtx *svc.ServiceContext
+ logx.Logger
+}
+
+type createUserInfo struct {
+ Uid string `validate:"required"`
+ VerifyType int32 `validate:"required,oneof=0 1 2 3"`
+ AlarmType int32 `validate:"required,oneof=0 1 2"`
+ Status int32 `validate:"required,oneof=1 2 3 4 5 6"`
+ RoleId string `validate:"required"`
+ Language string `validate:"required"`
+ Currency string `validate:"required"`
+ NickName string `validate:"required"`
+}
+
+func NewBindUserInfoLogic(ctx context.Context, svcCtx *svc.ServiceContext) *BindUserInfoLogic {
+ return &BindUserInfoLogic{
+ ctx: ctx,
+ svcCtx: svcCtx,
+ Logger: logx.WithContext(ctx),
+ }
+}
+
+type createUserInfoReq struct {
+ Uid string `validate:"required"` // 唯一辨識碼
+ Language string `validate:"required"`
+ Currency string `validate:"required"`
+ // VerifyType int32 `validate:"required,oneof=0 1 2 3 4"` // 驗證類型 0. 異常 [ 1.信箱 2.手機 3. GA 4. 關閉] 兩步驟驗證狀態
+ // AlarmType int32 `validate:"required,oneof=0 1 2"` // 告警狀態 0. 異常 1. 正常(未告警) 2.系統告警中
+ // Status int32 `validate:"required,oneof=1 2 3 4 5"` // 會員狀態 0. 異常 1. 尚未驗證 2. 啟用 3. 停權中 4. 信箱以驗證 5. 手機以驗證
+ // Language string
+ // Currency string
+ // NickName string
+ // Avatar string // 會員頭像
+}
+
+// BindUserInfo 初次,綁定 User Info
+func (l *BindUserInfoLogic) BindUserInfo(in *member.CreateUserInfoReq) (*member.OKResp, error) {
+ // 驗證資料
+ if err := l.svcCtx.Validate.ValidateAll(&createUserInfoReq{
+ Uid: in.GetUid(),
+ Language: in.GetLanguage(),
+ Currency: in.GetCurrency(),
+ }); err != nil {
+ return nil, ers.InvalidFormat(err.Error())
+ }
+
+ // 有些應為預設資料,不應該被新增
+ now := time.Now().UTC().Unix()
+ if _, err := l.svcCtx.UserModel.Insert(l.ctx, &model.UserTable{
+ Uid: in.GetUid(),
+ VerifyType: int64(member.VerifyType_VERIFY_NOT.Number()), // 預設為沒有設定兩步驟驗證
+ AlarmType: int64(member.AlarmType_ALARM_NOT.Number()), // 預設狀態為沒有被系統告警過
+ Status: int64(member.MemberStatus_STATUS_VERIFY.Number()), // 預設狀態為尚未驗證
+ Language: in.GetLanguage(),
+ Currency: in.GetCurrency(),
+ NickName: in.GetNickName(),
+ Avatar: in.GetAvatar(),
+ CreateTime: now,
+ UpdateTime: now,
+ }); err != nil {
+ // 新增進去
+ var mysqlErr *mysql.MySQLError
+ if errors.As(err, &mysqlErr) && mysqlErr.Number == 1062 {
+ // 處理重複條目錯誤
+ return nil, ers.DBDuplicate(in.GetUid())
+ }
+
+ return nil, ers.DBError(err.Error())
+ }
+
+ return &member.OKResp{}, nil
+}
diff --git a/internal/logic/account/bind_user_info_logic_test.go b/internal/logic/account/bind_user_info_logic_test.go
new file mode 100644
index 0000000..c411c5c
--- /dev/null
+++ b/internal/logic/account/bind_user_info_logic_test.go
@@ -0,0 +1,144 @@
+package accountlogic
+
+import (
+ "app-cloudep-member-server/gen_result/pb/member"
+ libMock "app-cloudep-member-server/internal/mock/lib"
+ modelMock "app-cloudep-member-server/internal/mock/model"
+ "app-cloudep-member-server/internal/svc"
+ "context"
+ "fmt"
+ "testing"
+
+ "github.com/alicebob/miniredis/v2"
+ "github.com/go-sql-driver/mysql"
+ "github.com/stretchr/testify/assert"
+ "github.com/zeromicro/go-zero/core/stores/redis"
+ "go.uber.org/mock/gomock"
+ "google.golang.org/protobuf/proto"
+)
+
+func TestBindUserInfoLogic_BindUserInfo(t *testing.T) {
+ // mock
+ ctrl := gomock.NewController(t)
+ defer ctrl.Finish()
+
+ mockUserModel := modelMock.NewMockUserTableModel(ctrl)
+ mockValidate := libMock.NewMockValidate(ctrl)
+
+ r1, err := miniredis.Run()
+ assert.NoError(t, err)
+ defer r1.Close()
+
+ newRedis, err := redis.NewRedis(redis.RedisConf{
+ Host: r1.Addr(),
+ Type: redis.ClusterType,
+ Pass: "",
+ })
+ assert.NoError(t, err)
+
+ sc := svc.ServiceContext{
+ UserModel: mockUserModel,
+ Redis: *newRedis,
+ Validate: mockValidate,
+ }
+
+ l := NewBindUserInfoLogic(context.Background(), &sc)
+
+ tests := []struct {
+ name string
+ input *member.CreateUserInfoReq
+ setupMocks func()
+ expectError bool
+ expected *member.OKResp
+ }{
+ {
+ name: "ok",
+ input: &member.CreateUserInfoReq{
+ Uid: "2024101598765",
+ VerifyType: 1,
+ AlarmType: 2,
+ Status: 3,
+ Language: "en",
+ Currency: "USDT",
+ NickName: proto.String("Test User"),
+ },
+ setupMocks: func() {
+ mockValidate.EXPECT().
+ ValidateAll(gomock.Any()).
+ Return(nil)
+ mockUserModel.EXPECT().
+ Insert(gomock.Any(), gomock.Any()).
+ Return(nil, nil)
+ },
+ expectError: false,
+ expected: &member.OKResp{},
+ },
+ {
+ name: "invalid user info",
+ input: &member.CreateUserInfoReq{
+ Uid: "",
+ },
+ setupMocks: func() {
+ mockValidate.EXPECT().
+ ValidateAll(gomock.Any()).
+ Return(fmt.Errorf("validation error"))
+ },
+ expectError: true,
+ },
+ {
+ name: "duplicate entry",
+ input: &member.CreateUserInfoReq{
+ Uid: "test_uid",
+ VerifyType: 1,
+ AlarmType: 2,
+ Status: 3,
+ Language: "en",
+ Currency: "USD",
+ NickName: proto.String("Test User"),
+ },
+ setupMocks: func() {
+ mockValidate.EXPECT().
+ ValidateAll(gomock.Any()).
+ Return(nil)
+ mockUserModel.EXPECT().
+ Insert(gomock.Any(), gomock.Any()).
+ Return(nil, &mysql.MySQLError{Number: 1062, Message: "Duplicate entry"})
+ },
+ expectError: true,
+ },
+ {
+ name: "database error",
+ input: &member.CreateUserInfoReq{
+ Uid: "test_uid",
+ VerifyType: 1,
+ AlarmType: 2,
+ Status: 3,
+ Language: "en",
+ Currency: "USD",
+ NickName: proto.String("Test User"),
+ },
+ setupMocks: func() {
+ mockValidate.EXPECT().
+ ValidateAll(gomock.Any()).
+ Return(nil)
+ mockUserModel.EXPECT().
+ Insert(gomock.Any(), gomock.Any()).
+ Return(nil, fmt.Errorf("database error"))
+ },
+ expectError: true,
+ },
+ }
+
+ for _, tt := range tests {
+ t.Run(tt.name, func(t *testing.T) {
+ tt.setupMocks()
+ resp, err := l.BindUserInfo(tt.input)
+ if tt.expectError {
+ assert.Error(t, err)
+ } else {
+ assert.NoError(t, err)
+ assert.Equal(t, tt.expected, resp)
+ }
+ })
+ }
+}
diff --git a/internal/logic/account/create_user_account_logic.go b/internal/logic/account/create_user_account_logic.go
new file mode 100644
index 0000000..b4c402e
--- /dev/null
+++ b/internal/logic/account/create_user_account_logic.go
@@ -0,0 +1,82 @@
+package accountlogic
+
+import (
+ "app-cloudep-member-server/internal/model"
+ "app-cloudep-member-server/internal/utils"
+ "context"
+ "errors"
+ "fmt"
+ "time"
+
+ ers "code.30cm.net/digimon/library-go/errors"
+ "github.com/go-sql-driver/mysql"
+
+ "app-cloudep-member-server/gen_result/pb/member"
+ "app-cloudep-member-server/internal/svc"
+
+ "github.com/zeromicro/go-zero/core/logx"
+)
+
+type CreateUserAccountLogic struct {
+ ctx context.Context
+ svcCtx *svc.ServiceContext
+ logx.Logger
+}
+
+func NewCreateUserAccountLogic(ctx context.Context, svcCtx *svc.ServiceContext) *CreateUserAccountLogic {
+ return &CreateUserAccountLogic{
+ ctx: ctx,
+ svcCtx: svcCtx,
+ Logger: logx.WithContext(ctx),
+ }
+}
+
+type createLoginUserReq struct {
+ LoginId string `json:"login_id" validate:"account"`
+ Platform int64 `json:"platform" validate:"required,oneof=1 2 3"`
+ Token string `json:"token" validate:"required"`
+}
+
+// HasPasswordFunc 這樣方便測試
+var HasPasswordFunc = utils.HashPassword
+
+// CreateUserAccount 建立帳號與密碼 -> 可登入,但可不可以做其他事情看業務流程,也可以只註冊就好
+func (l *CreateUserAccountLogic) CreateUserAccount(in *member.CreateLoginUserReq) (*member.OKResp, error) {
+ // 驗證資料
+ if err := l.svcCtx.Validate.ValidateAll(&createLoginUserReq{
+ LoginId: in.GetLoginId(),
+ Platform: in.GetPlatform(),
+ Token: in.GetToken(),
+ }); err != nil {
+ return nil, ers.InvalidFormat(err.Error())
+ }
+
+ // TODO 檢查平台,依照不同平台,做不同的事
+
+ token, err := HasPasswordFunc(in.GetToken(), l.svcCtx.Config.Bcrypt.Cost)
+ if err != nil {
+ return nil, ers.ArkInternal(fmt.Sprintf("failed to encrypt err: %v", err.Error()))
+ }
+
+ // 新增進去
+ now := time.Now().UTC().Unix()
+ _, err = l.svcCtx.AccountModel.Insert(l.ctx, &model.Account{
+ Account: in.LoginId,
+ Token: token,
+ Platform: in.Platform,
+ CreateTime: now,
+ UpdateTime: now,
+ })
+ if err != nil {
+ // 新增進去
+ var mysqlErr *mysql.MySQLError
+ if errors.As(err, &mysqlErr) && mysqlErr.Number == 1062 {
+ // 處理重複條目錯誤
+ return nil, ers.DBDuplicate(in.LoginId)
+ }
+
+ return nil, ers.DBError(err.Error())
+ }
+
+ return &member.OKResp{}, nil
+}
diff --git a/internal/logic/account/create_user_account_logic_test.go b/internal/logic/account/create_user_account_logic_test.go
new file mode 100644
index 0000000..36268df
--- /dev/null
+++ b/internal/logic/account/create_user_account_logic_test.go
@@ -0,0 +1,158 @@
+package accountlogic
+
+import (
+ "app-cloudep-member-server/gen_result/pb/member"
+ libMock "app-cloudep-member-server/internal/mock/lib"
+ modelMock "app-cloudep-member-server/internal/mock/model"
+ usecaseMock "app-cloudep-member-server/internal/mock/usecase"
+ "app-cloudep-member-server/internal/svc"
+ "context"
+ "fmt"
+ "testing"
+
+ "github.com/alicebob/miniredis/v2"
+ "github.com/go-sql-driver/mysql"
+ "github.com/stretchr/testify/assert"
+ "github.com/zeromicro/go-zero/core/stores/redis"
+ "go.uber.org/mock/gomock"
+)
+
+func TestCreateUserAccountLogic_CreateUserAccount(t *testing.T) {
+ // mock
+ ctrl := gomock.NewController(t)
+ defer ctrl.Finish()
+
+ modelAccountModel := modelMock.NewMockAccountModel(ctrl)
+ mockGenUIDModel := usecaseMock.NewMockUIDGenerateUseCase(ctrl)
+ mockValidate := libMock.NewMockValidate(ctrl)
+
+ r1, err := miniredis.Run()
+ assert.NoError(t, err)
+ defer r1.Close()
+
+ newRedis, err := redis.NewRedis(redis.RedisConf{
+ Host: r1.Addr(),
+ Type: redis.ClusterType,
+ Pass: "",
+ })
+ assert.NoError(t, err)
+
+ sc := svc.ServiceContext{
+ AccountModel: modelAccountModel,
+ GenUIDUseCase: mockGenUIDModel,
+ Redis: *newRedis,
+ Validate: mockValidate,
+ }
+
+ l := NewCreateUserAccountLogic(context.Background(), &sc)
+
+ tests := []struct {
+ name string
+ input *member.CreateLoginUserReq
+ setupMocks func()
+ expectError bool
+ expected *member.OKResp
+ }{
+ {
+ name: "ok",
+ input: &member.CreateLoginUserReq{
+ LoginId: "test_user",
+ Platform: 1,
+ Token: "password123",
+ },
+ setupMocks: func() {
+ mockValidate.EXPECT().
+ ValidateAll(gomock.Any()).
+ Return(nil)
+ modelAccountModel.EXPECT().
+ Insert(gomock.Any(), gomock.Any()).
+ Return(nil, nil)
+ },
+ expectError: false,
+ expected: &member.OKResp{},
+ },
+ {
+ name: "validation failure",
+ input: &member.CreateLoginUserReq{
+ LoginId: "test_user",
+ Platform: 1,
+ Token: "password123",
+ },
+ setupMocks: func() {
+ mockValidate.EXPECT().
+ ValidateAll(gomock.Any()).
+ Return(fmt.Errorf("validation error"))
+ },
+ expectError: true,
+ },
+ {
+ name: "password hash failure",
+ input: &member.CreateLoginUserReq{
+ LoginId: "test_user",
+ Platform: 1,
+ Token: "password123",
+ },
+ setupMocks: func() {
+ mockValidate.EXPECT().
+ ValidateAll(gomock.Any()).
+ Return(nil)
+ HasPasswordFunc = func(password string, cost int) (string, error) {
+ return "", fmt.Errorf("hash error")
+ }
+ },
+ expectError: true,
+ },
+ {
+ name: "duplicate entry error",
+ input: &member.CreateLoginUserReq{
+ LoginId: "test_user",
+ Platform: 1,
+ Token: "password123",
+ },
+ setupMocks: func() {
+ mockValidate.EXPECT().
+ ValidateAll(gomock.Any()).
+ Return(nil)
+ HasPasswordFunc = func(password string, cost int) (string, error) {
+ return "hashedpassword", nil
+ }
+ modelAccountModel.EXPECT().
+ Insert(gomock.Any(), gomock.Any()).
+ Return(nil, &mysql.MySQLError{Number: 1062, Message: "Duplicate entry"})
+ },
+ expectError: true,
+ },
+ {
+ name: "database error",
+ input: &member.CreateLoginUserReq{
+ LoginId: "test_user",
+ Platform: 1,
+ Token: "password123",
+ },
+ setupMocks: func() {
+ mockValidate.EXPECT().
+ ValidateAll(gomock.Any()).
+ Return(nil)
+ HasPasswordFunc = func(password string, cost int) (string, error) {
+ return "hashedpassword", nil
+ }
+ modelAccountModel.EXPECT().
+ Insert(gomock.Any(), gomock.Any()).
+ Return(nil, fmt.Errorf("database error"))
+ },
+ expectError: true,
+ },
+ }
+ for _, tt := range tests {
+ t.Run(tt.name, func(t *testing.T) {
+ tt.setupMocks()
+ resp, err := l.CreateUserAccount(tt.input)
+ if tt.expectError {
+ assert.Error(t, err)
+ } else {
+ assert.NoError(t, err)
+ assert.Equal(t, tt.expected, resp)
+ }
+ })
+ }
+}
diff --git a/internal/logic/account/generate_refresh_code_logic.go b/internal/logic/account/generate_refresh_code_logic.go
new file mode 100644
index 0000000..ce90d95
--- /dev/null
+++ b/internal/logic/account/generate_refresh_code_logic.go
@@ -0,0 +1,120 @@
+package accountlogic
+
+import (
+ "context"
+ "crypto/rand"
+ "fmt"
+ "math/big"
+ "strconv"
+
+ ers "code.30cm.net/digimon/library-go/errors"
+
+ "app-cloudep-member-server/gen_result/pb/member"
+ "app-cloudep-member-server/internal/svc"
+
+ "github.com/zeromicro/go-zero/core/logx"
+)
+
+type GenerateRefreshCodeLogic struct {
+ ctx context.Context
+ svcCtx *svc.ServiceContext
+ logx.Logger
+}
+
+func NewGenerateRefreshCodeLogic(ctx context.Context, svcCtx *svc.ServiceContext) *GenerateRefreshCodeLogic {
+ return &GenerateRefreshCodeLogic{
+ ctx: ctx,
+ svcCtx: svcCtx,
+ Logger: logx.WithContext(ctx),
+ }
+}
+
+type generateRefreshCodeReq struct {
+ Account string `json:"account" validate:"account"`
+ // CodeType 1 register_email, 2 register_phone, 3 forget_email
+ CodeType int32 `json:"code_type" validate:"required,oneof=1 2 3"`
+}
+
+// GenerateRefreshCode 這個帳號驗證碼(十分鐘),通用的
+func (l *GenerateRefreshCodeLogic) GenerateRefreshCode(in *member.GenerateRefreshCodeReq) (*member.GenerateRefreshCodeResp, error) {
+ // 驗證資料
+ if err := l.svcCtx.Validate.ValidateAll(&generateRefreshCodeReq{
+ Account: in.GetAccount(),
+ CodeType: in.GetCodeType(),
+ }); err != nil {
+ return nil, ers.InvalidFormat(err.Error())
+ }
+
+ checkType, status := getCodeNameByCode(in.GetCodeType())
+ if !status {
+ return nil, ers.InvalidFormat(fmt.Errorf("failed to get correct code type").Error())
+ }
+ rk := fmt.Sprintf("verify:%s:%s", checkType, in.GetAccount())
+ // 拿過就不要再拿了
+ get, err := l.svcCtx.Redis.Get(rk)
+ if err != nil {
+ return nil, ers.DBError("failed to connect to redis", err.Error())
+ }
+ if get != "" {
+ return &member.GenerateRefreshCodeResp{
+ Data: &member.VerifyCode{
+ VerifyCode: get,
+ },
+ }, nil
+ }
+
+ code, err := generateVerifyCode(6)
+ if !status {
+ return nil, ers.ArkInternal(err.Error())
+ }
+
+ err = l.svcCtx.Redis.Setex(rk, code, 600)
+ if err != nil {
+ return nil, ers.ArkInternal(err.Error())
+ }
+
+ return &member.GenerateRefreshCodeResp{
+ Data: &member.VerifyCode{
+ VerifyCode: code,
+ },
+ }, nil
+}
+
+var codeMap = map[int32]string{
+ 1: "email",
+ 2: "phone",
+ 3: "forget_email",
+}
+
+func getCodeNameByCode(code int32) (string, bool) {
+ res, ok := codeMap[code]
+ if !ok {
+ return "", false
+ }
+
+ return res, true
+}
+
+func generateVerifyCode(digits int) (string, error) {
+ if digits <= 0 {
+ // 預設為六位數
+ digits = 6
+ }
+
+ // 計算最大值 (10^digits - 1)
+ exp := new(big.Int).Exp(big.NewInt(10), big.NewInt(int64(digits)), nil)
+ // 生成隨機數
+ randomNumber, err := rand.Int(rand.Reader, exp)
+ if err != nil {
+ return "", err
+ }
+
+ // 將隨機數轉換為 string
+ verifyCode := strconv.Itoa(int(randomNumber.Int64()))
+ // 如果隨機數的位數少於指定的位數,則補 0
+ if len(verifyCode) < digits {
+ verifyCode = fmt.Sprintf("%0*d", digits, randomNumber)
+ }
+
+ return verifyCode, nil
+}
diff --git a/internal/logic/account/generate_refresh_code_logic_test.go b/internal/logic/account/generate_refresh_code_logic_test.go
new file mode 100644
index 0000000..00834f0
--- /dev/null
+++ b/internal/logic/account/generate_refresh_code_logic_test.go
@@ -0,0 +1,51 @@
+package accountlogic
+
+import (
+ "testing"
+
+ "github.com/stretchr/testify/assert"
+)
+
+func Test_getCodeNameByCode(t *testing.T) {
+ type args struct {
+ code int32
+ }
+ tests := []struct {
+ name string
+ args args
+ want string
+ want1 bool
+ }{
+ {
+ name: "email",
+ args: args{
+ code: 1,
+ },
+ want: "email",
+ want1: true,
+ },
+ {
+ name: "phone",
+ args: args{
+ code: 2,
+ },
+ want: "phone",
+ want1: true,
+ },
+ {
+ name: "none",
+ args: args{
+ code: 4,
+ },
+ want: "",
+ want1: false,
+ },
+ }
+ for _, tt := range tests {
+ t.Run(tt.name, func(t *testing.T) {
+ got, got1 := getCodeNameByCode(tt.args.code)
+ assert.Equalf(t, tt.want, got, "getCodeNameByCode(%v)", tt.args.code)
+ assert.Equalf(t, tt.want1, got1, "getCodeNameByCode(%v)", tt.args.code)
+ })
+ }
+}
diff --git a/internal/logic/account/get_uid_by_account_logic.go b/internal/logic/account/get_uid_by_account_logic.go
new file mode 100644
index 0000000..32f802b
--- /dev/null
+++ b/internal/logic/account/get_uid_by_account_logic.go
@@ -0,0 +1,50 @@
+package accountlogic
+
+import (
+ "context"
+
+ ers "code.30cm.net/digimon/library-go/errors"
+
+ "app-cloudep-member-server/gen_result/pb/member"
+ "app-cloudep-member-server/internal/svc"
+
+ "github.com/zeromicro/go-zero/core/logx"
+)
+
+type GetUidByAccountLogic struct {
+ ctx context.Context
+ svcCtx *svc.ServiceContext
+ logx.Logger
+}
+
+func NewGetUidByAccountLogic(ctx context.Context, svcCtx *svc.ServiceContext) *GetUidByAccountLogic {
+ return &GetUidByAccountLogic{
+ ctx: ctx,
+ svcCtx: svcCtx,
+ Logger: logx.WithContext(ctx),
+ }
+}
+
+type getUidByAccountReq struct {
+ Account string `json:"account" validate:"account"`
+}
+
+// GetUidByAccount 用帳號換取 UID
+func (l *GetUidByAccountLogic) GetUidByAccount(in *member.GetUIDByAccountReq) (*member.GetUidByAccountResp, error) {
+ // 驗證資料
+ if err := l.svcCtx.Validate.ValidateAll(&getUidByAccountReq{
+ Account: in.GetAccount(),
+ }); err != nil {
+ return nil, ers.InvalidFormat(err.Error())
+ }
+
+ account, err := l.svcCtx.AccountToUidModel.FindOneByAccount(l.ctx, in.GetAccount())
+ if err != nil {
+ return nil, err
+ }
+
+ return &member.GetUidByAccountResp{
+ Uid: account.Uid,
+ Account: in.GetAccount(),
+ }, nil
+}
diff --git a/internal/logic/account/get_user_account_info_logic.go b/internal/logic/account/get_user_account_info_logic.go
new file mode 100644
index 0000000..04acf05
--- /dev/null
+++ b/internal/logic/account/get_user_account_info_logic.go
@@ -0,0 +1,54 @@
+package accountlogic
+
+import (
+ "context"
+
+ ers "code.30cm.net/digimon/library-go/errors"
+
+ "app-cloudep-member-server/gen_result/pb/member"
+ "app-cloudep-member-server/internal/svc"
+
+ "github.com/zeromicro/go-zero/core/logx"
+)
+
+type GetUserAccountInfoLogic struct {
+ ctx context.Context
+ svcCtx *svc.ServiceContext
+ logx.Logger
+}
+
+func NewGetUserAccountInfoLogic(ctx context.Context, svcCtx *svc.ServiceContext) *GetUserAccountInfoLogic {
+ return &GetUserAccountInfoLogic{
+ ctx: ctx,
+ svcCtx: svcCtx,
+ Logger: logx.WithContext(ctx),
+ }
+}
+
+type getUserAccountReq struct {
+ LoginId string `json:"login_id" validate:"account"`
+}
+
+// GetUserAccountInfo 取得帳號密碼資料
+func (l *GetUserAccountInfoLogic) GetUserAccountInfo(in *member.GetUIDByAccountReq) (*member.GetAccountInfoResp, error) {
+ // 驗證資料
+ if err := l.svcCtx.Validate.ValidateAll(getUserAccountReq{
+ LoginId: in.GetAccount(),
+ }); err != nil {
+ return nil, ers.InvalidFormat(err.Error())
+ }
+
+ account, err := l.svcCtx.AccountModel.FindOneByAccount(l.ctx, in.GetAccount())
+ if err != nil {
+
+ return nil, ers.DBError(err.Error())
+ }
+
+ return &member.GetAccountInfoResp{
+ Data: &member.CreateLoginUserReq{
+ LoginId: account.Account,
+ Token: account.Token,
+ Platform: account.Platform,
+ },
+ }, nil
+}
diff --git a/internal/logic/account/get_user_info_logic.go b/internal/logic/account/get_user_info_logic.go
new file mode 100644
index 0000000..4e37b5b
--- /dev/null
+++ b/internal/logic/account/get_user_info_logic.go
@@ -0,0 +1,54 @@
+package accountlogic
+
+import (
+ "app-cloudep-member-server/internal/model"
+ "context"
+
+ ers "code.30cm.net/digimon/library-go/errors"
+
+ "app-cloudep-member-server/gen_result/pb/member"
+ "app-cloudep-member-server/internal/svc"
+
+ "github.com/zeromicro/go-zero/core/logx"
+)
+
+type GetUserInfoLogic struct {
+ ctx context.Context
+ svcCtx *svc.ServiceContext
+ logx.Logger
+}
+
+func NewGetUserInfoLogic(ctx context.Context, svcCtx *svc.ServiceContext) *GetUserInfoLogic {
+ return &GetUserInfoLogic{
+ ctx: ctx,
+ svcCtx: svcCtx,
+ Logger: logx.WithContext(ctx),
+ }
+}
+
+// GetUserInfo 取得會員資訊
+func (l *GetUserInfoLogic) GetUserInfo(in *member.GetUserInfoReq) (*member.GetUserInfoResp, error) {
+ var entity *model.UserTable
+ var err error
+
+ if in.GetUid() != "" {
+ entity, err = l.svcCtx.UserModel.FindOneByUid(l.ctx, in.GetUid())
+ if err != nil {
+ return nil, ers.DBError(err.Error())
+ }
+ } else {
+ if in.GetNickName() != "" {
+ entity, err = l.svcCtx.UserModel.FindOneByNickName(l.ctx, in.GetNickName())
+ if err != nil {
+ return nil, ers.DBError(err.Error())
+ }
+
+ }
+ }
+
+ if entity != nil {
+ return &member.GetUserInfoResp{}, nil
+ }
+
+ return nil, ers.ResourceNotFound("filed to get user info")
+}
diff --git a/internal/logic/account/list_member_logic.go b/internal/logic/account/list_member_logic.go
new file mode 100644
index 0000000..740056b
--- /dev/null
+++ b/internal/logic/account/list_member_logic.go
@@ -0,0 +1,156 @@
+package accountlogic
+
+import (
+ "app-cloudep-member-server/internal/domain"
+ "app-cloudep-member-server/internal/model"
+ "context"
+ "fmt"
+ "strconv"
+
+ ers "code.30cm.net/digimon/library-go/errors"
+
+ "app-cloudep-member-server/gen_result/pb/member"
+ "app-cloudep-member-server/internal/svc"
+
+ "github.com/zeromicro/go-zero/core/logx"
+)
+
+type ListMemberLogic struct {
+ ctx context.Context
+ svcCtx *svc.ServiceContext
+ logx.Logger
+}
+
+func NewListMemberLogic(ctx context.Context, svcCtx *svc.ServiceContext) *ListMemberLogic {
+ return &ListMemberLogic{
+ ctx: ctx,
+ svcCtx: svcCtx,
+ Logger: logx.WithContext(ctx),
+ }
+}
+
+// ListMember 取得會員列表
+func (l *ListMemberLogic) ListMember(in *member.ListUserInfoReq) (*member.ListUserInfoResp, error) {
+ params, err := parse(in)
+ if err != nil {
+ return nil, ers.InvalidFormat("failed to get correct param", err.Error())
+ }
+
+ members, err := l.svcCtx.UserModel.ListMembers(l.ctx, ¶ms)
+ if err != nil {
+ return nil, ers.DBError(err.Error())
+ }
+
+ count, err := l.svcCtx.UserModel.Count(l.ctx)
+ if err != nil {
+ return nil, ers.DBError(err.Error())
+ }
+
+ var data = make([]*member.UserInfo, 0, len(members))
+
+ for _, item := range members {
+ data = append(data, &member.UserInfo{
+ Uid: item.Uid,
+ VerifyType: member.VerifyType(item.VerifyType),
+ AlarmType: member.AlarmType(item.AlarmType),
+ Status: member.MemberStatus(item.Status),
+ Language: item.Language,
+ Currency: item.Currency,
+ NickName: &item.NickName,
+ Avatar: item.Avatar,
+ })
+ }
+
+ return &member.ListUserInfoResp{
+ Data: data,
+ Page: &member.Pager{
+ Total: count,
+ Size: in.PageSize,
+ Index: in.PageIndex,
+ },
+ }, nil
+}
+
+func parse(in *member.ListUserInfoReq) (model.UserQueryParams, error) {
+ var filter model.UserQueryParams
+
+ // 設置 PageSize
+ filter.PageSize = getValidPageSize(in.PageSize)
+
+ // 設置 PageIndex
+ filter.PageIndex = getValidPageIndex(in.PageIndex)
+
+ // 設置 VerifyType
+ svt := fmt.Sprintf("%d", in.GetVerifyType().Number())
+ vt, err := getInt32FromStringPointer(&svt)
+ if err != nil {
+ return model.UserQueryParams{}, err
+ }
+ if vt != nil {
+ filter.VerifyType = vt
+ }
+
+ // 設置 AlarmType
+ sat := fmt.Sprintf("%d", in.GetAlarmType().Number())
+ at, err := getInt32FromStringPointer(&sat)
+ if err != nil {
+ return model.UserQueryParams{}, err
+ }
+
+ if at != nil {
+ filter.AlarmType = at
+ }
+
+ // 設置 Status
+ sst := fmt.Sprintf("%d", in.GetStatus().Number())
+ st, err := getInt32FromStringPointer(&sst)
+ if err != nil {
+ return model.UserQueryParams{}, err
+ }
+ if st != nil {
+ filter.Status = st
+ }
+
+ // 設置 CreateStartTime
+ if in.CreateStartTime != nil {
+ ct := in.GetCreateStartTime()
+ filter.CreateStartTime = &ct
+ }
+
+ // 設置 CreateEndTime
+ if in.CreateEndTime != nil {
+ et := in.GetCreateEndTime()
+ filter.CreateEndTime = &et
+ }
+
+ return filter, nil
+}
+
+func getValidPageSize(pageSize int64) int64 {
+ if pageSize <= 0 {
+ return domain.DefaultPageSize
+ }
+ return pageSize
+}
+
+func getValidPageIndex(pageIndex int64) int64 {
+ if pageIndex <= 0 {
+ return domain.DefaultPageIndex
+ }
+ return pageIndex
+}
+
+func getInt32FromStringPointer(strPtr *string) (*int32, error) {
+ if strPtr == nil {
+ return nil, nil
+ }
+ value, err := strconv.Atoi(*strPtr)
+ if err != nil {
+ return nil, err
+ }
+ int32Value := int32(value)
+ if int32Value == 0 {
+ return nil, nil
+ }
+ return &int32Value, nil
+}
diff --git a/internal/logic/account/update_status_logic.go b/internal/logic/account/update_status_logic.go
new file mode 100644
index 0000000..64b568d
--- /dev/null
+++ b/internal/logic/account/update_status_logic.go
@@ -0,0 +1,49 @@
+package accountlogic
+
+import (
+ "context"
+
+ ers "code.30cm.net/digimon/library-go/errors"
+
+ "app-cloudep-member-server/gen_result/pb/member"
+ "app-cloudep-member-server/internal/svc"
+
+ "github.com/zeromicro/go-zero/core/logx"
+)
+
+type UpdateStatusLogic struct {
+ ctx context.Context
+ svcCtx *svc.ServiceContext
+ logx.Logger
+}
+
+func NewUpdateStatusLogic(ctx context.Context, svcCtx *svc.ServiceContext) *UpdateStatusLogic {
+ return &UpdateStatusLogic{
+ ctx: ctx,
+ svcCtx: svcCtx,
+ Logger: logx.WithContext(ctx),
+ }
+}
+
+type updateStatusReq struct {
+ UID string `json:"uid" validate:"required"`
+ Status int32 `json:"status" validate:"required,oneof=1 2 3 4 5 6"`
+}
+
+// UpdateStatus 修改狀態
+func (l *UpdateStatusLogic) UpdateStatus(in *member.UpdateStatusReq) (*member.OKResp, error) {
+ // 驗證資料
+ if err := l.svcCtx.Validate.ValidateAll(&updateStatusReq{
+ UID: in.GetUid(),
+ Status: int32(in.GetStatus()),
+ }); err != nil {
+ return nil, ers.InvalidFormat(err.Error())
+ }
+
+ err := l.svcCtx.UserModel.UpdateStatus(l.ctx, in.GetUid(), int32(in.GetStatus()))
+ if err != nil {
+ return nil, ers.DBError(err.Error())
+ }
+
+ return &member.OKResp{}, nil
+}
diff --git a/internal/logic/account/update_user_info_logic.go b/internal/logic/account/update_user_info_logic.go
new file mode 100644
index 0000000..ba21828
--- /dev/null
+++ b/internal/logic/account/update_user_info_logic.go
@@ -0,0 +1,36 @@
+package accountlogic
+
+import (
+ "context"
+
+ ers "code.30cm.net/digimon/library-go/errors"
+
+ "app-cloudep-member-server/gen_result/pb/member"
+ "app-cloudep-member-server/internal/svc"
+
+ "github.com/zeromicro/go-zero/core/logx"
+)
+
+type UpdateUserInfoLogic struct {
+ ctx context.Context
+ svcCtx *svc.ServiceContext
+ logx.Logger
+}
+
+func NewUpdateUserInfoLogic(ctx context.Context, svcCtx *svc.ServiceContext) *UpdateUserInfoLogic {
+ return &UpdateUserInfoLogic{
+ ctx: ctx,
+ svcCtx: svcCtx,
+ Logger: logx.WithContext(ctx),
+ }
+}
+
+// UpdateUserInfo 更新 User Info
+func (l *UpdateUserInfoLogic) UpdateUserInfo(in *member.UpdateUserInfoReq) (*member.OKResp, error) {
+ err := l.svcCtx.UserModel.UpdateSome(l.ctx, in)
+ if err != nil {
+ return nil, ers.DBError(err.Error())
+ }
+
+ return &member.OKResp{}, nil
+}
diff --git a/internal/logic/account/update_user_token_logic.go b/internal/logic/account/update_user_token_logic.go
new file mode 100644
index 0000000..d7e37a0
--- /dev/null
+++ b/internal/logic/account/update_user_token_logic.go
@@ -0,0 +1,58 @@
+package accountlogic
+
+import (
+ "app-cloudep-member-server/internal/utils"
+ "context"
+ "fmt"
+
+ ers "code.30cm.net/digimon/library-go/errors"
+
+ "app-cloudep-member-server/gen_result/pb/member"
+ "app-cloudep-member-server/internal/svc"
+
+ "github.com/zeromicro/go-zero/core/logx"
+)
+
+type UpdateUserTokenLogic struct {
+ ctx context.Context
+ svcCtx *svc.ServiceContext
+ logx.Logger
+}
+
+func NewUpdateUserTokenLogic(ctx context.Context, svcCtx *svc.ServiceContext) *UpdateUserTokenLogic {
+ return &UpdateUserTokenLogic{
+ ctx: ctx,
+ svcCtx: svcCtx,
+ Logger: logx.WithContext(ctx),
+ }
+}
+
+type updateUserTokenReq struct {
+ LoginId string `json:"login_id" validate:"account"`
+ Platform int64 `json:"platform" validate:"required,oneof=1"` // '平台類型 1. ark 只有我們自己平台才可以改密碼
+ Token string `json:"token" validate:"required"`
+}
+
+// UpdateUserToken 更新密碼
+func (l *UpdateUserTokenLogic) UpdateUserToken(in *member.UpdateTokenReq) (*member.OKResp, error) {
+ // 驗證資料
+ if err := l.svcCtx.Validate.ValidateAll(&updateUserTokenReq{
+ LoginId: in.GetAccount(),
+ Token: in.GetToken(),
+ Platform: in.GetPlatform(),
+ }); err != nil {
+ return nil, ers.InvalidFormat(err.Error())
+ }
+
+ token, err := utils.HashPassword(in.GetToken(), l.svcCtx.Config.Bcrypt.Cost)
+ if err != nil {
+ return nil, ers.ArkInternal(fmt.Sprintf("failed to encrypt err: %v", err.Error()))
+ }
+
+ err = l.svcCtx.AccountModel.UpdateTokenByLoginID(l.ctx, in.GetAccount(), token)
+ if err != nil {
+ return nil, ers.DBError(err.Error())
+ }
+
+ return &member.OKResp{}, nil
+}
diff --git a/internal/logic/account/verify_refresh_code_logic.go b/internal/logic/account/verify_refresh_code_logic.go
new file mode 100644
index 0000000..23a22f0
--- /dev/null
+++ b/internal/logic/account/verify_refresh_code_logic.go
@@ -0,0 +1,63 @@
+package accountlogic
+
+import (
+ "context"
+ "fmt"
+
+ ers "code.30cm.net/digimon/library-go/errors"
+
+ "app-cloudep-member-server/gen_result/pb/member"
+ "app-cloudep-member-server/internal/svc"
+
+ "github.com/zeromicro/go-zero/core/logx"
+)
+
+type VerifyRefreshCodeLogic struct {
+ ctx context.Context
+ svcCtx *svc.ServiceContext
+ logx.Logger
+}
+
+func NewVerifyRefreshCodeLogic(ctx context.Context, svcCtx *svc.ServiceContext) *VerifyRefreshCodeLogic {
+ return &VerifyRefreshCodeLogic{
+ ctx: ctx,
+ svcCtx: svcCtx,
+ Logger: logx.WithContext(ctx),
+ }
+}
+
+// VerifyRefreshCode 驗證忘記密碼 token
+func (l *VerifyRefreshCodeLogic) VerifyRefreshCode(in *member.VerifyRefreshCodeReq) (*member.OKResp, error) {
+ // 驗證資料
+ if err := l.svcCtx.Validate.ValidateAll(&generateRefreshCodeReq{
+ Account: in.GetAccount(),
+ CodeType: in.GetCodeType(),
+ }); err != nil {
+ return nil, ers.InvalidFormat(err.Error())
+ }
+
+ checkType, status := getCodeNameByCode(in.GetCodeType())
+ if !status {
+ return nil, ers.InvalidFormat(fmt.Errorf("failed to get correct code type").Error())
+ }
+ rk := fmt.Sprintf("verify:%s:%s", checkType, in.GetAccount())
+ get, err := l.svcCtx.Redis.Get(rk)
+ if err != nil {
+ return nil, ers.DBError("failed to connect to redis", err.Error())
+ }
+
+ if get == "" {
+ return nil, ers.DBError("failed to get data from redis")
+ }
+
+ if get != fmt.Sprintf("%d", in.CodeType) {
+ return nil, ers.ArkInternal("Illegible Verify Code")
+ }
+
+ _, err = l.svcCtx.Redis.Del(rk)
+ if err != nil {
+ return nil, ers.DBError("failed to del redis key", rk)
+ }
+
+ return &member.OKResp{}, nil
+}
diff --git a/internal/server/account/account_server.go b/internal/server/account/account_server.go
new file mode 100644
index 0000000..6bb2646
--- /dev/null
+++ b/internal/server/account/account_server.go
@@ -0,0 +1,95 @@
+// Code generated by goctl. DO NOT EDIT.
+// Source: service.proto
+
+package server
+
+import (
+ "context"
+
+ "app-cloudep-member-server/gen_result/pb/member"
+ accountlogic "app-cloudep-member-server/internal/logic/account"
+ "app-cloudep-member-server/internal/svc"
+)
+
+type AccountServer struct {
+ svcCtx *svc.ServiceContext
+ member.UnimplementedAccountServer
+}
+
+func NewAccountServer(svcCtx *svc.ServiceContext) *AccountServer {
+ return &AccountServer{
+ svcCtx: svcCtx,
+ }
+}
+
+// CreateUserAccount 建立帳號與密碼 -> 可登入,但可不可以做其他事情看業務流程,也可以只註冊就好
+func (s *AccountServer) CreateUserAccount(ctx context.Context, in *member.CreateLoginUserReq) (*member.OKResp, error) {
+ l := accountlogic.NewCreateUserAccountLogic(ctx, s.svcCtx)
+ return l.CreateUserAccount(in)
+}
+
+// GetUserAccountInfo 取得帳號密碼資料
+func (s *AccountServer) GetUserAccountInfo(ctx context.Context, in *member.GetUIDByAccountReq) (*member.GetAccountInfoResp, error) {
+ l := accountlogic.NewGetUserAccountInfoLogic(ctx, s.svcCtx)
+ return l.GetUserAccountInfo(in)
+}
+
+// UpdateUserToken 更新密碼
+func (s *AccountServer) UpdateUserToken(ctx context.Context, in *member.UpdateTokenReq) (*member.OKResp, error) {
+ l := accountlogic.NewUpdateUserTokenLogic(ctx, s.svcCtx)
+ return l.UpdateUserToken(in)
+}
+
+// GetUidByAccount 用帳號換取 UID
+func (s *AccountServer) GetUidByAccount(ctx context.Context, in *member.GetUIDByAccountReq) (*member.GetUidByAccountResp, error) {
+ l := accountlogic.NewGetUidByAccountLogic(ctx, s.svcCtx)
+ return l.GetUidByAccount(in)
+}
+
+// BindAccount 綁定帳號 -> account bind to UID
+func (s *AccountServer) BindAccount(ctx context.Context, in *member.BindingUserReq) (*member.BindingUserResp, error) {
+ l := accountlogic.NewBindAccountLogic(ctx, s.svcCtx)
+ return l.BindAccount(in)
+}
+
+// BindUserInfo 初次,綁定 User Info
+func (s *AccountServer) BindUserInfo(ctx context.Context, in *member.CreateUserInfoReq) (*member.OKResp, error) {
+ l := accountlogic.NewBindUserInfoLogic(ctx, s.svcCtx)
+ return l.BindUserInfo(in)
+}
+
+// UpdateUserInfo 更新 User Info
+func (s *AccountServer) UpdateUserInfo(ctx context.Context, in *member.UpdateUserInfoReq) (*member.OKResp, error) {
+ l := accountlogic.NewUpdateUserInfoLogic(ctx, s.svcCtx)
+ return l.UpdateUserInfo(in)
+}
+
+// UpdateStatus 修改狀態
+func (s *AccountServer) UpdateStatus(ctx context.Context, in *member.UpdateStatusReq) (*member.OKResp, error) {
+ l := accountlogic.NewUpdateStatusLogic(ctx, s.svcCtx)
+ return l.UpdateStatus(in)
+}
+
+// GetUserInfo 取得會員資訊
+func (s *AccountServer) GetUserInfo(ctx context.Context, in *member.GetUserInfoReq) (*member.GetUserInfoResp, error) {
+ l := accountlogic.NewGetUserInfoLogic(ctx, s.svcCtx)
+ return l.GetUserInfo(in)
+}
+
+// ListMember 取得會員列表
+func (s *AccountServer) ListMember(ctx context.Context, in *member.ListUserInfoReq) (*member.ListUserInfoResp, error) {
+ l := accountlogic.NewListMemberLogic(ctx, s.svcCtx)
+ return l.ListMember(in)
+}
+
+// GenerateRefreshCode 這個帳號驗證碼(十分鐘),通用的
+func (s *AccountServer) GenerateRefreshCode(ctx context.Context, in *member.GenerateRefreshCodeReq) (*member.GenerateRefreshCodeResp, error) {
+ l := accountlogic.NewGenerateRefreshCodeLogic(ctx, s.svcCtx)
+ return l.GenerateRefreshCode(in)
+}
+
+// VerifyRefreshCode 驗證忘記密碼 token
+func (s *AccountServer) VerifyRefreshCode(ctx context.Context, in *member.VerifyRefreshCodeReq) (*member.OKResp, error) {
+ l := accountlogic.NewVerifyRefreshCodeLogic(ctx, s.svcCtx)
+ return l.VerifyRefreshCode(in)
+}