feat: add file location for employee

This commit is contained in:
Methapon Metanipat 2024-09-13 09:16:26 +07:00
parent a93c21cee4
commit e3745c34b2

View file

@ -64,6 +64,11 @@ export const fileLocation = {
img: (employeeId: string, name?: string) => `employee/img-${employeeId}/${name || ""}`,
attachment: (employeeId: string, name?: string) =>
`employee/attachment-${employeeId}/${name || ""}`,
visa: (employeeId: string, visaId?: string) => `employee/visa-${employeeId}/${visaId || ""}`,
passport: (employeeId: string, passportId?: string) =>
`employee/passport-${employeeId}/${passportId || ""}`,
reportInCountry: (employeeId: string, reportId?: string) =>
`employee/report-in-country-${employeeId}/${reportId || ""}`,
},
product: {
img: (productId: string, name?: string) => `product/img-${productId}/${name || ""}`,