miniflux/ui/form/category.go

23 lines
525 B
Go
Raw Normal View History

// SPDX-FileCopyrightText: Copyright The Miniflux Authors. All rights reserved.
// SPDX-License-Identifier: Apache-2.0
2017-11-20 06:10:04 +01:00
2018-08-25 06:51:50 +02:00
package form // import "miniflux.app/ui/form"
2017-11-20 06:10:04 +01:00
import (
"net/http"
)
// CategoryForm represents a feed form in the UI
type CategoryForm struct {
Title string
HideGlobally string
2017-11-20 06:10:04 +01:00
}
2017-11-28 06:30:04 +01:00
// NewCategoryForm returns a new CategoryForm.
2017-11-20 06:10:04 +01:00
func NewCategoryForm(r *http.Request) *CategoryForm {
return &CategoryForm{
Title: r.FormValue("title"),
HideGlobally: r.FormValue("hide_globally"),
2017-11-20 06:10:04 +01:00
}
}