本文整理汇总了Golang中git/masontest/com/branches/goserver/workers/revel.Validation.Check方法的典型用法代码示例。如果您正苦于以下问题:Golang Validation.Check方法的具体用法?Golang Validation.Check怎么用?Golang Validation.Check使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类git/masontest/com/branches/goserver/workers/revel.Validation
的用法示例。
在下文中一共展示了Validation.Check方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Golang代码示例。
示例1: Validate
func (m *Attach) Validate(v *revel.Validation) {
v.Check(m.Size, revel.ValidRequired())
v.Check(m.Extention, revel.ValidRequired())
v.Check(m.Name, revel.ValidRequired())
// v.Check(m.Md5, revel.ValidRequired())
v.Check(m.SavePath, revel.ValidRequired())
v.Check(m.SaveName, revel.ValidRequired())
}
示例2: Validate
func (m *Topic) Validate(v *revel.Validation) {
v.Check(m.UserId, revel.ValidRequired())
v.Check(m.Content, revel.ValidRequired())
}
示例3: Validate
func (m *Like) Validate(v *revel.Validation) {
v.Check(m.UserId, revel.ValidRequired())
v.Check(m.Type, revel.ValidRequired())
v.Check(m.TypeId, revel.ValidRequired())
}
示例4: Validate
func (m *TopicHasKeyword) Validate(v *revel.Validation) {
v.Check(m.TopicId, revel.ValidRequired())
v.Check(m.KeywordId, revel.ValidRequired())
}
示例5: Validate
func (m *UserLoadedMaxTopic) Validate(v *revel.Validation) {
v.Check(m.UserId, revel.ValidRequired())
v.Check(m.MaxTopicId, revel.ValidRequired())
}
示例6: Validate
func (m *Label) Validate(v *revel.Validation) {
v.Check(m.Name, revel.ValidRequired())
}
示例7: Validate
func (m *Notification) Validate(v *revel.Validation) {
v.Check(m.NoticeTo, revel.ValidRequired())
v.Check(m.Message, revel.ValidRequired())
}
示例8: Validate
func (m *Subscribe) Validate(v *revel.Validation) {
v.Check(m.UserId, revel.ValidRequired())
v.Check(m.Type, revel.ValidRequired())
v.Check(m.TypeId, revel.ValidRequired())
v.Check(m.Created, revel.ValidRequired())
}
示例9: Validate
func (m *User) Validate(v *revel.Validation) {
v.Check(m.Username, revel.ValidRequired(), revel.ValidMaxSize(25))
v.Check(m.Password, revel.ValidRequired(), revel.ValidMinSize(6))
}
示例10: Validate
func (m *UserBlocked) Validate(v *revel.Validation) {
v.Check(m.UserId, revel.ValidRequired())
v.Check(m.Blocked, revel.ValidRequired())
v.Check(m.Created, revel.ValidRequired())
}
示例11: Validate
func (m *Comment) Validate(v *revel.Validation) {
v.Check(m.TopicId, revel.ValidRequired())
v.Check(m.Creator, revel.ValidRequired())
v.Check(m.Content, revel.ValidRequired())
}
示例12: Validate
func (m *Profile) Validate(v *revel.Validation) {
v.Check(m.Id, revel.ValidRequired())
v.Check(m.Gender, revel.ValidRequired())
v.Check(m.Age, revel.ValidRequired())
v.Check(m.Lllness, revel.ValidRequired())
}
示例13: Validate
func (m *UserLikeKeywordRate) Validate(v *revel.Validation) {
v.Check(m.UserId, revel.ValidRequired())
v.Check(m.KeywordId, revel.ValidRequired())
v.Check(m.Rate, revel.ValidRequired())
}
示例14: Validate
func (m *Session) Validate(v *revel.Validation) {
v.Check(m.Session, revel.ValidRequired())
}
示例15: Validate
func (m *UnwantWord) Validate(v *revel.Validation) {
v.Check(m.Word, revel.ValidRequired())
v.Check(m.Creator, revel.ValidRequired())
v.Check(m.Created, revel.ValidRequired())
}