newsbot-api/domain/responses.go

38 lines
723 B
Go
Raw Normal View History

2024-04-23 22:18:07 -07:00
package domain
type BaseResponse struct {
2024-04-23 22:18:07 -07:00
Message string `json:"message"`
}
type LoginResponse struct {
BaseResponse
Token string `json:"token"`
Type string `json:"type"`
RefreshToken string `json:"refreshToken"`
}
type ArticleResponse struct {
BaseResponse
Payload []ArticleDto `json:"payload"`
}
type ArticleAndSourceModel struct {
Article ArticleDto `json:"article"`
Source SourceDto `json:"source"`
}
type ArticleDetailedResponse struct {
BaseResponse
Payload ArticleAndSourceModel `json:"payload"`
}
type DiscordWebhookResponse struct {
BaseResponse
Payload []DiscordWebHookDto `json:"payload"`
2024-04-28 19:29:49 -07:00
}
type SourcesResponse struct {
BaseResponse
Payload []SourceDto `json:"payload"`
}