basic feed fetcher

This commit is contained in:
Nazar Kanaev
2020-07-03 23:13:29 +01:00
parent be1804c7d0
commit 9cea82005b
4 changed files with 85 additions and 9 deletions

View File

@@ -1,6 +1,9 @@
package storage
import "fmt"
import (
"fmt"
"time"
)
type ItemStatus int
@@ -18,8 +21,8 @@ type Item struct {
Description string
Content string
Author string
Date int64
DateUpdated int64
Date *time.Time
DateUpdated *time.Time
Status ItemStatus
Image string
}

View File

@@ -35,8 +35,8 @@ create table if not exists items (
description text,
content text,
author text,
date integer,
date_updated integer,
date datetime,
date_updated datetime,
status integer,
image text
);