Documentation
¶
Index ¶
- Constants
- Variables
- func RegisterWithdrawalServiceHTTPServer(s *http.Server, srv WithdrawalServiceHTTPServer)
- func RegisterWithdrawalServiceServer(s grpc.ServiceRegistrar, srv WithdrawalServiceServer)
- type ApproveWithdrawalReply
- func (*ApproveWithdrawalReply) Descriptor() ([]byte, []int)deprecated
- func (x *ApproveWithdrawalReply) GetCode() int32
- func (x *ApproveWithdrawalReply) GetData() *OperationData
- func (x *ApproveWithdrawalReply) GetMessage() string
- func (*ApproveWithdrawalReply) ProtoMessage()
- func (x *ApproveWithdrawalReply) ProtoReflect() protoreflect.Message
- func (x *ApproveWithdrawalReply) Reset()
- func (x *ApproveWithdrawalReply) String() string
- func (m *ApproveWithdrawalReply) Validate() error
- func (m *ApproveWithdrawalReply) ValidateAll() error
- type ApproveWithdrawalReplyMultiError
- type ApproveWithdrawalReplyValidationError
- func (e ApproveWithdrawalReplyValidationError) Cause() error
- func (e ApproveWithdrawalReplyValidationError) Error() string
- func (e ApproveWithdrawalReplyValidationError) ErrorName() string
- func (e ApproveWithdrawalReplyValidationError) Field() string
- func (e ApproveWithdrawalReplyValidationError) Key() bool
- func (e ApproveWithdrawalReplyValidationError) Reason() string
- type ApproveWithdrawalRequest
- func (*ApproveWithdrawalRequest) Descriptor() ([]byte, []int)deprecated
- func (x *ApproveWithdrawalRequest) GetId() int64
- func (*ApproveWithdrawalRequest) ProtoMessage()
- func (x *ApproveWithdrawalRequest) ProtoReflect() protoreflect.Message
- func (x *ApproveWithdrawalRequest) Reset()
- func (x *ApproveWithdrawalRequest) String() string
- func (m *ApproveWithdrawalRequest) Validate() error
- func (m *ApproveWithdrawalRequest) ValidateAll() error
- type ApproveWithdrawalRequestMultiError
- type ApproveWithdrawalRequestValidationError
- func (e ApproveWithdrawalRequestValidationError) Cause() error
- func (e ApproveWithdrawalRequestValidationError) Error() string
- func (e ApproveWithdrawalRequestValidationError) ErrorName() string
- func (e ApproveWithdrawalRequestValidationError) Field() string
- func (e ApproveWithdrawalRequestValidationError) Key() bool
- func (e ApproveWithdrawalRequestValidationError) Reason() string
- type GetWithdrawalListReply
- func (*GetWithdrawalListReply) Descriptor() ([]byte, []int)deprecated
- func (x *GetWithdrawalListReply) GetCode() int32
- func (x *GetWithdrawalListReply) GetData() *WithdrawalListData
- func (x *GetWithdrawalListReply) GetMessage() string
- func (*GetWithdrawalListReply) ProtoMessage()
- func (x *GetWithdrawalListReply) ProtoReflect() protoreflect.Message
- func (x *GetWithdrawalListReply) Reset()
- func (x *GetWithdrawalListReply) String() string
- func (m *GetWithdrawalListReply) Validate() error
- func (m *GetWithdrawalListReply) ValidateAll() error
- type GetWithdrawalListReplyMultiError
- type GetWithdrawalListReplyValidationError
- func (e GetWithdrawalListReplyValidationError) Cause() error
- func (e GetWithdrawalListReplyValidationError) Error() string
- func (e GetWithdrawalListReplyValidationError) ErrorName() string
- func (e GetWithdrawalListReplyValidationError) Field() string
- func (e GetWithdrawalListReplyValidationError) Key() bool
- func (e GetWithdrawalListReplyValidationError) Reason() string
- type GetWithdrawalListRequest
- func (*GetWithdrawalListRequest) Descriptor() ([]byte, []int)deprecated
- func (x *GetWithdrawalListRequest) GetMethod() string
- func (x *GetWithdrawalListRequest) GetPage() int64
- func (x *GetWithdrawalListRequest) GetSize() int64
- func (x *GetWithdrawalListRequest) GetStatus() int32
- func (x *GetWithdrawalListRequest) GetUserId() int64
- func (*GetWithdrawalListRequest) ProtoMessage()
- func (x *GetWithdrawalListRequest) ProtoReflect() protoreflect.Message
- func (x *GetWithdrawalListRequest) Reset()
- func (x *GetWithdrawalListRequest) String() string
- func (m *GetWithdrawalListRequest) Validate() error
- func (m *GetWithdrawalListRequest) ValidateAll() error
- type GetWithdrawalListRequestMultiError
- type GetWithdrawalListRequestValidationError
- func (e GetWithdrawalListRequestValidationError) Cause() error
- func (e GetWithdrawalListRequestValidationError) Error() string
- func (e GetWithdrawalListRequestValidationError) ErrorName() string
- func (e GetWithdrawalListRequestValidationError) Field() string
- func (e GetWithdrawalListRequestValidationError) Key() bool
- func (e GetWithdrawalListRequestValidationError) Reason() string
- type OperationData
- func (*OperationData) Descriptor() ([]byte, []int)deprecated
- func (x *OperationData) GetSuccess() bool
- func (*OperationData) ProtoMessage()
- func (x *OperationData) ProtoReflect() protoreflect.Message
- func (x *OperationData) Reset()
- func (x *OperationData) String() string
- func (m *OperationData) Validate() error
- func (m *OperationData) ValidateAll() error
- type OperationDataMultiError
- type OperationDataValidationError
- func (e OperationDataValidationError) Cause() error
- func (e OperationDataValidationError) Error() string
- func (e OperationDataValidationError) ErrorName() string
- func (e OperationDataValidationError) Field() string
- func (e OperationDataValidationError) Key() bool
- func (e OperationDataValidationError) Reason() string
- type RejectWithdrawalReply
- func (*RejectWithdrawalReply) Descriptor() ([]byte, []int)deprecated
- func (x *RejectWithdrawalReply) GetCode() int32
- func (x *RejectWithdrawalReply) GetData() *OperationData
- func (x *RejectWithdrawalReply) GetMessage() string
- func (*RejectWithdrawalReply) ProtoMessage()
- func (x *RejectWithdrawalReply) ProtoReflect() protoreflect.Message
- func (x *RejectWithdrawalReply) Reset()
- func (x *RejectWithdrawalReply) String() string
- func (m *RejectWithdrawalReply) Validate() error
- func (m *RejectWithdrawalReply) ValidateAll() error
- type RejectWithdrawalReplyMultiError
- type RejectWithdrawalReplyValidationError
- func (e RejectWithdrawalReplyValidationError) Cause() error
- func (e RejectWithdrawalReplyValidationError) Error() string
- func (e RejectWithdrawalReplyValidationError) ErrorName() string
- func (e RejectWithdrawalReplyValidationError) Field() string
- func (e RejectWithdrawalReplyValidationError) Key() bool
- func (e RejectWithdrawalReplyValidationError) Reason() string
- type RejectWithdrawalRequest
- func (*RejectWithdrawalRequest) Descriptor() ([]byte, []int)deprecated
- func (x *RejectWithdrawalRequest) GetId() int64
- func (x *RejectWithdrawalRequest) GetReason() string
- func (*RejectWithdrawalRequest) ProtoMessage()
- func (x *RejectWithdrawalRequest) ProtoReflect() protoreflect.Message
- func (x *RejectWithdrawalRequest) Reset()
- func (x *RejectWithdrawalRequest) String() string
- func (m *RejectWithdrawalRequest) Validate() error
- func (m *RejectWithdrawalRequest) ValidateAll() error
- type RejectWithdrawalRequestMultiError
- type RejectWithdrawalRequestValidationError
- func (e RejectWithdrawalRequestValidationError) Cause() error
- func (e RejectWithdrawalRequestValidationError) Error() string
- func (e RejectWithdrawalRequestValidationError) ErrorName() string
- func (e RejectWithdrawalRequestValidationError) Field() string
- func (e RejectWithdrawalRequestValidationError) Key() bool
- func (e RejectWithdrawalRequestValidationError) Reason() string
- type UnimplementedWithdrawalServiceServer
- func (UnimplementedWithdrawalServiceServer) ApproveWithdrawal(context.Context, *ApproveWithdrawalRequest) (*ApproveWithdrawalReply, error)
- func (UnimplementedWithdrawalServiceServer) GetWithdrawalList(context.Context, *GetWithdrawalListRequest) (*GetWithdrawalListReply, error)
- func (UnimplementedWithdrawalServiceServer) RejectWithdrawal(context.Context, *RejectWithdrawalRequest) (*RejectWithdrawalReply, error)
- type UnsafeWithdrawalServiceServer
- type Withdrawal
- func (*Withdrawal) Descriptor() ([]byte, []int)deprecated
- func (x *Withdrawal) GetAmount() int64
- func (x *Withdrawal) GetContent() string
- func (x *Withdrawal) GetCreatedAt() int64
- func (x *Withdrawal) GetId() int64
- func (x *Withdrawal) GetMethod() string
- func (x *Withdrawal) GetProcessedAt() int64
- func (x *Withdrawal) GetReason() string
- func (x *Withdrawal) GetStatus() int32
- func (x *Withdrawal) GetUpdatedAt() int64
- func (x *Withdrawal) GetUserId() int64
- func (*Withdrawal) ProtoMessage()
- func (x *Withdrawal) ProtoReflect() protoreflect.Message
- func (x *Withdrawal) Reset()
- func (x *Withdrawal) String() string
- func (m *Withdrawal) Validate() error
- func (m *Withdrawal) ValidateAll() error
- type WithdrawalListData
- func (*WithdrawalListData) Descriptor() ([]byte, []int)deprecated
- func (x *WithdrawalListData) GetList() []*Withdrawal
- func (x *WithdrawalListData) GetTotal() int32
- func (*WithdrawalListData) ProtoMessage()
- func (x *WithdrawalListData) ProtoReflect() protoreflect.Message
- func (x *WithdrawalListData) Reset()
- func (x *WithdrawalListData) String() string
- func (m *WithdrawalListData) Validate() error
- func (m *WithdrawalListData) ValidateAll() error
- type WithdrawalListDataMultiError
- type WithdrawalListDataValidationError
- func (e WithdrawalListDataValidationError) Cause() error
- func (e WithdrawalListDataValidationError) Error() string
- func (e WithdrawalListDataValidationError) ErrorName() string
- func (e WithdrawalListDataValidationError) Field() string
- func (e WithdrawalListDataValidationError) Key() bool
- func (e WithdrawalListDataValidationError) Reason() string
- type WithdrawalMultiError
- type WithdrawalServiceClient
- type WithdrawalServiceHTTPClient
- type WithdrawalServiceHTTPClientImpl
- func (c *WithdrawalServiceHTTPClientImpl) ApproveWithdrawal(ctx context.Context, in *ApproveWithdrawalRequest, opts ...http.CallOption) (*ApproveWithdrawalReply, error)
- func (c *WithdrawalServiceHTTPClientImpl) GetWithdrawalList(ctx context.Context, in *GetWithdrawalListRequest, opts ...http.CallOption) (*GetWithdrawalListReply, error)
- func (c *WithdrawalServiceHTTPClientImpl) RejectWithdrawal(ctx context.Context, in *RejectWithdrawalRequest, opts ...http.CallOption) (*RejectWithdrawalReply, error)
- type WithdrawalServiceHTTPServer
- type WithdrawalServiceServer
- type WithdrawalValidationError
Constants ¶
const ( WithdrawalService_GetWithdrawalList_FullMethodName = "/api.admin.withdrawal.v1.WithdrawalService/GetWithdrawalList" WithdrawalService_ApproveWithdrawal_FullMethodName = "/api.admin.withdrawal.v1.WithdrawalService/ApproveWithdrawal" WithdrawalService_RejectWithdrawal_FullMethodName = "/api.admin.withdrawal.v1.WithdrawalService/RejectWithdrawal" )
const OperationWithdrawalServiceApproveWithdrawal = "/api.admin.withdrawal.v1.WithdrawalService/ApproveWithdrawal"
const OperationWithdrawalServiceGetWithdrawalList = "/api.admin.withdrawal.v1.WithdrawalService/GetWithdrawalList"
const OperationWithdrawalServiceRejectWithdrawal = "/api.admin.withdrawal.v1.WithdrawalService/RejectWithdrawal"
Variables ¶
var File_admin_withdrawal_v1_withdrawal_proto protoreflect.FileDescriptor
var WithdrawalService_ServiceDesc = grpc.ServiceDesc{ ServiceName: "api.admin.withdrawal.v1.WithdrawalService", HandlerType: (*WithdrawalServiceServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "GetWithdrawalList", Handler: _WithdrawalService_GetWithdrawalList_Handler, }, { MethodName: "ApproveWithdrawal", Handler: _WithdrawalService_ApproveWithdrawal_Handler, }, { MethodName: "RejectWithdrawal", Handler: _WithdrawalService_RejectWithdrawal_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "admin/withdrawal/v1/withdrawal.proto", }
WithdrawalService_ServiceDesc is the grpc.ServiceDesc for WithdrawalService service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
Functions ¶
func RegisterWithdrawalServiceHTTPServer ¶
func RegisterWithdrawalServiceHTTPServer(s *http.Server, srv WithdrawalServiceHTTPServer)
func RegisterWithdrawalServiceServer ¶
func RegisterWithdrawalServiceServer(s grpc.ServiceRegistrar, srv WithdrawalServiceServer)
Types ¶
type ApproveWithdrawalReply ¶
type ApproveWithdrawalReply struct {
Code int32 `protobuf:"varint,1,opt,name=code,proto3" json:"code,omitempty"`
Message string `protobuf:"bytes,2,opt,name=message,proto3" json:"message,omitempty"`
Data *OperationData `protobuf:"bytes,3,opt,name=data,proto3" json:"data,omitempty"`
// contains filtered or unexported fields
}
func (*ApproveWithdrawalReply) Descriptor
deprecated
func (*ApproveWithdrawalReply) Descriptor() ([]byte, []int)
Deprecated: Use ApproveWithdrawalReply.ProtoReflect.Descriptor instead.
func (*ApproveWithdrawalReply) GetCode ¶
func (x *ApproveWithdrawalReply) GetCode() int32
func (*ApproveWithdrawalReply) GetData ¶
func (x *ApproveWithdrawalReply) GetData() *OperationData
func (*ApproveWithdrawalReply) GetMessage ¶
func (x *ApproveWithdrawalReply) GetMessage() string
func (*ApproveWithdrawalReply) ProtoMessage ¶
func (*ApproveWithdrawalReply) ProtoMessage()
func (*ApproveWithdrawalReply) ProtoReflect ¶
func (x *ApproveWithdrawalReply) ProtoReflect() protoreflect.Message
func (*ApproveWithdrawalReply) Reset ¶
func (x *ApproveWithdrawalReply) Reset()
func (*ApproveWithdrawalReply) String ¶
func (x *ApproveWithdrawalReply) String() string
func (*ApproveWithdrawalReply) Validate ¶
func (m *ApproveWithdrawalReply) Validate() error
Validate checks the field values on ApproveWithdrawalReply with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.
func (*ApproveWithdrawalReply) ValidateAll ¶
func (m *ApproveWithdrawalReply) ValidateAll() error
ValidateAll checks the field values on ApproveWithdrawalReply with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in ApproveWithdrawalReplyMultiError, or nil if none found.
type ApproveWithdrawalReplyMultiError ¶
type ApproveWithdrawalReplyMultiError []error
ApproveWithdrawalReplyMultiError is an error wrapping multiple validation errors returned by ApproveWithdrawalReply.ValidateAll() if the designated constraints aren't met.
func (ApproveWithdrawalReplyMultiError) AllErrors ¶
func (m ApproveWithdrawalReplyMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (ApproveWithdrawalReplyMultiError) Error ¶
func (m ApproveWithdrawalReplyMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type ApproveWithdrawalReplyValidationError ¶
type ApproveWithdrawalReplyValidationError struct {
// contains filtered or unexported fields
}
ApproveWithdrawalReplyValidationError is the validation error returned by ApproveWithdrawalReply.Validate if the designated constraints aren't met.
func (ApproveWithdrawalReplyValidationError) Cause ¶
func (e ApproveWithdrawalReplyValidationError) Cause() error
Cause function returns cause value.
func (ApproveWithdrawalReplyValidationError) Error ¶
func (e ApproveWithdrawalReplyValidationError) Error() string
Error satisfies the builtin error interface
func (ApproveWithdrawalReplyValidationError) ErrorName ¶
func (e ApproveWithdrawalReplyValidationError) ErrorName() string
ErrorName returns error name.
func (ApproveWithdrawalReplyValidationError) Field ¶
func (e ApproveWithdrawalReplyValidationError) Field() string
Field function returns field value.
func (ApproveWithdrawalReplyValidationError) Key ¶
func (e ApproveWithdrawalReplyValidationError) Key() bool
Key function returns key value.
func (ApproveWithdrawalReplyValidationError) Reason ¶
func (e ApproveWithdrawalReplyValidationError) Reason() string
Reason function returns reason value.
type ApproveWithdrawalRequest ¶
type ApproveWithdrawalRequest struct {
Id int64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`
// contains filtered or unexported fields
}
func (*ApproveWithdrawalRequest) Descriptor
deprecated
func (*ApproveWithdrawalRequest) Descriptor() ([]byte, []int)
Deprecated: Use ApproveWithdrawalRequest.ProtoReflect.Descriptor instead.
func (*ApproveWithdrawalRequest) GetId ¶
func (x *ApproveWithdrawalRequest) GetId() int64
func (*ApproveWithdrawalRequest) ProtoMessage ¶
func (*ApproveWithdrawalRequest) ProtoMessage()
func (*ApproveWithdrawalRequest) ProtoReflect ¶
func (x *ApproveWithdrawalRequest) ProtoReflect() protoreflect.Message
func (*ApproveWithdrawalRequest) Reset ¶
func (x *ApproveWithdrawalRequest) Reset()
func (*ApproveWithdrawalRequest) String ¶
func (x *ApproveWithdrawalRequest) String() string
func (*ApproveWithdrawalRequest) Validate ¶
func (m *ApproveWithdrawalRequest) Validate() error
Validate checks the field values on ApproveWithdrawalRequest with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.
func (*ApproveWithdrawalRequest) ValidateAll ¶
func (m *ApproveWithdrawalRequest) ValidateAll() error
ValidateAll checks the field values on ApproveWithdrawalRequest with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in ApproveWithdrawalRequestMultiError, or nil if none found.
type ApproveWithdrawalRequestMultiError ¶
type ApproveWithdrawalRequestMultiError []error
ApproveWithdrawalRequestMultiError is an error wrapping multiple validation errors returned by ApproveWithdrawalRequest.ValidateAll() if the designated constraints aren't met.
func (ApproveWithdrawalRequestMultiError) AllErrors ¶
func (m ApproveWithdrawalRequestMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (ApproveWithdrawalRequestMultiError) Error ¶
func (m ApproveWithdrawalRequestMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type ApproveWithdrawalRequestValidationError ¶
type ApproveWithdrawalRequestValidationError struct {
// contains filtered or unexported fields
}
ApproveWithdrawalRequestValidationError is the validation error returned by ApproveWithdrawalRequest.Validate if the designated constraints aren't met.
func (ApproveWithdrawalRequestValidationError) Cause ¶
func (e ApproveWithdrawalRequestValidationError) Cause() error
Cause function returns cause value.
func (ApproveWithdrawalRequestValidationError) Error ¶
func (e ApproveWithdrawalRequestValidationError) Error() string
Error satisfies the builtin error interface
func (ApproveWithdrawalRequestValidationError) ErrorName ¶
func (e ApproveWithdrawalRequestValidationError) ErrorName() string
ErrorName returns error name.
func (ApproveWithdrawalRequestValidationError) Field ¶
func (e ApproveWithdrawalRequestValidationError) Field() string
Field function returns field value.
func (ApproveWithdrawalRequestValidationError) Key ¶
func (e ApproveWithdrawalRequestValidationError) Key() bool
Key function returns key value.
func (ApproveWithdrawalRequestValidationError) Reason ¶
func (e ApproveWithdrawalRequestValidationError) Reason() string
Reason function returns reason value.
type GetWithdrawalListReply ¶
type GetWithdrawalListReply struct {
Code int32 `protobuf:"varint,1,opt,name=code,proto3" json:"code,omitempty"`
Message string `protobuf:"bytes,2,opt,name=message,proto3" json:"message,omitempty"`
Data *WithdrawalListData `protobuf:"bytes,3,opt,name=data,proto3" json:"data,omitempty"`
// contains filtered or unexported fields
}
func (*GetWithdrawalListReply) Descriptor
deprecated
func (*GetWithdrawalListReply) Descriptor() ([]byte, []int)
Deprecated: Use GetWithdrawalListReply.ProtoReflect.Descriptor instead.
func (*GetWithdrawalListReply) GetCode ¶
func (x *GetWithdrawalListReply) GetCode() int32
func (*GetWithdrawalListReply) GetData ¶
func (x *GetWithdrawalListReply) GetData() *WithdrawalListData
func (*GetWithdrawalListReply) GetMessage ¶
func (x *GetWithdrawalListReply) GetMessage() string
func (*GetWithdrawalListReply) ProtoMessage ¶
func (*GetWithdrawalListReply) ProtoMessage()
func (*GetWithdrawalListReply) ProtoReflect ¶
func (x *GetWithdrawalListReply) ProtoReflect() protoreflect.Message
func (*GetWithdrawalListReply) Reset ¶
func (x *GetWithdrawalListReply) Reset()
func (*GetWithdrawalListReply) String ¶
func (x *GetWithdrawalListReply) String() string
func (*GetWithdrawalListReply) Validate ¶
func (m *GetWithdrawalListReply) Validate() error
Validate checks the field values on GetWithdrawalListReply with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.
func (*GetWithdrawalListReply) ValidateAll ¶
func (m *GetWithdrawalListReply) ValidateAll() error
ValidateAll checks the field values on GetWithdrawalListReply with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in GetWithdrawalListReplyMultiError, or nil if none found.
type GetWithdrawalListReplyMultiError ¶
type GetWithdrawalListReplyMultiError []error
GetWithdrawalListReplyMultiError is an error wrapping multiple validation errors returned by GetWithdrawalListReply.ValidateAll() if the designated constraints aren't met.
func (GetWithdrawalListReplyMultiError) AllErrors ¶
func (m GetWithdrawalListReplyMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (GetWithdrawalListReplyMultiError) Error ¶
func (m GetWithdrawalListReplyMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type GetWithdrawalListReplyValidationError ¶
type GetWithdrawalListReplyValidationError struct {
// contains filtered or unexported fields
}
GetWithdrawalListReplyValidationError is the validation error returned by GetWithdrawalListReply.Validate if the designated constraints aren't met.
func (GetWithdrawalListReplyValidationError) Cause ¶
func (e GetWithdrawalListReplyValidationError) Cause() error
Cause function returns cause value.
func (GetWithdrawalListReplyValidationError) Error ¶
func (e GetWithdrawalListReplyValidationError) Error() string
Error satisfies the builtin error interface
func (GetWithdrawalListReplyValidationError) ErrorName ¶
func (e GetWithdrawalListReplyValidationError) ErrorName() string
ErrorName returns error name.
func (GetWithdrawalListReplyValidationError) Field ¶
func (e GetWithdrawalListReplyValidationError) Field() string
Field function returns field value.
func (GetWithdrawalListReplyValidationError) Key ¶
func (e GetWithdrawalListReplyValidationError) Key() bool
Key function returns key value.
func (GetWithdrawalListReplyValidationError) Reason ¶
func (e GetWithdrawalListReplyValidationError) Reason() string
Reason function returns reason value.
type GetWithdrawalListRequest ¶
type GetWithdrawalListRequest struct {
Page int64 `protobuf:"varint,1,opt,name=page,proto3" json:"page,omitempty"`
Size int64 `protobuf:"varint,2,opt,name=size,proto3" json:"size,omitempty"`
UserId *int64 `protobuf:"varint,3,opt,name=user_id,json=userId,proto3,oneof" json:"user_id,omitempty"`
Status *int32 `protobuf:"varint,4,opt,name=status,proto3,oneof" json:"status,omitempty"`
Method string `protobuf:"bytes,5,opt,name=method,proto3" json:"method,omitempty"`
// contains filtered or unexported fields
}
func (*GetWithdrawalListRequest) Descriptor
deprecated
func (*GetWithdrawalListRequest) Descriptor() ([]byte, []int)
Deprecated: Use GetWithdrawalListRequest.ProtoReflect.Descriptor instead.
func (*GetWithdrawalListRequest) GetMethod ¶
func (x *GetWithdrawalListRequest) GetMethod() string
func (*GetWithdrawalListRequest) GetPage ¶
func (x *GetWithdrawalListRequest) GetPage() int64
func (*GetWithdrawalListRequest) GetSize ¶
func (x *GetWithdrawalListRequest) GetSize() int64
func (*GetWithdrawalListRequest) GetStatus ¶
func (x *GetWithdrawalListRequest) GetStatus() int32
func (*GetWithdrawalListRequest) GetUserId ¶
func (x *GetWithdrawalListRequest) GetUserId() int64
func (*GetWithdrawalListRequest) ProtoMessage ¶
func (*GetWithdrawalListRequest) ProtoMessage()
func (*GetWithdrawalListRequest) ProtoReflect ¶
func (x *GetWithdrawalListRequest) ProtoReflect() protoreflect.Message
func (*GetWithdrawalListRequest) Reset ¶
func (x *GetWithdrawalListRequest) Reset()
func (*GetWithdrawalListRequest) String ¶
func (x *GetWithdrawalListRequest) String() string
func (*GetWithdrawalListRequest) Validate ¶
func (m *GetWithdrawalListRequest) Validate() error
Validate checks the field values on GetWithdrawalListRequest with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.
func (*GetWithdrawalListRequest) ValidateAll ¶
func (m *GetWithdrawalListRequest) ValidateAll() error
ValidateAll checks the field values on GetWithdrawalListRequest with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in GetWithdrawalListRequestMultiError, or nil if none found.
type GetWithdrawalListRequestMultiError ¶
type GetWithdrawalListRequestMultiError []error
GetWithdrawalListRequestMultiError is an error wrapping multiple validation errors returned by GetWithdrawalListRequest.ValidateAll() if the designated constraints aren't met.
func (GetWithdrawalListRequestMultiError) AllErrors ¶
func (m GetWithdrawalListRequestMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (GetWithdrawalListRequestMultiError) Error ¶
func (m GetWithdrawalListRequestMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type GetWithdrawalListRequestValidationError ¶
type GetWithdrawalListRequestValidationError struct {
// contains filtered or unexported fields
}
GetWithdrawalListRequestValidationError is the validation error returned by GetWithdrawalListRequest.Validate if the designated constraints aren't met.
func (GetWithdrawalListRequestValidationError) Cause ¶
func (e GetWithdrawalListRequestValidationError) Cause() error
Cause function returns cause value.
func (GetWithdrawalListRequestValidationError) Error ¶
func (e GetWithdrawalListRequestValidationError) Error() string
Error satisfies the builtin error interface
func (GetWithdrawalListRequestValidationError) ErrorName ¶
func (e GetWithdrawalListRequestValidationError) ErrorName() string
ErrorName returns error name.
func (GetWithdrawalListRequestValidationError) Field ¶
func (e GetWithdrawalListRequestValidationError) Field() string
Field function returns field value.
func (GetWithdrawalListRequestValidationError) Key ¶
func (e GetWithdrawalListRequestValidationError) Key() bool
Key function returns key value.
func (GetWithdrawalListRequestValidationError) Reason ¶
func (e GetWithdrawalListRequestValidationError) Reason() string
Reason function returns reason value.
type OperationData ¶
type OperationData struct {
Success bool `protobuf:"varint,1,opt,name=success,proto3" json:"success,omitempty"`
// contains filtered or unexported fields
}
func (*OperationData) Descriptor
deprecated
func (*OperationData) Descriptor() ([]byte, []int)
Deprecated: Use OperationData.ProtoReflect.Descriptor instead.
func (*OperationData) GetSuccess ¶
func (x *OperationData) GetSuccess() bool
func (*OperationData) ProtoMessage ¶
func (*OperationData) ProtoMessage()
func (*OperationData) ProtoReflect ¶
func (x *OperationData) ProtoReflect() protoreflect.Message
func (*OperationData) Reset ¶
func (x *OperationData) Reset()
func (*OperationData) String ¶
func (x *OperationData) String() string
func (*OperationData) Validate ¶
func (m *OperationData) Validate() error
Validate checks the field values on OperationData with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.
func (*OperationData) ValidateAll ¶
func (m *OperationData) ValidateAll() error
ValidateAll checks the field values on OperationData with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in OperationDataMultiError, or nil if none found.
type OperationDataMultiError ¶
type OperationDataMultiError []error
OperationDataMultiError is an error wrapping multiple validation errors returned by OperationData.ValidateAll() if the designated constraints aren't met.
func (OperationDataMultiError) AllErrors ¶
func (m OperationDataMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (OperationDataMultiError) Error ¶
func (m OperationDataMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type OperationDataValidationError ¶
type OperationDataValidationError struct {
// contains filtered or unexported fields
}
OperationDataValidationError is the validation error returned by OperationData.Validate if the designated constraints aren't met.
func (OperationDataValidationError) Cause ¶
func (e OperationDataValidationError) Cause() error
Cause function returns cause value.
func (OperationDataValidationError) Error ¶
func (e OperationDataValidationError) Error() string
Error satisfies the builtin error interface
func (OperationDataValidationError) ErrorName ¶
func (e OperationDataValidationError) ErrorName() string
ErrorName returns error name.
func (OperationDataValidationError) Field ¶
func (e OperationDataValidationError) Field() string
Field function returns field value.
func (OperationDataValidationError) Key ¶
func (e OperationDataValidationError) Key() bool
Key function returns key value.
func (OperationDataValidationError) Reason ¶
func (e OperationDataValidationError) Reason() string
Reason function returns reason value.
type RejectWithdrawalReply ¶
type RejectWithdrawalReply struct {
Code int32 `protobuf:"varint,1,opt,name=code,proto3" json:"code,omitempty"`
Message string `protobuf:"bytes,2,opt,name=message,proto3" json:"message,omitempty"`
Data *OperationData `protobuf:"bytes,3,opt,name=data,proto3" json:"data,omitempty"`
// contains filtered or unexported fields
}
func (*RejectWithdrawalReply) Descriptor
deprecated
func (*RejectWithdrawalReply) Descriptor() ([]byte, []int)
Deprecated: Use RejectWithdrawalReply.ProtoReflect.Descriptor instead.
func (*RejectWithdrawalReply) GetCode ¶
func (x *RejectWithdrawalReply) GetCode() int32
func (*RejectWithdrawalReply) GetData ¶
func (x *RejectWithdrawalReply) GetData() *OperationData
func (*RejectWithdrawalReply) GetMessage ¶
func (x *RejectWithdrawalReply) GetMessage() string
func (*RejectWithdrawalReply) ProtoMessage ¶
func (*RejectWithdrawalReply) ProtoMessage()
func (*RejectWithdrawalReply) ProtoReflect ¶
func (x *RejectWithdrawalReply) ProtoReflect() protoreflect.Message
func (*RejectWithdrawalReply) Reset ¶
func (x *RejectWithdrawalReply) Reset()
func (*RejectWithdrawalReply) String ¶
func (x *RejectWithdrawalReply) String() string
func (*RejectWithdrawalReply) Validate ¶
func (m *RejectWithdrawalReply) Validate() error
Validate checks the field values on RejectWithdrawalReply with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.
func (*RejectWithdrawalReply) ValidateAll ¶
func (m *RejectWithdrawalReply) ValidateAll() error
ValidateAll checks the field values on RejectWithdrawalReply with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in RejectWithdrawalReplyMultiError, or nil if none found.
type RejectWithdrawalReplyMultiError ¶
type RejectWithdrawalReplyMultiError []error
RejectWithdrawalReplyMultiError is an error wrapping multiple validation errors returned by RejectWithdrawalReply.ValidateAll() if the designated constraints aren't met.
func (RejectWithdrawalReplyMultiError) AllErrors ¶
func (m RejectWithdrawalReplyMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (RejectWithdrawalReplyMultiError) Error ¶
func (m RejectWithdrawalReplyMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type RejectWithdrawalReplyValidationError ¶
type RejectWithdrawalReplyValidationError struct {
// contains filtered or unexported fields
}
RejectWithdrawalReplyValidationError is the validation error returned by RejectWithdrawalReply.Validate if the designated constraints aren't met.
func (RejectWithdrawalReplyValidationError) Cause ¶
func (e RejectWithdrawalReplyValidationError) Cause() error
Cause function returns cause value.
func (RejectWithdrawalReplyValidationError) Error ¶
func (e RejectWithdrawalReplyValidationError) Error() string
Error satisfies the builtin error interface
func (RejectWithdrawalReplyValidationError) ErrorName ¶
func (e RejectWithdrawalReplyValidationError) ErrorName() string
ErrorName returns error name.
func (RejectWithdrawalReplyValidationError) Field ¶
func (e RejectWithdrawalReplyValidationError) Field() string
Field function returns field value.
func (RejectWithdrawalReplyValidationError) Key ¶
func (e RejectWithdrawalReplyValidationError) Key() bool
Key function returns key value.
func (RejectWithdrawalReplyValidationError) Reason ¶
func (e RejectWithdrawalReplyValidationError) Reason() string
Reason function returns reason value.
type RejectWithdrawalRequest ¶
type RejectWithdrawalRequest struct {
Id int64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`
Reason string `protobuf:"bytes,2,opt,name=reason,proto3" json:"reason,omitempty"`
// contains filtered or unexported fields
}
func (*RejectWithdrawalRequest) Descriptor
deprecated
func (*RejectWithdrawalRequest) Descriptor() ([]byte, []int)
Deprecated: Use RejectWithdrawalRequest.ProtoReflect.Descriptor instead.
func (*RejectWithdrawalRequest) GetId ¶
func (x *RejectWithdrawalRequest) GetId() int64
func (*RejectWithdrawalRequest) GetReason ¶
func (x *RejectWithdrawalRequest) GetReason() string
func (*RejectWithdrawalRequest) ProtoMessage ¶
func (*RejectWithdrawalRequest) ProtoMessage()
func (*RejectWithdrawalRequest) ProtoReflect ¶
func (x *RejectWithdrawalRequest) ProtoReflect() protoreflect.Message
func (*RejectWithdrawalRequest) Reset ¶
func (x *RejectWithdrawalRequest) Reset()
func (*RejectWithdrawalRequest) String ¶
func (x *RejectWithdrawalRequest) String() string
func (*RejectWithdrawalRequest) Validate ¶
func (m *RejectWithdrawalRequest) Validate() error
Validate checks the field values on RejectWithdrawalRequest with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.
func (*RejectWithdrawalRequest) ValidateAll ¶
func (m *RejectWithdrawalRequest) ValidateAll() error
ValidateAll checks the field values on RejectWithdrawalRequest with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in RejectWithdrawalRequestMultiError, or nil if none found.
type RejectWithdrawalRequestMultiError ¶
type RejectWithdrawalRequestMultiError []error
RejectWithdrawalRequestMultiError is an error wrapping multiple validation errors returned by RejectWithdrawalRequest.ValidateAll() if the designated constraints aren't met.
func (RejectWithdrawalRequestMultiError) AllErrors ¶
func (m RejectWithdrawalRequestMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (RejectWithdrawalRequestMultiError) Error ¶
func (m RejectWithdrawalRequestMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type RejectWithdrawalRequestValidationError ¶
type RejectWithdrawalRequestValidationError struct {
// contains filtered or unexported fields
}
RejectWithdrawalRequestValidationError is the validation error returned by RejectWithdrawalRequest.Validate if the designated constraints aren't met.
func (RejectWithdrawalRequestValidationError) Cause ¶
func (e RejectWithdrawalRequestValidationError) Cause() error
Cause function returns cause value.
func (RejectWithdrawalRequestValidationError) Error ¶
func (e RejectWithdrawalRequestValidationError) Error() string
Error satisfies the builtin error interface
func (RejectWithdrawalRequestValidationError) ErrorName ¶
func (e RejectWithdrawalRequestValidationError) ErrorName() string
ErrorName returns error name.
func (RejectWithdrawalRequestValidationError) Field ¶
func (e RejectWithdrawalRequestValidationError) Field() string
Field function returns field value.
func (RejectWithdrawalRequestValidationError) Key ¶
func (e RejectWithdrawalRequestValidationError) Key() bool
Key function returns key value.
func (RejectWithdrawalRequestValidationError) Reason ¶
func (e RejectWithdrawalRequestValidationError) Reason() string
Reason function returns reason value.
type UnimplementedWithdrawalServiceServer ¶
type UnimplementedWithdrawalServiceServer struct{}
UnimplementedWithdrawalServiceServer must be embedded to have forward compatible implementations.
NOTE: this should be embedded by value instead of pointer to avoid a nil pointer dereference when methods are called.
func (UnimplementedWithdrawalServiceServer) ApproveWithdrawal ¶
func (UnimplementedWithdrawalServiceServer) ApproveWithdrawal(context.Context, *ApproveWithdrawalRequest) (*ApproveWithdrawalReply, error)
func (UnimplementedWithdrawalServiceServer) GetWithdrawalList ¶
func (UnimplementedWithdrawalServiceServer) GetWithdrawalList(context.Context, *GetWithdrawalListRequest) (*GetWithdrawalListReply, error)
func (UnimplementedWithdrawalServiceServer) RejectWithdrawal ¶
func (UnimplementedWithdrawalServiceServer) RejectWithdrawal(context.Context, *RejectWithdrawalRequest) (*RejectWithdrawalReply, error)
type UnsafeWithdrawalServiceServer ¶
type UnsafeWithdrawalServiceServer interface {
// contains filtered or unexported methods
}
UnsafeWithdrawalServiceServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to WithdrawalServiceServer will result in compilation errors.
type Withdrawal ¶
type Withdrawal struct {
Id int64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`
UserId int64 `protobuf:"varint,2,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"`
Amount int64 `protobuf:"varint,3,opt,name=amount,proto3" json:"amount,omitempty"`
Method string `protobuf:"bytes,4,opt,name=method,proto3" json:"method,omitempty"`
Content string `protobuf:"bytes,5,opt,name=content,proto3" json:"content,omitempty"`
Status int32 `protobuf:"varint,6,opt,name=status,proto3" json:"status,omitempty"`
Reason string `protobuf:"bytes,7,opt,name=reason,proto3" json:"reason,omitempty"`
CreatedAt int64 `protobuf:"varint,8,opt,name=created_at,json=createdAt,proto3" json:"created_at,omitempty"`
UpdatedAt int64 `protobuf:"varint,9,opt,name=updated_at,json=updatedAt,proto3" json:"updated_at,omitempty"`
ProcessedAt int64 `protobuf:"varint,10,opt,name=processed_at,json=processedAt,proto3" json:"processed_at,omitempty"`
// contains filtered or unexported fields
}
func (*Withdrawal) Descriptor
deprecated
func (*Withdrawal) Descriptor() ([]byte, []int)
Deprecated: Use Withdrawal.ProtoReflect.Descriptor instead.
func (*Withdrawal) GetAmount ¶
func (x *Withdrawal) GetAmount() int64
func (*Withdrawal) GetContent ¶
func (x *Withdrawal) GetContent() string
func (*Withdrawal) GetCreatedAt ¶
func (x *Withdrawal) GetCreatedAt() int64
func (*Withdrawal) GetId ¶
func (x *Withdrawal) GetId() int64
func (*Withdrawal) GetMethod ¶
func (x *Withdrawal) GetMethod() string
func (*Withdrawal) GetProcessedAt ¶
func (x *Withdrawal) GetProcessedAt() int64
func (*Withdrawal) GetReason ¶
func (x *Withdrawal) GetReason() string
func (*Withdrawal) GetStatus ¶
func (x *Withdrawal) GetStatus() int32
func (*Withdrawal) GetUpdatedAt ¶
func (x *Withdrawal) GetUpdatedAt() int64
func (*Withdrawal) GetUserId ¶
func (x *Withdrawal) GetUserId() int64
func (*Withdrawal) ProtoMessage ¶
func (*Withdrawal) ProtoMessage()
func (*Withdrawal) ProtoReflect ¶
func (x *Withdrawal) ProtoReflect() protoreflect.Message
func (*Withdrawal) Reset ¶
func (x *Withdrawal) Reset()
func (*Withdrawal) String ¶
func (x *Withdrawal) String() string
func (*Withdrawal) Validate ¶
func (m *Withdrawal) Validate() error
Validate checks the field values on Withdrawal with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.
func (*Withdrawal) ValidateAll ¶
func (m *Withdrawal) ValidateAll() error
ValidateAll checks the field values on Withdrawal with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in WithdrawalMultiError, or nil if none found.
type WithdrawalListData ¶
type WithdrawalListData struct {
List []*Withdrawal `protobuf:"bytes,1,rep,name=list,proto3" json:"list,omitempty"`
Total int32 `protobuf:"varint,2,opt,name=total,proto3" json:"total,omitempty"`
// contains filtered or unexported fields
}
func (*WithdrawalListData) Descriptor
deprecated
func (*WithdrawalListData) Descriptor() ([]byte, []int)
Deprecated: Use WithdrawalListData.ProtoReflect.Descriptor instead.
func (*WithdrawalListData) GetList ¶
func (x *WithdrawalListData) GetList() []*Withdrawal
func (*WithdrawalListData) GetTotal ¶
func (x *WithdrawalListData) GetTotal() int32
func (*WithdrawalListData) ProtoMessage ¶
func (*WithdrawalListData) ProtoMessage()
func (*WithdrawalListData) ProtoReflect ¶
func (x *WithdrawalListData) ProtoReflect() protoreflect.Message
func (*WithdrawalListData) Reset ¶
func (x *WithdrawalListData) Reset()
func (*WithdrawalListData) String ¶
func (x *WithdrawalListData) String() string
func (*WithdrawalListData) Validate ¶
func (m *WithdrawalListData) Validate() error
Validate checks the field values on WithdrawalListData with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.
func (*WithdrawalListData) ValidateAll ¶
func (m *WithdrawalListData) ValidateAll() error
ValidateAll checks the field values on WithdrawalListData with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in WithdrawalListDataMultiError, or nil if none found.
type WithdrawalListDataMultiError ¶
type WithdrawalListDataMultiError []error
WithdrawalListDataMultiError is an error wrapping multiple validation errors returned by WithdrawalListData.ValidateAll() if the designated constraints aren't met.
func (WithdrawalListDataMultiError) AllErrors ¶
func (m WithdrawalListDataMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (WithdrawalListDataMultiError) Error ¶
func (m WithdrawalListDataMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type WithdrawalListDataValidationError ¶
type WithdrawalListDataValidationError struct {
// contains filtered or unexported fields
}
WithdrawalListDataValidationError is the validation error returned by WithdrawalListData.Validate if the designated constraints aren't met.
func (WithdrawalListDataValidationError) Cause ¶
func (e WithdrawalListDataValidationError) Cause() error
Cause function returns cause value.
func (WithdrawalListDataValidationError) Error ¶
func (e WithdrawalListDataValidationError) Error() string
Error satisfies the builtin error interface
func (WithdrawalListDataValidationError) ErrorName ¶
func (e WithdrawalListDataValidationError) ErrorName() string
ErrorName returns error name.
func (WithdrawalListDataValidationError) Field ¶
func (e WithdrawalListDataValidationError) Field() string
Field function returns field value.
func (WithdrawalListDataValidationError) Key ¶
func (e WithdrawalListDataValidationError) Key() bool
Key function returns key value.
func (WithdrawalListDataValidationError) Reason ¶
func (e WithdrawalListDataValidationError) Reason() string
Reason function returns reason value.
type WithdrawalMultiError ¶
type WithdrawalMultiError []error
WithdrawalMultiError is an error wrapping multiple validation errors returned by Withdrawal.ValidateAll() if the designated constraints aren't met.
func (WithdrawalMultiError) AllErrors ¶
func (m WithdrawalMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (WithdrawalMultiError) Error ¶
func (m WithdrawalMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type WithdrawalServiceClient ¶
type WithdrawalServiceClient interface {
GetWithdrawalList(ctx context.Context, in *GetWithdrawalListRequest, opts ...grpc.CallOption) (*GetWithdrawalListReply, error)
ApproveWithdrawal(ctx context.Context, in *ApproveWithdrawalRequest, opts ...grpc.CallOption) (*ApproveWithdrawalReply, error)
RejectWithdrawal(ctx context.Context, in *RejectWithdrawalRequest, opts ...grpc.CallOption) (*RejectWithdrawalReply, error)
}
WithdrawalServiceClient is the client API for WithdrawalService 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.
func NewWithdrawalServiceClient ¶
func NewWithdrawalServiceClient(cc grpc.ClientConnInterface) WithdrawalServiceClient
type WithdrawalServiceHTTPClient ¶
type WithdrawalServiceHTTPClient interface {
ApproveWithdrawal(ctx context.Context, req *ApproveWithdrawalRequest, opts ...http.CallOption) (rsp *ApproveWithdrawalReply, err error)
GetWithdrawalList(ctx context.Context, req *GetWithdrawalListRequest, opts ...http.CallOption) (rsp *GetWithdrawalListReply, err error)
RejectWithdrawal(ctx context.Context, req *RejectWithdrawalRequest, opts ...http.CallOption) (rsp *RejectWithdrawalReply, err error)
}
func NewWithdrawalServiceHTTPClient ¶
func NewWithdrawalServiceHTTPClient(client *http.Client) WithdrawalServiceHTTPClient
type WithdrawalServiceHTTPClientImpl ¶
type WithdrawalServiceHTTPClientImpl struct {
// contains filtered or unexported fields
}
func (*WithdrawalServiceHTTPClientImpl) ApproveWithdrawal ¶
func (c *WithdrawalServiceHTTPClientImpl) ApproveWithdrawal(ctx context.Context, in *ApproveWithdrawalRequest, opts ...http.CallOption) (*ApproveWithdrawalReply, error)
func (*WithdrawalServiceHTTPClientImpl) GetWithdrawalList ¶
func (c *WithdrawalServiceHTTPClientImpl) GetWithdrawalList(ctx context.Context, in *GetWithdrawalListRequest, opts ...http.CallOption) (*GetWithdrawalListReply, error)
func (*WithdrawalServiceHTTPClientImpl) RejectWithdrawal ¶
func (c *WithdrawalServiceHTTPClientImpl) RejectWithdrawal(ctx context.Context, in *RejectWithdrawalRequest, opts ...http.CallOption) (*RejectWithdrawalReply, error)
type WithdrawalServiceHTTPServer ¶
type WithdrawalServiceHTTPServer interface {
ApproveWithdrawal(context.Context, *ApproveWithdrawalRequest) (*ApproveWithdrawalReply, error)
GetWithdrawalList(context.Context, *GetWithdrawalListRequest) (*GetWithdrawalListReply, error)
RejectWithdrawal(context.Context, *RejectWithdrawalRequest) (*RejectWithdrawalReply, error)
}
type WithdrawalServiceServer ¶
type WithdrawalServiceServer interface {
GetWithdrawalList(context.Context, *GetWithdrawalListRequest) (*GetWithdrawalListReply, error)
ApproveWithdrawal(context.Context, *ApproveWithdrawalRequest) (*ApproveWithdrawalReply, error)
RejectWithdrawal(context.Context, *RejectWithdrawalRequest) (*RejectWithdrawalReply, error)
// contains filtered or unexported methods
}
WithdrawalServiceServer is the server API for WithdrawalService service. All implementations must embed UnimplementedWithdrawalServiceServer for forward compatibility.
type WithdrawalValidationError ¶
type WithdrawalValidationError struct {
// contains filtered or unexported fields
}
WithdrawalValidationError is the validation error returned by Withdrawal.Validate if the designated constraints aren't met.
func (WithdrawalValidationError) Cause ¶
func (e WithdrawalValidationError) Cause() error
Cause function returns cause value.
func (WithdrawalValidationError) Error ¶
func (e WithdrawalValidationError) Error() string
Error satisfies the builtin error interface
func (WithdrawalValidationError) ErrorName ¶
func (e WithdrawalValidationError) ErrorName() string
ErrorName returns error name.
func (WithdrawalValidationError) Field ¶
func (e WithdrawalValidationError) Field() string
Field function returns field value.
func (WithdrawalValidationError) Key ¶
func (e WithdrawalValidationError) Key() bool
Key function returns key value.
func (WithdrawalValidationError) Reason ¶
func (e WithdrawalValidationError) Reason() string
Reason function returns reason value.