Basisimplementierung für Mailversandt.
This commit is contained in:
parent
8505e9217a
commit
531b9cb10e
14 changed files with 520 additions and 41 deletions
|
|
@ -1,4 +1,4 @@
|
|||
from pydantic import BaseModel, Field
|
||||
from pydantic import BaseModel, Field, EmailStr
|
||||
from typing import Optional, List
|
||||
from uuid import UUID
|
||||
|
||||
|
|
@ -22,4 +22,17 @@ class JobInfo(BaseModel):
|
|||
status: str
|
||||
domain: str
|
||||
payload: dict | None
|
||||
tasks: List[TaskInfo]
|
||||
tasks: List[TaskInfo]
|
||||
|
||||
class SendTestMailRequest(BaseModel):
|
||||
mailbox_id: UUID
|
||||
recipients: List[EmailStr]
|
||||
subject: str = Field(max_length=998)
|
||||
body_text: Optional[str] = None
|
||||
body_html: Optional[str] = None
|
||||
# Anhänge könnt ihr später ergänzen
|
||||
|
||||
class UploadMailResponse(BaseModel):
|
||||
id: UUID
|
||||
message_id: Optional[str] = None
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue