upd: investasi
Deskripsi: - update api saham saya - update api transaksi investasi No Issues
This commit is contained in:
@@ -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)
|
||||
}
|
||||
@@ -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
|
||||
}
|
||||
Reference in New Issue
Block a user