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