Adapts models
This commit is contained in:
parent
62f3f6ba8a
commit
96fc234068
3 changed files with 13 additions and 13 deletions
|
|
@ -4,10 +4,10 @@ import "time"
|
|||
|
||||
// TODO: Tag for article?
|
||||
type Article struct {
|
||||
ID int64
|
||||
Name string
|
||||
Url string
|
||||
Read bool
|
||||
ReadAt time.Time
|
||||
FeedID *int64
|
||||
ID int64 `json:"id"`
|
||||
Name string `json:"name"`
|
||||
Url string `json:"url" validate:"required,url"`
|
||||
Read bool `json:"read"`
|
||||
ReadAt time.Time `json:"readAt"`
|
||||
FeedID *int64 `json:"feedId"`
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue