16 lines
301 B
Go
16 lines
301 B
Go
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,
|
|
}
|
|
}
|