fix: transaction
This commit is contained in:
parent
faad1b6ba7
commit
d66e6eed93
|
@ -197,6 +197,29 @@ export class TransactionController {
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Get('history-user/:id')
|
||||||
|
async getHistoryTransactionUserByParam(
|
||||||
|
@Query('page') page: number,
|
||||||
|
@Query('pageSize') pageSize: number,
|
||||||
|
@Query('start') startDate: string,
|
||||||
|
@Query('end') endDate: string,
|
||||||
|
@Param('id', ParseUUIDPipe) id: string,
|
||||||
|
) {
|
||||||
|
const data = await this.transactionService.transactionHistoryByUser(
|
||||||
|
page,
|
||||||
|
id,
|
||||||
|
startDate == 'null' ? null : startDate,
|
||||||
|
endDate == 'null' ? null : endDate,
|
||||||
|
pageSize,
|
||||||
|
);
|
||||||
|
|
||||||
|
return {
|
||||||
|
...data,
|
||||||
|
statusCode: HttpStatus.OK,
|
||||||
|
message: 'success',
|
||||||
|
};
|
||||||
|
}
|
||||||
|
|
||||||
@Put('deposit-return/confirmation/:id/:status')
|
@Put('deposit-return/confirmation/:id/:status')
|
||||||
async confirmDepositReturn(
|
async confirmDepositReturn(
|
||||||
@Param('id', ParseUUIDPipe) id: string,
|
@Param('id', ParseUUIDPipe) id: string,
|
||||||
|
|
Loading…
Reference in New Issue
Block a user