Documentation ¶
Index ¶
- func Assign(form interface{}, data map[string]interface{})
- func Bind(model interface{}) flamego.Handler
- type Error
- type ErrorCategory
- type ForgotPassword
- type Login
- type NewQuestion
- type PublishAnswerQuestion
- type RecoverPassword
- type Register
- type UpdateAnswerQuestion
- type UpdateHarassment
- type UpdateProfile
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Error ¶
type Error struct { Category ErrorCategory Error error }
type ErrorCategory ¶
type ErrorCategory string
const ( ErrorCategoryDeserialization ErrorCategory = "deserialization" ErrorCategoryValidation ErrorCategory = "validation" )
type ForgotPassword ¶
type NewQuestion ¶
type PublishAnswerQuestion ¶
type PublishAnswerQuestion struct { Answer string `form:"answer" valid:"required;maxlen:1000" label:"回答内容"` Images []*multipart.FileHeader `form:"images" label:"图片"` }
type RecoverPassword ¶
type Register ¶
type Register struct { Email string `valid:"required;email;maxlen:100" label:"电子邮箱"` Domain string `valid:"required;alphadash;minlen:3;maxlen:20" label:"个性域名"` Name string `valid:"required;maxlen:20" label:"昵称"` Password string `valid:"required;minlen:8;maxlen:30" label:"密码"` RepeatPassword string `valid:"required;equal:Password" label:"重复密码"` Recaptcha string `` /* 129-byte string literal not displayed */ }
type UpdateAnswerQuestion ¶
type UpdateAnswerQuestion struct { Answer string `form:"answer" valid:"required;maxlen:1000" label:"回答内容"` Images []*multipart.FileHeader `form:"images" label:"图片"` }
type UpdateHarassment ¶
type UpdateHarassment struct {
RegisterOnly string `label:"仅允许注册用户"`
}
Click to show internal directories.
Click to hide internal directories.