v1

package
v1.1.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 23, 2026 License: MIT Imports: 23 Imported by: 0

Documentation

Index

Constants

View Source
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"
)
View Source
const OperationWithdrawalServiceApproveWithdrawal = "/api.admin.withdrawal.v1.WithdrawalService/ApproveWithdrawal"
View Source
const OperationWithdrawalServiceGetWithdrawalList = "/api.admin.withdrawal.v1.WithdrawalService/GetWithdrawalList"
View Source
const OperationWithdrawalServiceRejectWithdrawal = "/api.admin.withdrawal.v1.WithdrawalService/RejectWithdrawal"

Variables

View Source
var File_admin_withdrawal_v1_withdrawal_proto protoreflect.FileDescriptor
View Source
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

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

Cause function returns cause value.

func (ApproveWithdrawalReplyValidationError) Error

Error satisfies the builtin error interface

func (ApproveWithdrawalReplyValidationError) ErrorName

ErrorName returns error name.

func (ApproveWithdrawalReplyValidationError) Field

Field function returns field value.

func (ApproveWithdrawalReplyValidationError) Key

Key function returns key value.

func (ApproveWithdrawalReplyValidationError) Reason

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

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

Cause function returns cause value.

func (ApproveWithdrawalRequestValidationError) Error

Error satisfies the builtin error interface

func (ApproveWithdrawalRequestValidationError) ErrorName

ErrorName returns error name.

func (ApproveWithdrawalRequestValidationError) Field

Field function returns field value.

func (ApproveWithdrawalRequestValidationError) Key

Key function returns key value.

func (ApproveWithdrawalRequestValidationError) Reason

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 (*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

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

Cause function returns cause value.

func (GetWithdrawalListReplyValidationError) Error

Error satisfies the builtin error interface

func (GetWithdrawalListReplyValidationError) ErrorName

ErrorName returns error name.

func (GetWithdrawalListReplyValidationError) Field

Field function returns field value.

func (GetWithdrawalListReplyValidationError) Key

Key function returns key value.

func (GetWithdrawalListReplyValidationError) Reason

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

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

Cause function returns cause value.

func (GetWithdrawalListRequestValidationError) Error

Error satisfies the builtin error interface

func (GetWithdrawalListRequestValidationError) ErrorName

ErrorName returns error name.

func (GetWithdrawalListRequestValidationError) Field

Field function returns field value.

func (GetWithdrawalListRequestValidationError) Key

Key function returns key value.

func (GetWithdrawalListRequestValidationError) Reason

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

Cause function returns cause value.

func (OperationDataValidationError) Error

Error satisfies the builtin error interface

func (OperationDataValidationError) ErrorName

func (e OperationDataValidationError) ErrorName() string

ErrorName returns error name.

func (OperationDataValidationError) Field

Field function returns field value.

func (OperationDataValidationError) Key

Key function returns key value.

func (OperationDataValidationError) Reason

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

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

Cause function returns cause value.

func (RejectWithdrawalReplyValidationError) Error

Error satisfies the builtin error interface

func (RejectWithdrawalReplyValidationError) ErrorName

ErrorName returns error name.

func (RejectWithdrawalReplyValidationError) Field

Field function returns field value.

func (RejectWithdrawalReplyValidationError) Key

Key function returns key value.

func (RejectWithdrawalReplyValidationError) Reason

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

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

Cause function returns cause value.

func (RejectWithdrawalRequestValidationError) Error

Error satisfies the builtin error interface

func (RejectWithdrawalRequestValidationError) ErrorName

ErrorName returns error name.

func (RejectWithdrawalRequestValidationError) Field

Field function returns field value.

func (RejectWithdrawalRequestValidationError) Key

Key function returns key value.

func (RejectWithdrawalRequestValidationError) Reason

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) GetWithdrawalList

func (UnimplementedWithdrawalServiceServer) RejectWithdrawal

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

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

Cause function returns cause value.

func (WithdrawalListDataValidationError) Error

Error satisfies the builtin error interface

func (WithdrawalListDataValidationError) ErrorName

ErrorName returns error name.

func (WithdrawalListDataValidationError) Field

Field function returns field value.

func (WithdrawalListDataValidationError) Key

Key function returns key value.

func (WithdrawalListDataValidationError) Reason

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.

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 (*WithdrawalServiceHTTPClientImpl) GetWithdrawalList

func (*WithdrawalServiceHTTPClientImpl) RejectWithdrawal

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

Error satisfies the builtin error interface

func (WithdrawalValidationError) ErrorName

func (e WithdrawalValidationError) ErrorName() string

ErrorName returns error name.

func (WithdrawalValidationError) Field

Field function returns field value.

func (WithdrawalValidationError) Key

Key function returns key value.

func (WithdrawalValidationError) Reason

func (e WithdrawalValidationError) Reason() string

Reason function returns reason value.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL