upd: edit investasi

Deskripsi:
- api master pada edit investasu

No Issues
This commit is contained in:
amel
2024-12-16 13:49:57 +08:00
parent 99480604e4
commit df6dcd6eb3
9 changed files with 489 additions and 20 deletions

View File

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

View File

@@ -0,0 +1,15 @@
export interface IDataInvestasi {
id: string
title: string
targetDana: string
hargaLembar: string
totalLembar: string
roi: string
countDown: string
catatan: string
sisaLembar: string
imageId: string
masterPencarianInvestorId: string
masterPeriodeDevidenId: string
masterPembagianDevidenId: string
}