Beispiel #1
0
func (f *CommentForm) LoadData(r *potato.Request) {
	f.Content, _ = r.String("content")
	f.State, _ = r.Int("state")
}
Beispiel #2
0
func (f *UserForm) LoadData(r *potato.Request) {
	f.Email, _ = r.String("email")
	f.Passwd, _ = r.String("passwd")
	f.Name, _ = r.String("name")
}
Beispiel #3
0
func (f *TopicForm) LoadData(r *potato.Request) {
	f.Title, _ = r.String("title")
	f.Content, _ = r.String("content")
	f.State, _ = r.Int("state")
}