upd: edit investasi
Deskripsi: - api master pada edit investasu No Issues
This commit is contained in:
@@ -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)
|
||||
}
|
||||
15
src/app_modules/investasi/_lib/type_investasi.ts
Normal file
15
src/app_modules/investasi/_lib/type_investasi.ts
Normal 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
|
||||
}
|
||||
Reference in New Issue
Block a user