feat: add daily report list preview

This commit is contained in:
richjohnrambo
2026-08-27 10:08:03 +08:00
parent a0fc553c6f
commit b2e5097708
3 changed files with 39 additions and 2 deletions
+1
View File
@@ -7168,6 +7168,7 @@ func dailyReportListPayload(report types.DailyReport) map[string]any {
"report_id": report.ReportID,
"author_id": report.AuthorID.UserId(),
"report_date": report.ReportDate.Format("2006-01-02"),
"content_short": monthlyReportPreview(report.Content),
"status": report.Status,
"draft_updated_at": report.UpdatedAt.UTC().Format(time.RFC3339Nano),
"read_state": report.ReadState,