2024-04-23 22:18:07 -07:00
|
|
|
package domain
|
|
|
|
|
2024-04-28 11:41:55 -07:00
|
|
|
|
|
|
|
type BaseResponse struct {
|
2024-04-23 22:18:07 -07:00
|
|
|
Message string `json:"message"`
|
2024-04-28 11:41:55 -07:00
|
|
|
}
|
|
|
|
|
|
|
|
type ArticleResponse struct {
|
|
|
|
BaseResponse
|
|
|
|
Payload []ArticleDto `json:"payload"`
|
|
|
|
}
|
|
|
|
|
|
|
|
type ArticleAndSourceModel struct {
|
|
|
|
Article ArticleDto `json:"article"`
|
|
|
|
Source SourceDto `json:"source"`
|
|
|
|
}
|
|
|
|
|
2024-04-28 12:32:51 -07:00
|
|
|
type ArticleDetailedResponse struct {
|
2024-04-28 11:41:55 -07:00
|
|
|
BaseResponse
|
|
|
|
Payload ArticleAndSourceModel `json:"payload"`
|
|
|
|
}
|
|
|
|
|
|
|
|
type DiscordWebhookResponse struct {
|
|
|
|
BaseResponse
|
|
|
|
Payload []DiscordWebHookDto `json:"payload"`
|
2024-04-23 22:18:07 -07:00
|
|
|
}
|