Added: downloading and returning wikipedia articles
This commit is contained in:
15
api/article/response.go
Normal file
15
api/article/response.go
Normal file
@@ -0,0 +1,15 @@
|
||||
package article
|
||||
|
||||
import "scrap/api/httpio"
|
||||
|
||||
type ArticleResponse struct {
|
||||
Uuid string `json:"uuid"`
|
||||
Title string `json:"title"`
|
||||
Content string `json:"content"`
|
||||
}
|
||||
|
||||
func ArticleQueryResponse(articles []ArticleResponse) httpio.ResponseIO {
|
||||
return httpio.ResponseIO{
|
||||
"articles": articles,
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user