chore: initial commit
This commit is contained in:
25
internal/model/response/post.go
Normal file
25
internal/model/response/post.go
Normal file
@@ -0,0 +1,25 @@
|
||||
package response
|
||||
|
||||
import (
|
||||
"time"
|
||||
)
|
||||
|
||||
type ArchivePost struct {
|
||||
ID int32 `json:"id"`
|
||||
Slug string `json:"slug"`
|
||||
Title string `json:"title"`
|
||||
PublishedAt time.Time `json:"published_at"`
|
||||
PublishedAtDisplay string `json:"published_at_display"`
|
||||
CategoryName string `json:"category_name"`
|
||||
}
|
||||
|
||||
type ArchiveMonth struct {
|
||||
Month int `json:"month"`
|
||||
Archive []ArchivePost `json:"list"`
|
||||
}
|
||||
|
||||
type ArchiveYear struct {
|
||||
Year int `json:"year"`
|
||||
Total int `json:"total"`
|
||||
ArchiveMonth []ArchiveMonth `json:"list"`
|
||||
}
|
||||
Reference in New Issue
Block a user