Documentation
¶
Index ¶
- Constants
- type Withdrawal
- type WithdrawalRepo
- type WithdrawalUsecase
- func (uc *WithdrawalUsecase) ApproveWithdrawal(ctx context.Context, id int64) error
- func (uc *WithdrawalUsecase) ListWithdrawals(ctx context.Context, req *v1.GetWithdrawalListRequest) ([]*Withdrawal, int32, error)
- func (uc *WithdrawalUsecase) RejectWithdrawal(ctx context.Context, id int64, reason string) error
Constants ¶
View Source
const ( StatusPending int8 = 0 StatusApproved int8 = 1 StatusRejected int8 = 2 )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Withdrawal ¶
type WithdrawalRepo ¶
type WithdrawalUsecase ¶
type WithdrawalUsecase struct {
// contains filtered or unexported fields
}
func NewWithdrawalUsecase ¶
func NewWithdrawalUsecase(repo WithdrawalRepo, logger log.Logger) *WithdrawalUsecase
func (*WithdrawalUsecase) ApproveWithdrawal ¶
func (uc *WithdrawalUsecase) ApproveWithdrawal(ctx context.Context, id int64) error
func (*WithdrawalUsecase) ListWithdrawals ¶
func (uc *WithdrawalUsecase) ListWithdrawals(ctx context.Context, req *v1.GetWithdrawalListRequest) ([]*Withdrawal, int32, error)
func (*WithdrawalUsecase) RejectWithdrawal ¶
Click to show internal directories.
Click to hide internal directories.