Removes json annotated model structs

This commit is contained in:
Dennis Schoepf 2024-08-30 14:59:54 +02:00
parent e903e9e3a4
commit 489d3b8846
3 changed files with 0 additions and 36 deletions

View file

@ -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"`
}

View file

@ -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"`
}

View file

@ -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"`
}