mirror of
https://github.com/nkanaev/yarr.git
synced 2025-09-13 09:55:36 +00:00
refactoring
This commit is contained in:
@@ -51,7 +51,7 @@ type FeverItem struct {
|
||||
Url string `json:"url"`
|
||||
IsSaved int `json:"is_saved"`
|
||||
IsRead int `json:"is_read"`
|
||||
CreatedOnTime int64 `json:"created_on_time"`
|
||||
CreatedAt int64 `json:"created_on_time"`
|
||||
}
|
||||
|
||||
type FeverFavicon struct {
|
||||
@@ -241,7 +241,7 @@ func FeverItemsHandler(rw http.ResponseWriter, req *http.Request) {
|
||||
}
|
||||
time := int64(0)
|
||||
if date != nil {
|
||||
time = date.UnixNano() / 1000_000_000
|
||||
time = date.Unix()
|
||||
}
|
||||
|
||||
isSaved := 0
|
||||
@@ -261,7 +261,7 @@ func FeverItemsHandler(rw http.ResponseWriter, req *http.Request) {
|
||||
Url: item.Link,
|
||||
IsSaved: isSaved,
|
||||
IsRead: isRead,
|
||||
CreatedOnTime: time,
|
||||
CreatedAt: time,
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user