withdrawapimapper

package
v1.0.13 Latest Latest
Warning

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

Go to latest
Published: Jul 18, 2025 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type WithdrawBaseResponseMapper

type WithdrawBaseResponseMapper interface {
	// Converts a single withdraw response into an API response.
	ToApiResponseWithdraw(pbResponse *pb.ApiResponseWithdraw) *response.ApiResponseWithdraw
}

type WithdrawCommandResponseMapper

type WithdrawCommandResponseMapper interface {
	WithdrawBaseResponseMapper

	ToApiResponseWithdrawDeleteAt(pbResponse *pb.ApiResponseWithdrawDeleteAt) *response.ApiResponseWithdrawDeleteAt

	// Converts a permanently deleted withdraw response into an API response.
	ToApiResponseWithdrawDelete(pbResponse *pb.ApiResponseWithdrawDelete) *response.ApiResponseWithdrawDelete

	// Converts all withdraw records into an API response.
	ToApiResponseWithdrawAll(pbResponse *pb.ApiResponseWithdrawAll) *response.ApiResponseWithdrawAll
}

func NewWithdrawCommandResponseMapper

func NewWithdrawCommandResponseMapper() WithdrawCommandResponseMapper

NewWithdrawCommandResponseMapper creates and returns a new instance of withdrawCommandResponseMapper. This mapper provides methods to convert withdraw gRPC responses into API-compatible responses for command operations.

type WithdrawQueryResponseMapper

type WithdrawQueryResponseMapper interface {
	WithdrawBaseResponseMapper

	// Converts a list of withdraw responses into a grouped API response.
	ToApiResponsesWithdraw(pbResponse *pb.ApiResponsesWithdraw) *response.ApiResponsesWithdraw

	// Converts paginated withdraw records into an API response.
	ToApiResponsePaginationWithdraw(pbResponse *pb.ApiResponsePaginationWithdraw) *response.ApiResponsePaginationWithdraw

	// Converts paginated soft-deleted withdraw records into an API response.
	ToApiResponsePaginationWithdrawDeleteAt(pbResponse *pb.ApiResponsePaginationWithdrawDeleteAt) *response.ApiResponsePaginationWithdrawDeleteAt
}

func NewWithdrawQueryResponseMapper

func NewWithdrawQueryResponseMapper() WithdrawQueryResponseMapper

NewWithdrawResponseMapper creates and returns a new instance of withdrawQueryResponseMapper. This instance provides methods to map gRPC withdraw responses to HTTP API responses.

type WithdrawResponseMapper added in v1.0.13

type WithdrawResponseMapper interface {
	QueryMapper() WithdrawQueryResponseMapper
	CommandMapper() WithdrawCommandResponseMapper
	AmountStatsMapper() WithdrawStatsAmountResponseMapper
	StatusStatsMapper() WithdrawStatsStatusResponseMapper
}

func NewWithdrawResponseMapper

func NewWithdrawResponseMapper() WithdrawResponseMapper

type WithdrawStatsAmountResponseMapper

type WithdrawStatsAmountResponseMapper interface {
	// Converts monthly total withdraw amount statistics into an API response.
	ToApiResponseWithdrawMonthAmount(pbResponse *pb.ApiResponseWithdrawMonthAmount) *response.ApiResponseWithdrawMonthAmount

	// Converts yearly total withdraw amount statistics into an API response.
	ToApiResponseWithdrawYearAmount(pbResponse *pb.ApiResponseWithdrawYearAmount) *response.ApiResponseWithdrawYearAmount
}

func NewWithdrawStatsAmountResponseMapper

func NewWithdrawStatsAmountResponseMapper() WithdrawStatsAmountResponseMapper

type WithdrawStatsStatusResponseMapper

type WithdrawStatsStatusResponseMapper interface {
	// Converts monthly successful withdraw statistics into an API response.
	ToApiResponseWithdrawMonthStatusSuccess(pbResponse *pb.ApiResponseWithdrawMonthStatusSuccess) *response.ApiResponseWithdrawMonthStatusSuccess

	// Converts yearly successful withdraw statistics into an API response.
	ToApiResponseWithdrawYearStatusSuccess(pbResponse *pb.ApiResponseWithdrawYearStatusSuccess) *response.ApiResponseWithdrawYearStatusSuccess

	// Converts monthly failed withdraw statistics into an API response.
	ToApiResponseWithdrawMonthStatusFailed(pbResponse *pb.ApiResponseWithdrawMonthStatusFailed) *response.ApiResponseWithdrawMonthStatusFailed

	// Converts yearly failed withdraw statistics into an API response.
	ToApiResponseWithdrawYearStatusFailed(pbResponse *pb.ApiResponseWithdrawYearStatusFailed) *response.ApiResponseWithdrawYearStatusFailed
}

func NewWithdrawStatsStatusResponseMapper

func NewWithdrawStatsStatusResponseMapper() WithdrawStatsStatusResponseMapper

Jump to

Keyboard shortcuts

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