feat(backend): implement step 4 — EmailContext and EmailReaderService

This commit is contained in:
2026-03-26 18:44:43 -03:00
parent 58b9907c44
commit 81b356af67
2 changed files with 131 additions and 0 deletions

View File

@@ -0,0 +1,14 @@
package com.condado.newsletter.model
import java.time.LocalDateTime
/**
* A snapshot of a single email read from the shared company IMAP inbox.
* Used as context when building the AI prompt.
*/
data class EmailContext(
val from: String,
val subject: String,
val body: String,
val receivedAt: LocalDateTime
)