Merge branch 'fix/marketing' into 'development'

[FIX][BE]: add field name to document

See merge request mbugroup/lti-api!515
This commit is contained in:
Giovanni Gabriel Septriadi
2026-05-07 09:05:05 +00:00
@@ -86,6 +86,7 @@ type KandangGroupDTO struct {
type DocumentDTO struct {
ID uint64 `json:"id"`
Path string `json:"path"`
Name string `json:"name"`
}
// === MAPPERS ===
@@ -184,6 +185,7 @@ func ToExpenseDetailDTO(e *entity.Expense) ExpenseDetailDTO {
documents = append(documents, DocumentDTO{
ID: uint64(doc.Id),
Path: doc.Path,
Name: doc.Name,
})
}
@@ -191,6 +193,7 @@ func ToExpenseDetailDTO(e *entity.Expense) ExpenseDetailDTO {
realizationDocs = append(realizationDocs, DocumentDTO{
ID: uint64(doc.Id),
Path: doc.Path,
Name: doc.Name,
})
}