refactor: update GetAll method to return NewsResponse and rename clicked to views

This commit is contained in:
Ardeman
2025-03-24 15:24:52 +08:00
parent 09d9c4efb8
commit 49dc0e4a7b
7 changed files with 16 additions and 13 deletions
+1 -1
View File
@@ -15,7 +15,7 @@ func GetAll(
) {
router.Get("/news", func(w http.ResponseWriter, r *http.Request) {
var (
news []newsdomain.News
news []newsdomain.NewsResponse
err error
)
ctx := r.Context()