chore: auto-generate protobuf files [skip ci]
This commit is contained in:
@@ -19,15 +19,16 @@ import (
|
||||
const _ = grpc.SupportPackageIsVersion9
|
||||
|
||||
const (
|
||||
AccountService_GetAccount_FullMethodName = "/account.v1.AccountService/GetAccount"
|
||||
AccountService_ChangePassword_FullMethodName = "/account.v1.AccountService/ChangePassword"
|
||||
AccountService_CreateUser_FullMethodName = "/account.v1.AccountService/CreateUser"
|
||||
AccountService_DeleteUser_FullMethodName = "/account.v1.AccountService/DeleteUser"
|
||||
AccountService_ChangeData_FullMethodName = "/account.v1.AccountService/ChangeData"
|
||||
AccountService_SetPin_FullMethodName = "/account.v1.AccountService/SetPin"
|
||||
AccountService_UnlockPin_FullMethodName = "/account.v1.AccountService/UnlockPin"
|
||||
AccountService_GetPinStatus_FullMethodName = "/account.v1.AccountService/GetPinStatus"
|
||||
AccountService_RemovePin_FullMethodName = "/account.v1.AccountService/RemovePin"
|
||||
AccountService_GetAccount_FullMethodName = "/account.v1.AccountService/GetAccount"
|
||||
AccountService_ChangePassword_FullMethodName = "/account.v1.AccountService/ChangePassword"
|
||||
AccountService_AdminResetPassword_FullMethodName = "/account.v1.AccountService/AdminResetPassword"
|
||||
AccountService_CreateUser_FullMethodName = "/account.v1.AccountService/CreateUser"
|
||||
AccountService_DeleteUser_FullMethodName = "/account.v1.AccountService/DeleteUser"
|
||||
AccountService_ChangeData_FullMethodName = "/account.v1.AccountService/ChangeData"
|
||||
AccountService_SetPin_FullMethodName = "/account.v1.AccountService/SetPin"
|
||||
AccountService_UnlockPin_FullMethodName = "/account.v1.AccountService/UnlockPin"
|
||||
AccountService_GetPinStatus_FullMethodName = "/account.v1.AccountService/GetPinStatus"
|
||||
AccountService_RemovePin_FullMethodName = "/account.v1.AccountService/RemovePin"
|
||||
)
|
||||
|
||||
// AccountServiceClient is the client API for AccountService service.
|
||||
@@ -36,6 +37,7 @@ const (
|
||||
type AccountServiceClient interface {
|
||||
GetAccount(ctx context.Context, in *GetAccountRequest, opts ...grpc.CallOption) (*GetAccountResponse, error)
|
||||
ChangePassword(ctx context.Context, in *ChangePasswordRequest, opts ...grpc.CallOption) (*ChangePasswordResponse, error)
|
||||
AdminResetPassword(ctx context.Context, in *AdminResetPasswordRequest, opts ...grpc.CallOption) (*AdminResetPasswordResponse, error)
|
||||
CreateUser(ctx context.Context, in *CreateUserRequest, opts ...grpc.CallOption) (*CreateUserResponse, error)
|
||||
DeleteUser(ctx context.Context, in *DeleteUserRequest, opts ...grpc.CallOption) (*DeleteUserResponse, error)
|
||||
ChangeData(ctx context.Context, in *ChangeDataRequest, opts ...grpc.CallOption) (*ChangeDataResponse, error)
|
||||
@@ -73,6 +75,16 @@ func (c *accountServiceClient) ChangePassword(ctx context.Context, in *ChangePas
|
||||
return out, nil
|
||||
}
|
||||
|
||||
func (c *accountServiceClient) AdminResetPassword(ctx context.Context, in *AdminResetPasswordRequest, opts ...grpc.CallOption) (*AdminResetPasswordResponse, error) {
|
||||
cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...)
|
||||
out := new(AdminResetPasswordResponse)
|
||||
err := c.cc.Invoke(ctx, AccountService_AdminResetPassword_FullMethodName, in, out, cOpts...)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
return out, nil
|
||||
}
|
||||
|
||||
func (c *accountServiceClient) CreateUser(ctx context.Context, in *CreateUserRequest, opts ...grpc.CallOption) (*CreateUserResponse, error) {
|
||||
cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...)
|
||||
out := new(CreateUserResponse)
|
||||
@@ -149,6 +161,7 @@ func (c *accountServiceClient) RemovePin(ctx context.Context, in *RemovePinReque
|
||||
type AccountServiceServer interface {
|
||||
GetAccount(context.Context, *GetAccountRequest) (*GetAccountResponse, error)
|
||||
ChangePassword(context.Context, *ChangePasswordRequest) (*ChangePasswordResponse, error)
|
||||
AdminResetPassword(context.Context, *AdminResetPasswordRequest) (*AdminResetPasswordResponse, error)
|
||||
CreateUser(context.Context, *CreateUserRequest) (*CreateUserResponse, error)
|
||||
DeleteUser(context.Context, *DeleteUserRequest) (*DeleteUserResponse, error)
|
||||
ChangeData(context.Context, *ChangeDataRequest) (*ChangeDataResponse, error)
|
||||
@@ -172,6 +185,9 @@ func (UnimplementedAccountServiceServer) GetAccount(context.Context, *GetAccount
|
||||
func (UnimplementedAccountServiceServer) ChangePassword(context.Context, *ChangePasswordRequest) (*ChangePasswordResponse, error) {
|
||||
return nil, status.Error(codes.Unimplemented, "method ChangePassword not implemented")
|
||||
}
|
||||
func (UnimplementedAccountServiceServer) AdminResetPassword(context.Context, *AdminResetPasswordRequest) (*AdminResetPasswordResponse, error) {
|
||||
return nil, status.Error(codes.Unimplemented, "method AdminResetPassword not implemented")
|
||||
}
|
||||
func (UnimplementedAccountServiceServer) CreateUser(context.Context, *CreateUserRequest) (*CreateUserResponse, error) {
|
||||
return nil, status.Error(codes.Unimplemented, "method CreateUser not implemented")
|
||||
}
|
||||
@@ -250,6 +266,24 @@ func _AccountService_ChangePassword_Handler(srv interface{}, ctx context.Context
|
||||
return interceptor(ctx, in, info, handler)
|
||||
}
|
||||
|
||||
func _AccountService_AdminResetPassword_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
||||
in := new(AdminResetPasswordRequest)
|
||||
if err := dec(in); err != nil {
|
||||
return nil, err
|
||||
}
|
||||
if interceptor == nil {
|
||||
return srv.(AccountServiceServer).AdminResetPassword(ctx, in)
|
||||
}
|
||||
info := &grpc.UnaryServerInfo{
|
||||
Server: srv,
|
||||
FullMethod: AccountService_AdminResetPassword_FullMethodName,
|
||||
}
|
||||
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
||||
return srv.(AccountServiceServer).AdminResetPassword(ctx, req.(*AdminResetPasswordRequest))
|
||||
}
|
||||
return interceptor(ctx, in, info, handler)
|
||||
}
|
||||
|
||||
func _AccountService_CreateUser_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
||||
in := new(CreateUserRequest)
|
||||
if err := dec(in); err != nil {
|
||||
@@ -391,6 +425,10 @@ var AccountService_ServiceDesc = grpc.ServiceDesc{
|
||||
MethodName: "ChangePassword",
|
||||
Handler: _AccountService_ChangePassword_Handler,
|
||||
},
|
||||
{
|
||||
MethodName: "AdminResetPassword",
|
||||
Handler: _AccountService_AdminResetPassword_Handler,
|
||||
},
|
||||
{
|
||||
MethodName: "CreateUser",
|
||||
Handler: _AccountService_CreateUser_Handler,
|
||||
|
||||
Reference in New Issue
Block a user