593 lines
24 KiB
Go
593 lines
24 KiB
Go
// 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/member.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"
|
|
Account_VerifyGoogleAuthResult_FullMethodName = "/member.Account/VerifyGoogleAuthResult"
|
|
)
|
|
|
|
// 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)
|
|
// VerifyGoogleAuthResult 驗證 google 登入是否有效
|
|
VerifyGoogleAuthResult(ctx context.Context, in *VerifyAuthResultReq, opts ...grpc.CallOption) (*VerifyAuthResultResp, 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
|
|
}
|
|
|
|
func (c *accountClient) VerifyGoogleAuthResult(ctx context.Context, in *VerifyAuthResultReq, opts ...grpc.CallOption) (*VerifyAuthResultResp, error) {
|
|
cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...)
|
|
out := new(VerifyAuthResultResp)
|
|
err := c.cc.Invoke(ctx, Account_VerifyGoogleAuthResult_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)
|
|
// VerifyGoogleAuthResult 驗證 google 登入是否有效
|
|
VerifyGoogleAuthResult(context.Context, *VerifyAuthResultReq) (*VerifyAuthResultResp, 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) VerifyGoogleAuthResult(context.Context, *VerifyAuthResultReq) (*VerifyAuthResultResp, error) {
|
|
return nil, status.Errorf(codes.Unimplemented, "method VerifyGoogleAuthResult 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)
|
|
}
|
|
|
|
func _Account_VerifyGoogleAuthResult_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
|
in := new(VerifyAuthResultReq)
|
|
if err := dec(in); err != nil {
|
|
return nil, err
|
|
}
|
|
if interceptor == nil {
|
|
return srv.(AccountServer).VerifyGoogleAuthResult(ctx, in)
|
|
}
|
|
info := &grpc.UnaryServerInfo{
|
|
Server: srv,
|
|
FullMethod: Account_VerifyGoogleAuthResult_FullMethodName,
|
|
}
|
|
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
|
return srv.(AccountServer).VerifyGoogleAuthResult(ctx, req.(*VerifyAuthResultReq))
|
|
}
|
|
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,
|
|
},
|
|
{
|
|
MethodName: "VerifyGoogleAuthResult",
|
|
Handler: _Account_VerifyGoogleAuthResult_Handler,
|
|
},
|
|
},
|
|
Streams: []grpc.StreamDesc{},
|
|
Metadata: "generate/protobuf/member.proto",
|
|
}
|