39 lines
756 B
Go
39 lines
756 B
Go
package domain
|
|
|
|
type BaseResponse struct {
|
|
Message string `json:"message"`
|
|
IsError bool `json:"isError"`
|
|
}
|
|
|
|
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"`
|
|
}
|
|
|
|
type SourcesResponse struct {
|
|
BaseResponse
|
|
Payload []SourceDto `json:"payload"`
|
|
}
|