mirror of
https://github.com/nkanaev/yarr.git
synced 2025-05-24 00:33:14 +00:00
refactoring
This commit is contained in:
parent
e4cc96ef09
commit
288fa3979a
@ -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,
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user