b87e860444
Signed-off-by: Michael Mayer <michael@lastzero.net>
15 lines
442 B
Go
15 lines
442 B
Go
package form
|
|
|
|
// Feedback represents support requests / customer feedback.
|
|
type Feedback struct {
|
|
Category string `json:"Category"`
|
|
Message string `json:"Message"`
|
|
UserName string `json:"UserName"`
|
|
UserEmail string `json:"UserEmail"`
|
|
UserAgent string `json:"UserAgent"`
|
|
UserLocales string `json:"UserLocales"`
|
|
}
|
|
|
|
func (f Feedback) Empty() bool {
|
|
return len(f.Category) < 1 || len(f.Message) < 3 || len(f.UserEmail) < 5
|
|
}
|