移除不必要檔案
This commit is contained in:
parent
d7b01eb4e1
commit
c19c2f776a
|
@ -1,8 +0,0 @@
|
||||||
# Default ignored files
|
|
||||||
/shelf/
|
|
||||||
/workspace.xml
|
|
||||||
# Editor-based HTTP Client requests
|
|
||||||
/httpRequests/
|
|
||||||
# Datasource local storage ignored files
|
|
||||||
/dataSources/
|
|
||||||
/dataSources.local.xml
|
|
|
@ -1,9 +0,0 @@
|
||||||
<?xml version="1.0" encoding="UTF-8"?>
|
|
||||||
<module type="WEB_MODULE" version="4">
|
|
||||||
<component name="Go" enabled="true" />
|
|
||||||
<component name="NewModuleRootManager">
|
|
||||||
<content url="file://$MODULE_DIR$" />
|
|
||||||
<orderEntry type="inheritedJdk" />
|
|
||||||
<orderEntry type="sourceFolder" forTests="false" />
|
|
||||||
</component>
|
|
||||||
</module>
|
|
|
@ -1,12 +0,0 @@
|
||||||
<?xml version="1.0" encoding="UTF-8"?>
|
|
||||||
<project version="4">
|
|
||||||
<component name="DataSourceManagerImpl" format="xml" multifile-model="true">
|
|
||||||
<data-source source="LOCAL" name="@localhost" uuid="68b84de2-e0b4-4302-bb99-2a65764fd57a">
|
|
||||||
<driver-ref>mysql.8</driver-ref>
|
|
||||||
<synchronize>true</synchronize>
|
|
||||||
<jdbc-driver>com.mysql.cj.jdbc.Driver</jdbc-driver>
|
|
||||||
<jdbc-url>jdbc:mysql://localhost:3306</jdbc-url>
|
|
||||||
<working-dir>$ProjectFileDir$</working-dir>
|
|
||||||
</data-source>
|
|
||||||
</component>
|
|
||||||
</project>
|
|
|
@ -1,8 +0,0 @@
|
||||||
<?xml version="1.0" encoding="UTF-8"?>
|
|
||||||
<project version="4">
|
|
||||||
<component name="ProjectModuleManager">
|
|
||||||
<modules>
|
|
||||||
<module fileurl="file://$PROJECT_DIR$/.idea/app-cloudep-member-server.iml" filepath="$PROJECT_DIR$/.idea/app-cloudep-member-server.iml" />
|
|
||||||
</modules>
|
|
||||||
</component>
|
|
||||||
</project>
|
|
|
@ -1,6 +0,0 @@
|
||||||
<?xml version="1.0" encoding="UTF-8"?>
|
|
||||||
<project version="4">
|
|
||||||
<component name="VcsDirectoryMappings">
|
|
||||||
<mapping directory="" vcs="Git" />
|
|
||||||
</component>
|
|
||||||
</project>
|
|
|
@ -1,147 +0,0 @@
|
||||||
// Code generated by goctl. DO NOT EDIT.
|
|
||||||
// Source: service.proto
|
|
||||||
|
|
||||||
package account
|
|
||||||
|
|
||||||
import (
|
|
||||||
"context"
|
|
||||||
|
|
||||||
"app-cloudep-member-server/gen_result/pb/member"
|
|
||||||
|
|
||||||
"github.com/zeromicro/go-zero/zrpc"
|
|
||||||
"google.golang.org/grpc"
|
|
||||||
)
|
|
||||||
|
|
||||||
type (
|
|
||||||
BindingUserReq = member.BindingUserReq
|
|
||||||
BindingUserResp = member.BindingUserResp
|
|
||||||
CreateLoginUserReq = member.CreateLoginUserReq
|
|
||||||
CreateUserInfoReq = member.CreateUserInfoReq
|
|
||||||
GenerateRefreshCodeReq = member.GenerateRefreshCodeReq
|
|
||||||
GenerateRefreshCodeResp = member.GenerateRefreshCodeResp
|
|
||||||
GetAccountInfoResp = member.GetAccountInfoResp
|
|
||||||
GetUIDByAccountReq = member.GetUIDByAccountReq
|
|
||||||
GetUidByAccountResp = member.GetUidByAccountResp
|
|
||||||
GetUserInfoReq = member.GetUserInfoReq
|
|
||||||
GetUserInfoResp = member.GetUserInfoResp
|
|
||||||
ListUserInfoReq = member.ListUserInfoReq
|
|
||||||
ListUserInfoResp = member.ListUserInfoResp
|
|
||||||
NoneReq = member.NoneReq
|
|
||||||
OKResp = member.OKResp
|
|
||||||
Pager = member.Pager
|
|
||||||
UpdateStatusReq = member.UpdateStatusReq
|
|
||||||
UpdateTokenReq = member.UpdateTokenReq
|
|
||||||
UpdateUserInfoReq = member.UpdateUserInfoReq
|
|
||||||
UserInfo = member.UserInfo
|
|
||||||
VerifyCode = member.VerifyCode
|
|
||||||
VerifyRefreshCodeReq = member.VerifyRefreshCodeReq
|
|
||||||
|
|
||||||
Account interface {
|
|
||||||
// CreateUserAccount 建立帳號與密碼 -> 可登入,但可不可以做其他事情看業務流程,也可以只註冊就好
|
|
||||||
CreateUserAccount(ctx context.Context, in *CreateLoginUserReq, opts ...grpc.CallOption) (*OKResp, error)
|
|
||||||
// GetUserAccountInfo 取得帳號密碼資料
|
|
||||||
GetUserAccountInfo(ctx context.Context, in *GetUIDByAccountReq, opts ...grpc.CallOption) (*GetAccountInfoResp, error)
|
|
||||||
// UpdateUserToken 更新密碼
|
|
||||||
UpdateUserToken(ctx context.Context, in *UpdateTokenReq, opts ...grpc.CallOption) (*OKResp, error)
|
|
||||||
// GetUidByAccount 用帳號換取 UID
|
|
||||||
GetUidByAccount(ctx context.Context, in *GetUIDByAccountReq, opts ...grpc.CallOption) (*GetUidByAccountResp, error)
|
|
||||||
// BindAccount 綁定帳號 -> account bind to UID
|
|
||||||
BindAccount(ctx context.Context, in *BindingUserReq, opts ...grpc.CallOption) (*BindingUserResp, error)
|
|
||||||
// BindUserInfo 初次,綁定 User Info
|
|
||||||
BindUserInfo(ctx context.Context, in *CreateUserInfoReq, opts ...grpc.CallOption) (*OKResp, error)
|
|
||||||
// UpdateUserInfo 更新 User Info
|
|
||||||
UpdateUserInfo(ctx context.Context, in *UpdateUserInfoReq, opts ...grpc.CallOption) (*OKResp, error)
|
|
||||||
// UpdateStatus 修改狀態
|
|
||||||
UpdateStatus(ctx context.Context, in *UpdateStatusReq, opts ...grpc.CallOption) (*OKResp, error)
|
|
||||||
// GetUserInfo 取得會員資訊
|
|
||||||
GetUserInfo(ctx context.Context, in *GetUserInfoReq, opts ...grpc.CallOption) (*GetUserInfoResp, error)
|
|
||||||
// ListMember 取得會員列表
|
|
||||||
ListMember(ctx context.Context, in *ListUserInfoReq, opts ...grpc.CallOption) (*ListUserInfoResp, error)
|
|
||||||
// GenerateRefreshCode 這個帳號驗證碼(十分鐘),通用的
|
|
||||||
GenerateRefreshCode(ctx context.Context, in *GenerateRefreshCodeReq, opts ...grpc.CallOption) (*GenerateRefreshCodeResp, error)
|
|
||||||
// VerifyRefreshCode 驗證忘記密碼 token
|
|
||||||
VerifyRefreshCode(ctx context.Context, in *VerifyRefreshCodeReq, opts ...grpc.CallOption) (*OKResp, error)
|
|
||||||
}
|
|
||||||
|
|
||||||
defaultAccount struct {
|
|
||||||
cli zrpc.Client
|
|
||||||
}
|
|
||||||
)
|
|
||||||
|
|
||||||
func NewAccount(cli zrpc.Client) Account {
|
|
||||||
return &defaultAccount{
|
|
||||||
cli: cli,
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
// CreateUserAccount 建立帳號與密碼 -> 可登入,但可不可以做其他事情看業務流程,也可以只註冊就好
|
|
||||||
func (m *defaultAccount) CreateUserAccount(ctx context.Context, in *CreateLoginUserReq, opts ...grpc.CallOption) (*OKResp, error) {
|
|
||||||
client := member.NewAccountClient(m.cli.Conn())
|
|
||||||
return client.CreateUserAccount(ctx, in, opts...)
|
|
||||||
}
|
|
||||||
|
|
||||||
// GetUserAccountInfo 取得帳號密碼資料
|
|
||||||
func (m *defaultAccount) GetUserAccountInfo(ctx context.Context, in *GetUIDByAccountReq, opts ...grpc.CallOption) (*GetAccountInfoResp, error) {
|
|
||||||
client := member.NewAccountClient(m.cli.Conn())
|
|
||||||
return client.GetUserAccountInfo(ctx, in, opts...)
|
|
||||||
}
|
|
||||||
|
|
||||||
// UpdateUserToken 更新密碼
|
|
||||||
func (m *defaultAccount) UpdateUserToken(ctx context.Context, in *UpdateTokenReq, opts ...grpc.CallOption) (*OKResp, error) {
|
|
||||||
client := member.NewAccountClient(m.cli.Conn())
|
|
||||||
return client.UpdateUserToken(ctx, in, opts...)
|
|
||||||
}
|
|
||||||
|
|
||||||
// GetUidByAccount 用帳號換取 UID
|
|
||||||
func (m *defaultAccount) GetUidByAccount(ctx context.Context, in *GetUIDByAccountReq, opts ...grpc.CallOption) (*GetUidByAccountResp, error) {
|
|
||||||
client := member.NewAccountClient(m.cli.Conn())
|
|
||||||
return client.GetUidByAccount(ctx, in, opts...)
|
|
||||||
}
|
|
||||||
|
|
||||||
// BindAccount 綁定帳號 -> account bind to UID
|
|
||||||
func (m *defaultAccount) BindAccount(ctx context.Context, in *BindingUserReq, opts ...grpc.CallOption) (*BindingUserResp, error) {
|
|
||||||
client := member.NewAccountClient(m.cli.Conn())
|
|
||||||
return client.BindAccount(ctx, in, opts...)
|
|
||||||
}
|
|
||||||
|
|
||||||
// BindUserInfo 初次,綁定 User Info
|
|
||||||
func (m *defaultAccount) BindUserInfo(ctx context.Context, in *CreateUserInfoReq, opts ...grpc.CallOption) (*OKResp, error) {
|
|
||||||
client := member.NewAccountClient(m.cli.Conn())
|
|
||||||
return client.BindUserInfo(ctx, in, opts...)
|
|
||||||
}
|
|
||||||
|
|
||||||
// UpdateUserInfo 更新 User Info
|
|
||||||
func (m *defaultAccount) UpdateUserInfo(ctx context.Context, in *UpdateUserInfoReq, opts ...grpc.CallOption) (*OKResp, error) {
|
|
||||||
client := member.NewAccountClient(m.cli.Conn())
|
|
||||||
return client.UpdateUserInfo(ctx, in, opts...)
|
|
||||||
}
|
|
||||||
|
|
||||||
// UpdateStatus 修改狀態
|
|
||||||
func (m *defaultAccount) UpdateStatus(ctx context.Context, in *UpdateStatusReq, opts ...grpc.CallOption) (*OKResp, error) {
|
|
||||||
client := member.NewAccountClient(m.cli.Conn())
|
|
||||||
return client.UpdateStatus(ctx, in, opts...)
|
|
||||||
}
|
|
||||||
|
|
||||||
// GetUserInfo 取得會員資訊
|
|
||||||
func (m *defaultAccount) GetUserInfo(ctx context.Context, in *GetUserInfoReq, opts ...grpc.CallOption) (*GetUserInfoResp, error) {
|
|
||||||
client := member.NewAccountClient(m.cli.Conn())
|
|
||||||
return client.GetUserInfo(ctx, in, opts...)
|
|
||||||
}
|
|
||||||
|
|
||||||
// ListMember 取得會員列表
|
|
||||||
func (m *defaultAccount) ListMember(ctx context.Context, in *ListUserInfoReq, opts ...grpc.CallOption) (*ListUserInfoResp, error) {
|
|
||||||
client := member.NewAccountClient(m.cli.Conn())
|
|
||||||
return client.ListMember(ctx, in, opts...)
|
|
||||||
}
|
|
||||||
|
|
||||||
// GenerateRefreshCode 這個帳號驗證碼(十分鐘),通用的
|
|
||||||
func (m *defaultAccount) GenerateRefreshCode(ctx context.Context, in *GenerateRefreshCodeReq, opts ...grpc.CallOption) (*GenerateRefreshCodeResp, error) {
|
|
||||||
client := member.NewAccountClient(m.cli.Conn())
|
|
||||||
return client.GenerateRefreshCode(ctx, in, opts...)
|
|
||||||
}
|
|
||||||
|
|
||||||
// VerifyRefreshCode 驗證忘記密碼 token
|
|
||||||
func (m *defaultAccount) VerifyRefreshCode(ctx context.Context, in *VerifyRefreshCodeReq, opts ...grpc.CallOption) (*OKResp, error) {
|
|
||||||
client := member.NewAccountClient(m.cli.Conn())
|
|
||||||
return client.VerifyRefreshCode(ctx, in, opts...)
|
|
||||||
}
|
|
|
@ -1,37 +0,0 @@
|
||||||
Name: member.rpc
|
|
||||||
ListenOn: 0.0.0.0:8080
|
|
||||||
Etcd:
|
|
||||||
Hosts:
|
|
||||||
- 127.0.0.1:2379
|
|
||||||
Key: member.rpc
|
|
||||||
DB:
|
|
||||||
DsnString: root:yytt@tcp(127.0.0.1:3306)/ark_member?charset=utf8mb4&parseTime=true&loc=Asia%2FTaipei
|
|
||||||
Cache:
|
|
||||||
- Host: 127.0.0.1:7001
|
|
||||||
type: cluster
|
|
||||||
- Host: 127.0.0.1:7002
|
|
||||||
type: cluster
|
|
||||||
- Host: 127.0.0.1:7003
|
|
||||||
type: cluster
|
|
||||||
- Host: 127.0.0.1:7004
|
|
||||||
type: cluster
|
|
||||||
- Host: 127.0.0.1:7005
|
|
||||||
type: cluster
|
|
||||||
- Host: 127.0.0.1:7006
|
|
||||||
type: cluster
|
|
||||||
|
|
||||||
Bcrypt:
|
|
||||||
Cost: 10
|
|
||||||
|
|
||||||
RedisCluster:
|
|
||||||
Host: 127.0.0.1:7001
|
|
||||||
Type: cluster
|
|
||||||
|
|
||||||
Mongo:
|
|
||||||
Schema: mongodb
|
|
||||||
Host: 127.0.0.1
|
|
||||||
User: ""
|
|
||||||
Password: ""
|
|
||||||
Port: "27017"
|
|
||||||
Database: digimon_member
|
|
||||||
Collection: count
|
|
File diff suppressed because it is too large
Load Diff
|
@ -1,553 +0,0 @@
|
||||||
// Code generated by protoc-gen-go-grpc. DO NOT EDIT.
|
|
||||||
// versions:
|
|
||||||
// - protoc-gen-go-grpc v1.4.0
|
|
||||||
// - protoc v3.19.4
|
|
||||||
// source: generate/protobuf/service.proto
|
|
||||||
|
|
||||||
package member
|
|
||||||
|
|
||||||
import (
|
|
||||||
context "context"
|
|
||||||
|
|
||||||
grpc "google.golang.org/grpc"
|
|
||||||
codes "google.golang.org/grpc/codes"
|
|
||||||
status "google.golang.org/grpc/status"
|
|
||||||
)
|
|
||||||
|
|
||||||
// This is a compile-time assertion to ensure that this generated file
|
|
||||||
// is compatible with the grpc package it is being compiled against.
|
|
||||||
// Requires gRPC-Go v1.62.0 or later.
|
|
||||||
const _ = grpc.SupportPackageIsVersion8
|
|
||||||
|
|
||||||
const (
|
|
||||||
Account_CreateUserAccount_FullMethodName = "/member.Account/CreateUserAccount"
|
|
||||||
Account_GetUserAccountInfo_FullMethodName = "/member.Account/GetUserAccountInfo"
|
|
||||||
Account_UpdateUserToken_FullMethodName = "/member.Account/UpdateUserToken"
|
|
||||||
Account_GetUidByAccount_FullMethodName = "/member.Account/GetUidByAccount"
|
|
||||||
Account_BindAccount_FullMethodName = "/member.Account/BindAccount"
|
|
||||||
Account_BindUserInfo_FullMethodName = "/member.Account/BindUserInfo"
|
|
||||||
Account_UpdateUserInfo_FullMethodName = "/member.Account/UpdateUserInfo"
|
|
||||||
Account_UpdateStatus_FullMethodName = "/member.Account/UpdateStatus"
|
|
||||||
Account_GetUserInfo_FullMethodName = "/member.Account/GetUserInfo"
|
|
||||||
Account_ListMember_FullMethodName = "/member.Account/ListMember"
|
|
||||||
Account_GenerateRefreshCode_FullMethodName = "/member.Account/GenerateRefreshCode"
|
|
||||||
Account_VerifyRefreshCode_FullMethodName = "/member.Account/VerifyRefreshCode"
|
|
||||||
)
|
|
||||||
|
|
||||||
// AccountClient is the client API for Account service.
|
|
||||||
//
|
|
||||||
// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream.
|
|
||||||
type AccountClient interface {
|
|
||||||
// CreateUserAccount 建立帳號與密碼 -> 可登入,但可不可以做其他事情看業務流程,也可以只註冊就好
|
|
||||||
CreateUserAccount(ctx context.Context, in *CreateLoginUserReq, opts ...grpc.CallOption) (*OKResp, error)
|
|
||||||
// GetUserAccountInfo 取得帳號密碼資料
|
|
||||||
GetUserAccountInfo(ctx context.Context, in *GetUIDByAccountReq, opts ...grpc.CallOption) (*GetAccountInfoResp, error)
|
|
||||||
// UpdateUserToken 更新密碼
|
|
||||||
UpdateUserToken(ctx context.Context, in *UpdateTokenReq, opts ...grpc.CallOption) (*OKResp, error)
|
|
||||||
// GetUidByAccount 用帳號換取 UID
|
|
||||||
GetUidByAccount(ctx context.Context, in *GetUIDByAccountReq, opts ...grpc.CallOption) (*GetUidByAccountResp, error)
|
|
||||||
// BindAccount 綁定帳號 -> account bind to UID
|
|
||||||
BindAccount(ctx context.Context, in *BindingUserReq, opts ...grpc.CallOption) (*BindingUserResp, error)
|
|
||||||
// BindUserInfo 初次,綁定 User Info
|
|
||||||
BindUserInfo(ctx context.Context, in *CreateUserInfoReq, opts ...grpc.CallOption) (*OKResp, error)
|
|
||||||
// UpdateUserInfo 更新 User Info
|
|
||||||
UpdateUserInfo(ctx context.Context, in *UpdateUserInfoReq, opts ...grpc.CallOption) (*OKResp, error)
|
|
||||||
// UpdateStatus 修改狀態
|
|
||||||
UpdateStatus(ctx context.Context, in *UpdateStatusReq, opts ...grpc.CallOption) (*OKResp, error)
|
|
||||||
// GetUserInfo 取得會員資訊
|
|
||||||
GetUserInfo(ctx context.Context, in *GetUserInfoReq, opts ...grpc.CallOption) (*GetUserInfoResp, error)
|
|
||||||
// ListMember 取得會員列表
|
|
||||||
ListMember(ctx context.Context, in *ListUserInfoReq, opts ...grpc.CallOption) (*ListUserInfoResp, error)
|
|
||||||
// GenerateRefreshCode 這個帳號驗證碼(十分鐘),通用的
|
|
||||||
GenerateRefreshCode(ctx context.Context, in *GenerateRefreshCodeReq, opts ...grpc.CallOption) (*GenerateRefreshCodeResp, error)
|
|
||||||
// VerifyRefreshCode 驗證忘記密碼 token
|
|
||||||
VerifyRefreshCode(ctx context.Context, in *VerifyRefreshCodeReq, opts ...grpc.CallOption) (*OKResp, error)
|
|
||||||
}
|
|
||||||
|
|
||||||
type accountClient struct {
|
|
||||||
cc grpc.ClientConnInterface
|
|
||||||
}
|
|
||||||
|
|
||||||
func NewAccountClient(cc grpc.ClientConnInterface) AccountClient {
|
|
||||||
return &accountClient{cc}
|
|
||||||
}
|
|
||||||
|
|
||||||
func (c *accountClient) CreateUserAccount(ctx context.Context, in *CreateLoginUserReq, opts ...grpc.CallOption) (*OKResp, error) {
|
|
||||||
cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...)
|
|
||||||
out := new(OKResp)
|
|
||||||
err := c.cc.Invoke(ctx, Account_CreateUserAccount_FullMethodName, in, out, cOpts...)
|
|
||||||
if err != nil {
|
|
||||||
return nil, err
|
|
||||||
}
|
|
||||||
return out, nil
|
|
||||||
}
|
|
||||||
|
|
||||||
func (c *accountClient) GetUserAccountInfo(ctx context.Context, in *GetUIDByAccountReq, opts ...grpc.CallOption) (*GetAccountInfoResp, error) {
|
|
||||||
cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...)
|
|
||||||
out := new(GetAccountInfoResp)
|
|
||||||
err := c.cc.Invoke(ctx, Account_GetUserAccountInfo_FullMethodName, in, out, cOpts...)
|
|
||||||
if err != nil {
|
|
||||||
return nil, err
|
|
||||||
}
|
|
||||||
return out, nil
|
|
||||||
}
|
|
||||||
|
|
||||||
func (c *accountClient) UpdateUserToken(ctx context.Context, in *UpdateTokenReq, opts ...grpc.CallOption) (*OKResp, error) {
|
|
||||||
cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...)
|
|
||||||
out := new(OKResp)
|
|
||||||
err := c.cc.Invoke(ctx, Account_UpdateUserToken_FullMethodName, in, out, cOpts...)
|
|
||||||
if err != nil {
|
|
||||||
return nil, err
|
|
||||||
}
|
|
||||||
return out, nil
|
|
||||||
}
|
|
||||||
|
|
||||||
func (c *accountClient) GetUidByAccount(ctx context.Context, in *GetUIDByAccountReq, opts ...grpc.CallOption) (*GetUidByAccountResp, error) {
|
|
||||||
cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...)
|
|
||||||
out := new(GetUidByAccountResp)
|
|
||||||
err := c.cc.Invoke(ctx, Account_GetUidByAccount_FullMethodName, in, out, cOpts...)
|
|
||||||
if err != nil {
|
|
||||||
return nil, err
|
|
||||||
}
|
|
||||||
return out, nil
|
|
||||||
}
|
|
||||||
|
|
||||||
func (c *accountClient) BindAccount(ctx context.Context, in *BindingUserReq, opts ...grpc.CallOption) (*BindingUserResp, error) {
|
|
||||||
cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...)
|
|
||||||
out := new(BindingUserResp)
|
|
||||||
err := c.cc.Invoke(ctx, Account_BindAccount_FullMethodName, in, out, cOpts...)
|
|
||||||
if err != nil {
|
|
||||||
return nil, err
|
|
||||||
}
|
|
||||||
return out, nil
|
|
||||||
}
|
|
||||||
|
|
||||||
func (c *accountClient) BindUserInfo(ctx context.Context, in *CreateUserInfoReq, opts ...grpc.CallOption) (*OKResp, error) {
|
|
||||||
cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...)
|
|
||||||
out := new(OKResp)
|
|
||||||
err := c.cc.Invoke(ctx, Account_BindUserInfo_FullMethodName, in, out, cOpts...)
|
|
||||||
if err != nil {
|
|
||||||
return nil, err
|
|
||||||
}
|
|
||||||
return out, nil
|
|
||||||
}
|
|
||||||
|
|
||||||
func (c *accountClient) UpdateUserInfo(ctx context.Context, in *UpdateUserInfoReq, opts ...grpc.CallOption) (*OKResp, error) {
|
|
||||||
cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...)
|
|
||||||
out := new(OKResp)
|
|
||||||
err := c.cc.Invoke(ctx, Account_UpdateUserInfo_FullMethodName, in, out, cOpts...)
|
|
||||||
if err != nil {
|
|
||||||
return nil, err
|
|
||||||
}
|
|
||||||
return out, nil
|
|
||||||
}
|
|
||||||
|
|
||||||
func (c *accountClient) UpdateStatus(ctx context.Context, in *UpdateStatusReq, opts ...grpc.CallOption) (*OKResp, error) {
|
|
||||||
cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...)
|
|
||||||
out := new(OKResp)
|
|
||||||
err := c.cc.Invoke(ctx, Account_UpdateStatus_FullMethodName, in, out, cOpts...)
|
|
||||||
if err != nil {
|
|
||||||
return nil, err
|
|
||||||
}
|
|
||||||
return out, nil
|
|
||||||
}
|
|
||||||
|
|
||||||
func (c *accountClient) GetUserInfo(ctx context.Context, in *GetUserInfoReq, opts ...grpc.CallOption) (*GetUserInfoResp, error) {
|
|
||||||
cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...)
|
|
||||||
out := new(GetUserInfoResp)
|
|
||||||
err := c.cc.Invoke(ctx, Account_GetUserInfo_FullMethodName, in, out, cOpts...)
|
|
||||||
if err != nil {
|
|
||||||
return nil, err
|
|
||||||
}
|
|
||||||
return out, nil
|
|
||||||
}
|
|
||||||
|
|
||||||
func (c *accountClient) ListMember(ctx context.Context, in *ListUserInfoReq, opts ...grpc.CallOption) (*ListUserInfoResp, error) {
|
|
||||||
cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...)
|
|
||||||
out := new(ListUserInfoResp)
|
|
||||||
err := c.cc.Invoke(ctx, Account_ListMember_FullMethodName, in, out, cOpts...)
|
|
||||||
if err != nil {
|
|
||||||
return nil, err
|
|
||||||
}
|
|
||||||
return out, nil
|
|
||||||
}
|
|
||||||
|
|
||||||
func (c *accountClient) GenerateRefreshCode(ctx context.Context, in *GenerateRefreshCodeReq, opts ...grpc.CallOption) (*GenerateRefreshCodeResp, error) {
|
|
||||||
cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...)
|
|
||||||
out := new(GenerateRefreshCodeResp)
|
|
||||||
err := c.cc.Invoke(ctx, Account_GenerateRefreshCode_FullMethodName, in, out, cOpts...)
|
|
||||||
if err != nil {
|
|
||||||
return nil, err
|
|
||||||
}
|
|
||||||
return out, nil
|
|
||||||
}
|
|
||||||
|
|
||||||
func (c *accountClient) VerifyRefreshCode(ctx context.Context, in *VerifyRefreshCodeReq, opts ...grpc.CallOption) (*OKResp, error) {
|
|
||||||
cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...)
|
|
||||||
out := new(OKResp)
|
|
||||||
err := c.cc.Invoke(ctx, Account_VerifyRefreshCode_FullMethodName, in, out, cOpts...)
|
|
||||||
if err != nil {
|
|
||||||
return nil, err
|
|
||||||
}
|
|
||||||
return out, nil
|
|
||||||
}
|
|
||||||
|
|
||||||
// AccountServer is the server API for Account service.
|
|
||||||
// All implementations must embed UnimplementedAccountServer
|
|
||||||
// for forward compatibility
|
|
||||||
type AccountServer interface {
|
|
||||||
// CreateUserAccount 建立帳號與密碼 -> 可登入,但可不可以做其他事情看業務流程,也可以只註冊就好
|
|
||||||
CreateUserAccount(context.Context, *CreateLoginUserReq) (*OKResp, error)
|
|
||||||
// GetUserAccountInfo 取得帳號密碼資料
|
|
||||||
GetUserAccountInfo(context.Context, *GetUIDByAccountReq) (*GetAccountInfoResp, error)
|
|
||||||
// UpdateUserToken 更新密碼
|
|
||||||
UpdateUserToken(context.Context, *UpdateTokenReq) (*OKResp, error)
|
|
||||||
// GetUidByAccount 用帳號換取 UID
|
|
||||||
GetUidByAccount(context.Context, *GetUIDByAccountReq) (*GetUidByAccountResp, error)
|
|
||||||
// BindAccount 綁定帳號 -> account bind to UID
|
|
||||||
BindAccount(context.Context, *BindingUserReq) (*BindingUserResp, error)
|
|
||||||
// BindUserInfo 初次,綁定 User Info
|
|
||||||
BindUserInfo(context.Context, *CreateUserInfoReq) (*OKResp, error)
|
|
||||||
// UpdateUserInfo 更新 User Info
|
|
||||||
UpdateUserInfo(context.Context, *UpdateUserInfoReq) (*OKResp, error)
|
|
||||||
// UpdateStatus 修改狀態
|
|
||||||
UpdateStatus(context.Context, *UpdateStatusReq) (*OKResp, error)
|
|
||||||
// GetUserInfo 取得會員資訊
|
|
||||||
GetUserInfo(context.Context, *GetUserInfoReq) (*GetUserInfoResp, error)
|
|
||||||
// ListMember 取得會員列表
|
|
||||||
ListMember(context.Context, *ListUserInfoReq) (*ListUserInfoResp, error)
|
|
||||||
// GenerateRefreshCode 這個帳號驗證碼(十分鐘),通用的
|
|
||||||
GenerateRefreshCode(context.Context, *GenerateRefreshCodeReq) (*GenerateRefreshCodeResp, error)
|
|
||||||
// VerifyRefreshCode 驗證忘記密碼 token
|
|
||||||
VerifyRefreshCode(context.Context, *VerifyRefreshCodeReq) (*OKResp, error)
|
|
||||||
mustEmbedUnimplementedAccountServer()
|
|
||||||
}
|
|
||||||
|
|
||||||
// UnimplementedAccountServer must be embedded to have forward compatible implementations.
|
|
||||||
type UnimplementedAccountServer struct {
|
|
||||||
}
|
|
||||||
|
|
||||||
func (UnimplementedAccountServer) CreateUserAccount(context.Context, *CreateLoginUserReq) (*OKResp, error) {
|
|
||||||
return nil, status.Errorf(codes.Unimplemented, "method CreateUserAccount not implemented")
|
|
||||||
}
|
|
||||||
func (UnimplementedAccountServer) GetUserAccountInfo(context.Context, *GetUIDByAccountReq) (*GetAccountInfoResp, error) {
|
|
||||||
return nil, status.Errorf(codes.Unimplemented, "method GetUserAccountInfo not implemented")
|
|
||||||
}
|
|
||||||
func (UnimplementedAccountServer) UpdateUserToken(context.Context, *UpdateTokenReq) (*OKResp, error) {
|
|
||||||
return nil, status.Errorf(codes.Unimplemented, "method UpdateUserToken not implemented")
|
|
||||||
}
|
|
||||||
func (UnimplementedAccountServer) GetUidByAccount(context.Context, *GetUIDByAccountReq) (*GetUidByAccountResp, error) {
|
|
||||||
return nil, status.Errorf(codes.Unimplemented, "method GetUidByAccount not implemented")
|
|
||||||
}
|
|
||||||
func (UnimplementedAccountServer) BindAccount(context.Context, *BindingUserReq) (*BindingUserResp, error) {
|
|
||||||
return nil, status.Errorf(codes.Unimplemented, "method BindAccount not implemented")
|
|
||||||
}
|
|
||||||
func (UnimplementedAccountServer) BindUserInfo(context.Context, *CreateUserInfoReq) (*OKResp, error) {
|
|
||||||
return nil, status.Errorf(codes.Unimplemented, "method BindUserInfo not implemented")
|
|
||||||
}
|
|
||||||
func (UnimplementedAccountServer) UpdateUserInfo(context.Context, *UpdateUserInfoReq) (*OKResp, error) {
|
|
||||||
return nil, status.Errorf(codes.Unimplemented, "method UpdateUserInfo not implemented")
|
|
||||||
}
|
|
||||||
func (UnimplementedAccountServer) UpdateStatus(context.Context, *UpdateStatusReq) (*OKResp, error) {
|
|
||||||
return nil, status.Errorf(codes.Unimplemented, "method UpdateStatus not implemented")
|
|
||||||
}
|
|
||||||
func (UnimplementedAccountServer) GetUserInfo(context.Context, *GetUserInfoReq) (*GetUserInfoResp, error) {
|
|
||||||
return nil, status.Errorf(codes.Unimplemented, "method GetUserInfo not implemented")
|
|
||||||
}
|
|
||||||
func (UnimplementedAccountServer) ListMember(context.Context, *ListUserInfoReq) (*ListUserInfoResp, error) {
|
|
||||||
return nil, status.Errorf(codes.Unimplemented, "method ListMember not implemented")
|
|
||||||
}
|
|
||||||
func (UnimplementedAccountServer) GenerateRefreshCode(context.Context, *GenerateRefreshCodeReq) (*GenerateRefreshCodeResp, error) {
|
|
||||||
return nil, status.Errorf(codes.Unimplemented, "method GenerateRefreshCode not implemented")
|
|
||||||
}
|
|
||||||
func (UnimplementedAccountServer) VerifyRefreshCode(context.Context, *VerifyRefreshCodeReq) (*OKResp, error) {
|
|
||||||
return nil, status.Errorf(codes.Unimplemented, "method VerifyRefreshCode not implemented")
|
|
||||||
}
|
|
||||||
func (UnimplementedAccountServer) mustEmbedUnimplementedAccountServer() {}
|
|
||||||
|
|
||||||
// UnsafeAccountServer may be embedded to opt out of forward compatibility for this service.
|
|
||||||
// Use of this interface is not recommended, as added methods to AccountServer will
|
|
||||||
// result in compilation errors.
|
|
||||||
type UnsafeAccountServer interface {
|
|
||||||
mustEmbedUnimplementedAccountServer()
|
|
||||||
}
|
|
||||||
|
|
||||||
func RegisterAccountServer(s grpc.ServiceRegistrar, srv AccountServer) {
|
|
||||||
s.RegisterService(&Account_ServiceDesc, srv)
|
|
||||||
}
|
|
||||||
|
|
||||||
func _Account_CreateUserAccount_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
|
||||||
in := new(CreateLoginUserReq)
|
|
||||||
if err := dec(in); err != nil {
|
|
||||||
return nil, err
|
|
||||||
}
|
|
||||||
if interceptor == nil {
|
|
||||||
return srv.(AccountServer).CreateUserAccount(ctx, in)
|
|
||||||
}
|
|
||||||
info := &grpc.UnaryServerInfo{
|
|
||||||
Server: srv,
|
|
||||||
FullMethod: Account_CreateUserAccount_FullMethodName,
|
|
||||||
}
|
|
||||||
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
|
||||||
return srv.(AccountServer).CreateUserAccount(ctx, req.(*CreateLoginUserReq))
|
|
||||||
}
|
|
||||||
return interceptor(ctx, in, info, handler)
|
|
||||||
}
|
|
||||||
|
|
||||||
func _Account_GetUserAccountInfo_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
|
||||||
in := new(GetUIDByAccountReq)
|
|
||||||
if err := dec(in); err != nil {
|
|
||||||
return nil, err
|
|
||||||
}
|
|
||||||
if interceptor == nil {
|
|
||||||
return srv.(AccountServer).GetUserAccountInfo(ctx, in)
|
|
||||||
}
|
|
||||||
info := &grpc.UnaryServerInfo{
|
|
||||||
Server: srv,
|
|
||||||
FullMethod: Account_GetUserAccountInfo_FullMethodName,
|
|
||||||
}
|
|
||||||
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
|
||||||
return srv.(AccountServer).GetUserAccountInfo(ctx, req.(*GetUIDByAccountReq))
|
|
||||||
}
|
|
||||||
return interceptor(ctx, in, info, handler)
|
|
||||||
}
|
|
||||||
|
|
||||||
func _Account_UpdateUserToken_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
|
||||||
in := new(UpdateTokenReq)
|
|
||||||
if err := dec(in); err != nil {
|
|
||||||
return nil, err
|
|
||||||
}
|
|
||||||
if interceptor == nil {
|
|
||||||
return srv.(AccountServer).UpdateUserToken(ctx, in)
|
|
||||||
}
|
|
||||||
info := &grpc.UnaryServerInfo{
|
|
||||||
Server: srv,
|
|
||||||
FullMethod: Account_UpdateUserToken_FullMethodName,
|
|
||||||
}
|
|
||||||
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
|
||||||
return srv.(AccountServer).UpdateUserToken(ctx, req.(*UpdateTokenReq))
|
|
||||||
}
|
|
||||||
return interceptor(ctx, in, info, handler)
|
|
||||||
}
|
|
||||||
|
|
||||||
func _Account_GetUidByAccount_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
|
||||||
in := new(GetUIDByAccountReq)
|
|
||||||
if err := dec(in); err != nil {
|
|
||||||
return nil, err
|
|
||||||
}
|
|
||||||
if interceptor == nil {
|
|
||||||
return srv.(AccountServer).GetUidByAccount(ctx, in)
|
|
||||||
}
|
|
||||||
info := &grpc.UnaryServerInfo{
|
|
||||||
Server: srv,
|
|
||||||
FullMethod: Account_GetUidByAccount_FullMethodName,
|
|
||||||
}
|
|
||||||
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
|
||||||
return srv.(AccountServer).GetUidByAccount(ctx, req.(*GetUIDByAccountReq))
|
|
||||||
}
|
|
||||||
return interceptor(ctx, in, info, handler)
|
|
||||||
}
|
|
||||||
|
|
||||||
func _Account_BindAccount_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
|
||||||
in := new(BindingUserReq)
|
|
||||||
if err := dec(in); err != nil {
|
|
||||||
return nil, err
|
|
||||||
}
|
|
||||||
if interceptor == nil {
|
|
||||||
return srv.(AccountServer).BindAccount(ctx, in)
|
|
||||||
}
|
|
||||||
info := &grpc.UnaryServerInfo{
|
|
||||||
Server: srv,
|
|
||||||
FullMethod: Account_BindAccount_FullMethodName,
|
|
||||||
}
|
|
||||||
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
|
||||||
return srv.(AccountServer).BindAccount(ctx, req.(*BindingUserReq))
|
|
||||||
}
|
|
||||||
return interceptor(ctx, in, info, handler)
|
|
||||||
}
|
|
||||||
|
|
||||||
func _Account_BindUserInfo_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
|
||||||
in := new(CreateUserInfoReq)
|
|
||||||
if err := dec(in); err != nil {
|
|
||||||
return nil, err
|
|
||||||
}
|
|
||||||
if interceptor == nil {
|
|
||||||
return srv.(AccountServer).BindUserInfo(ctx, in)
|
|
||||||
}
|
|
||||||
info := &grpc.UnaryServerInfo{
|
|
||||||
Server: srv,
|
|
||||||
FullMethod: Account_BindUserInfo_FullMethodName,
|
|
||||||
}
|
|
||||||
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
|
||||||
return srv.(AccountServer).BindUserInfo(ctx, req.(*CreateUserInfoReq))
|
|
||||||
}
|
|
||||||
return interceptor(ctx, in, info, handler)
|
|
||||||
}
|
|
||||||
|
|
||||||
func _Account_UpdateUserInfo_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
|
||||||
in := new(UpdateUserInfoReq)
|
|
||||||
if err := dec(in); err != nil {
|
|
||||||
return nil, err
|
|
||||||
}
|
|
||||||
if interceptor == nil {
|
|
||||||
return srv.(AccountServer).UpdateUserInfo(ctx, in)
|
|
||||||
}
|
|
||||||
info := &grpc.UnaryServerInfo{
|
|
||||||
Server: srv,
|
|
||||||
FullMethod: Account_UpdateUserInfo_FullMethodName,
|
|
||||||
}
|
|
||||||
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
|
||||||
return srv.(AccountServer).UpdateUserInfo(ctx, req.(*UpdateUserInfoReq))
|
|
||||||
}
|
|
||||||
return interceptor(ctx, in, info, handler)
|
|
||||||
}
|
|
||||||
|
|
||||||
func _Account_UpdateStatus_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
|
||||||
in := new(UpdateStatusReq)
|
|
||||||
if err := dec(in); err != nil {
|
|
||||||
return nil, err
|
|
||||||
}
|
|
||||||
if interceptor == nil {
|
|
||||||
return srv.(AccountServer).UpdateStatus(ctx, in)
|
|
||||||
}
|
|
||||||
info := &grpc.UnaryServerInfo{
|
|
||||||
Server: srv,
|
|
||||||
FullMethod: Account_UpdateStatus_FullMethodName,
|
|
||||||
}
|
|
||||||
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
|
||||||
return srv.(AccountServer).UpdateStatus(ctx, req.(*UpdateStatusReq))
|
|
||||||
}
|
|
||||||
return interceptor(ctx, in, info, handler)
|
|
||||||
}
|
|
||||||
|
|
||||||
func _Account_GetUserInfo_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
|
||||||
in := new(GetUserInfoReq)
|
|
||||||
if err := dec(in); err != nil {
|
|
||||||
return nil, err
|
|
||||||
}
|
|
||||||
if interceptor == nil {
|
|
||||||
return srv.(AccountServer).GetUserInfo(ctx, in)
|
|
||||||
}
|
|
||||||
info := &grpc.UnaryServerInfo{
|
|
||||||
Server: srv,
|
|
||||||
FullMethod: Account_GetUserInfo_FullMethodName,
|
|
||||||
}
|
|
||||||
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
|
||||||
return srv.(AccountServer).GetUserInfo(ctx, req.(*GetUserInfoReq))
|
|
||||||
}
|
|
||||||
return interceptor(ctx, in, info, handler)
|
|
||||||
}
|
|
||||||
|
|
||||||
func _Account_ListMember_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
|
||||||
in := new(ListUserInfoReq)
|
|
||||||
if err := dec(in); err != nil {
|
|
||||||
return nil, err
|
|
||||||
}
|
|
||||||
if interceptor == nil {
|
|
||||||
return srv.(AccountServer).ListMember(ctx, in)
|
|
||||||
}
|
|
||||||
info := &grpc.UnaryServerInfo{
|
|
||||||
Server: srv,
|
|
||||||
FullMethod: Account_ListMember_FullMethodName,
|
|
||||||
}
|
|
||||||
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
|
||||||
return srv.(AccountServer).ListMember(ctx, req.(*ListUserInfoReq))
|
|
||||||
}
|
|
||||||
return interceptor(ctx, in, info, handler)
|
|
||||||
}
|
|
||||||
|
|
||||||
func _Account_GenerateRefreshCode_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
|
||||||
in := new(GenerateRefreshCodeReq)
|
|
||||||
if err := dec(in); err != nil {
|
|
||||||
return nil, err
|
|
||||||
}
|
|
||||||
if interceptor == nil {
|
|
||||||
return srv.(AccountServer).GenerateRefreshCode(ctx, in)
|
|
||||||
}
|
|
||||||
info := &grpc.UnaryServerInfo{
|
|
||||||
Server: srv,
|
|
||||||
FullMethod: Account_GenerateRefreshCode_FullMethodName,
|
|
||||||
}
|
|
||||||
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
|
||||||
return srv.(AccountServer).GenerateRefreshCode(ctx, req.(*GenerateRefreshCodeReq))
|
|
||||||
}
|
|
||||||
return interceptor(ctx, in, info, handler)
|
|
||||||
}
|
|
||||||
|
|
||||||
func _Account_VerifyRefreshCode_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
|
||||||
in := new(VerifyRefreshCodeReq)
|
|
||||||
if err := dec(in); err != nil {
|
|
||||||
return nil, err
|
|
||||||
}
|
|
||||||
if interceptor == nil {
|
|
||||||
return srv.(AccountServer).VerifyRefreshCode(ctx, in)
|
|
||||||
}
|
|
||||||
info := &grpc.UnaryServerInfo{
|
|
||||||
Server: srv,
|
|
||||||
FullMethod: Account_VerifyRefreshCode_FullMethodName,
|
|
||||||
}
|
|
||||||
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
|
||||||
return srv.(AccountServer).VerifyRefreshCode(ctx, req.(*VerifyRefreshCodeReq))
|
|
||||||
}
|
|
||||||
return interceptor(ctx, in, info, handler)
|
|
||||||
}
|
|
||||||
|
|
||||||
// Account_ServiceDesc is the grpc.ServiceDesc for Account service.
|
|
||||||
// It's only intended for direct use with grpc.RegisterService,
|
|
||||||
// and not to be introspected or modified (even as a copy)
|
|
||||||
var Account_ServiceDesc = grpc.ServiceDesc{
|
|
||||||
ServiceName: "member.Account",
|
|
||||||
HandlerType: (*AccountServer)(nil),
|
|
||||||
Methods: []grpc.MethodDesc{
|
|
||||||
{
|
|
||||||
MethodName: "CreateUserAccount",
|
|
||||||
Handler: _Account_CreateUserAccount_Handler,
|
|
||||||
},
|
|
||||||
{
|
|
||||||
MethodName: "GetUserAccountInfo",
|
|
||||||
Handler: _Account_GetUserAccountInfo_Handler,
|
|
||||||
},
|
|
||||||
{
|
|
||||||
MethodName: "UpdateUserToken",
|
|
||||||
Handler: _Account_UpdateUserToken_Handler,
|
|
||||||
},
|
|
||||||
{
|
|
||||||
MethodName: "GetUidByAccount",
|
|
||||||
Handler: _Account_GetUidByAccount_Handler,
|
|
||||||
},
|
|
||||||
{
|
|
||||||
MethodName: "BindAccount",
|
|
||||||
Handler: _Account_BindAccount_Handler,
|
|
||||||
},
|
|
||||||
{
|
|
||||||
MethodName: "BindUserInfo",
|
|
||||||
Handler: _Account_BindUserInfo_Handler,
|
|
||||||
},
|
|
||||||
{
|
|
||||||
MethodName: "UpdateUserInfo",
|
|
||||||
Handler: _Account_UpdateUserInfo_Handler,
|
|
||||||
},
|
|
||||||
{
|
|
||||||
MethodName: "UpdateStatus",
|
|
||||||
Handler: _Account_UpdateStatus_Handler,
|
|
||||||
},
|
|
||||||
{
|
|
||||||
MethodName: "GetUserInfo",
|
|
||||||
Handler: _Account_GetUserInfo_Handler,
|
|
||||||
},
|
|
||||||
{
|
|
||||||
MethodName: "ListMember",
|
|
||||||
Handler: _Account_ListMember_Handler,
|
|
||||||
},
|
|
||||||
{
|
|
||||||
MethodName: "GenerateRefreshCode",
|
|
||||||
Handler: _Account_GenerateRefreshCode_Handler,
|
|
||||||
},
|
|
||||||
{
|
|
||||||
MethodName: "VerifyRefreshCode",
|
|
||||||
Handler: _Account_VerifyRefreshCode_Handler,
|
|
||||||
},
|
|
||||||
},
|
|
||||||
Streams: []grpc.StreamDesc{},
|
|
||||||
Metadata: "generate/protobuf/service.proto",
|
|
||||||
}
|
|
Loading…
Reference in New Issue