switch to the new router

This commit is contained in:
Nazar Kanaev 2021-03-16 21:49:35 +00:00
parent e53265472f
commit 1a490a8e7a
4 changed files with 196 additions and 260 deletions

21
src/server/forms.go Normal file
View file

@ -0,0 +1,21 @@
package server
import "github.com/nkanaev/yarr/src/storage"
type ItemUpdateForm struct {
Status *storage.ItemStatus `json:"status,omitempty"`
}
type FolderCreateForm struct {
Title string `json:"title"`
}
type FolderUpdateForm struct {
Title *string `json:"title,omitempty"`
IsExpanded *bool `json:"is_expanded,omitempty"`
}
type FeedCreateForm struct {
Url string `json:"url"`
FolderID *int64 `json:"folder_id,omitempty"`
}