Removes json annotated model structs
This commit is contained in:
parent
e903e9e3a4
commit
489d3b8846
3 changed files with 0 additions and 36 deletions
|
|
@ -1,13 +0,0 @@
|
||||||
package model
|
|
||||||
|
|
||||||
import "time"
|
|
||||||
|
|
||||||
// TODO: Tag for article?
|
|
||||||
type Article struct {
|
|
||||||
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"`
|
|
||||||
}
|
|
||||||
|
|
@ -1,16 +0,0 @@
|
||||||
package model
|
|
||||||
|
|
||||||
type FeedType int
|
|
||||||
|
|
||||||
const (
|
|
||||||
Rss FeedType = iota
|
|
||||||
Youtube
|
|
||||||
)
|
|
||||||
|
|
||||||
type Feed struct {
|
|
||||||
ID int64 `json:"id"`
|
|
||||||
Name string `json:"name"`
|
|
||||||
Url string `json:"url" validate:"required,url"`
|
|
||||||
UserID string `json:"userId"`
|
|
||||||
Type FeedType `json:"type"`
|
|
||||||
}
|
|
||||||
|
|
@ -1,7 +0,0 @@
|
||||||
package model
|
|
||||||
|
|
||||||
type User struct {
|
|
||||||
ID string `json:"id"`
|
|
||||||
FirstName string `json:"firstName" validate:"required"`
|
|
||||||
Email string `json:"email" validate:"required,email"`
|
|
||||||
}
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue