Adds feed type to Feed struct and table schema
This commit is contained in:
parent
efff6edf0e
commit
4f86ab9cb0
2 changed files with 19 additions and 4 deletions
|
|
@ -1,8 +1,16 @@
|
|||
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" validate:"required"`
|
||||
ID int64 `json:"id"`
|
||||
Name string `json:"name"`
|
||||
Url string `json:"url" validate:"required,url"`
|
||||
UserID string `json:"userId" validate:"required"`
|
||||
Type FeedType `json:"type"`
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue