upd: investasi

Deskripsi:
- update api saham saya
- update api transaksi investasi

No Issues
This commit is contained in:
amel
2024-12-18 15:17:14 +08:00
parent 6bb690e0b5
commit c1931cf614
10 changed files with 445 additions and 5 deletions

View File

@@ -11,4 +11,9 @@ export const apiGetOneInvestasiById = async (path: string) => {
export const apiGetAllInvestasi = async (path?: string) => {
const response = await fetch(`/api/new/investasi${(path) ? path : ''}`)
return await response.json().catch(() => null)
}
export const apiGetAllSahamSaya = async (path?: string) => {
const response = await fetch(`/api/new/investasi/invoice${(path) ? path : ''}`)
return await response.json().catch(() => null)
}

View File

@@ -23,4 +23,15 @@ export interface IDataInvestasiBursa {
targetDana: string
pencarianInvestor: string
updatedAt: Date
}
export interface IDataSahamSaya {
id: string
nominal: string
lembarTerbeli: string
statusInvoiceId: string
createdAt: Date
statusInvoice: string
title: string
progress: string
}