refactor
This commit is contained in:
@@ -10,7 +10,7 @@ import type {
|
||||
AwardPrizeResultDTO,
|
||||
AwardPrizeViewModel,
|
||||
} from '../presenters/IAwardPrizePresenter';
|
||||
import type { UseCase } from '@gridpilot/shared/application/UseCase';
|
||||
import type { UseCase } from '@core/shared/application/UseCase';
|
||||
|
||||
export interface AwardPrizeInput {
|
||||
prizeId: string;
|
||||
|
||||
@@ -11,7 +11,7 @@ import type {
|
||||
CreatePaymentResultDTO,
|
||||
CreatePaymentViewModel,
|
||||
} from '../presenters/ICreatePaymentPresenter';
|
||||
import type { UseCase } from '@gridpilot/shared/application/UseCase';
|
||||
import type { UseCase } from '@core/shared/application/UseCase';
|
||||
|
||||
const PLATFORM_FEE_RATE = 0.10;
|
||||
|
||||
|
||||
@@ -11,7 +11,7 @@ import type {
|
||||
CreatePrizeResultDTO,
|
||||
CreatePrizeViewModel,
|
||||
} from '../presenters/ICreatePrizePresenter';
|
||||
import type { UseCase } from '@gridpilot/shared/application/UseCase';
|
||||
import type { UseCase } from '@core/shared/application/UseCase';
|
||||
|
||||
export interface CreatePrizeInput {
|
||||
leagueId: string;
|
||||
|
||||
@@ -10,7 +10,7 @@ import type {
|
||||
DeletePrizeResultDTO,
|
||||
DeletePrizeViewModel,
|
||||
} from '../presenters/IDeletePrizePresenter';
|
||||
import type { UseCase } from '@gridpilot/shared/application/UseCase';
|
||||
import type { UseCase } from '@core/shared/application/UseCase';
|
||||
|
||||
export interface DeletePrizeInput {
|
||||
prizeId: string;
|
||||
|
||||
@@ -10,7 +10,7 @@ import type {
|
||||
GetMembershipFeesResultDTO,
|
||||
GetMembershipFeesViewModel,
|
||||
} from '../presenters/IGetMembershipFeesPresenter';
|
||||
import type { UseCase } from '@gridpilot/shared/application/UseCase';
|
||||
import type { UseCase } from '@core/shared/application/UseCase';
|
||||
|
||||
export interface GetMembershipFeesInput {
|
||||
leagueId: string;
|
||||
|
||||
@@ -11,7 +11,7 @@ import type {
|
||||
GetPaymentsResultDTO,
|
||||
GetPaymentsViewModel,
|
||||
} from '../presenters/IGetPaymentsPresenter';
|
||||
import type { UseCase } from '@gridpilot/shared/application/UseCase';
|
||||
import type { UseCase } from '@core/shared/application/UseCase';
|
||||
|
||||
export interface GetPaymentsInput {
|
||||
leagueId?: string;
|
||||
|
||||
@@ -10,7 +10,7 @@ import type {
|
||||
GetPrizesResultDTO,
|
||||
GetPrizesViewModel,
|
||||
} from '../presenters/IGetPrizesPresenter';
|
||||
import type { UseCase } from '@gridpilot/shared/application/UseCase';
|
||||
import type { UseCase } from '@core/shared/application/UseCase';
|
||||
|
||||
export interface GetPrizesInput {
|
||||
leagueId: string;
|
||||
|
||||
@@ -11,7 +11,7 @@ import type {
|
||||
GetWalletResultDTO,
|
||||
GetWalletViewModel,
|
||||
} from '../presenters/IGetWalletPresenter';
|
||||
import type { UseCase } from '@gridpilot/shared/application/UseCase';
|
||||
import type { UseCase } from '@core/shared/application/UseCase';
|
||||
|
||||
export interface GetWalletInput {
|
||||
leagueId: string;
|
||||
|
||||
@@ -11,7 +11,7 @@ import type {
|
||||
ProcessWalletTransactionResultDTO,
|
||||
ProcessWalletTransactionViewModel,
|
||||
} from '../presenters/IProcessWalletTransactionPresenter';
|
||||
import type { UseCase } from '@gridpilot/shared/application/UseCase';
|
||||
import type { UseCase } from '@core/shared/application/UseCase';
|
||||
|
||||
export interface ProcessWalletTransactionInput {
|
||||
leagueId: string;
|
||||
|
||||
@@ -11,7 +11,7 @@ import type {
|
||||
UpdateMemberPaymentResultDTO,
|
||||
UpdateMemberPaymentViewModel,
|
||||
} from '../presenters/IUpdateMemberPaymentPresenter';
|
||||
import type { UseCase } from '@gridpilot/shared/application/UseCase';
|
||||
import type { UseCase } from '@core/shared/application/UseCase';
|
||||
|
||||
const PLATFORM_FEE_RATE = 0.10;
|
||||
|
||||
|
||||
@@ -11,7 +11,7 @@ import type {
|
||||
UpdatePaymentStatusResultDTO,
|
||||
UpdatePaymentStatusViewModel,
|
||||
} from '../presenters/IUpdatePaymentStatusPresenter';
|
||||
import type { UseCase } from '@gridpilot/shared/application/UseCase';
|
||||
import type { UseCase } from '@core/shared/application/UseCase';
|
||||
|
||||
export interface UpdatePaymentStatusInput {
|
||||
paymentId: string;
|
||||
|
||||
@@ -11,7 +11,7 @@ import type {
|
||||
UpsertMembershipFeeResultDTO,
|
||||
UpsertMembershipFeeViewModel,
|
||||
} from '../presenters/IUpsertMembershipFeePresenter';
|
||||
import type { UseCase } from '@gridpilot/shared/application/UseCase';
|
||||
import type { UseCase } from '@core/shared/application/UseCase';
|
||||
|
||||
export interface UpsertMembershipFeeInput {
|
||||
leagueId: string;
|
||||
|
||||
Reference in New Issue
Block a user