withdrawapimapper

package
v1.0.29 Latest Latest
Warning

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

Go to latest
Published: Apr 14, 2026 License: MIT Imports: 4 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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

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 *pbstats.ApiResponseWithdrawMonthAmount) *response.ApiResponseWithdrawMonthAmount

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

func NewWithdrawStatsAmountResponseMapper

func NewWithdrawStatsAmountResponseMapper() WithdrawStatsAmountResponseMapper

type WithdrawStatsStatusResponseMapper

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

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

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

	// Converts yearly failed withdraw statistics into an API response.
	ToApiResponseWithdrawYearStatusFailed(pbResponse *pbstats.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