Documentation ¶
Index ¶
- func GetDefaultMsg(values map[string][]string) string
- func GetValidator(c *gin.Context, validator *Validator, since string) *govalidator.Validator
- func ValiUserLogin(c *gin.Context, validatorName string) (string, bool)
- type LoginValidator
- type Validator
- func (validator *Validator) GetCurrSence() string
- func (validator *Validator) GetMessages() map[string][]string
- func (validator *Validator) GetRules() map[string][]string
- func (validator *Validator) GetSenceFields(sence string) []string
- func (validator *Validator) MatchSence(datas map[string][]string) map[string][]string
- func (validator *Validator) SetSence(sence string)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetDefaultMsg ¶
func GetValidator ¶
Types ¶
type LoginValidator ¶
type LoginValidator struct {
Validator
}
type Validator ¶
type Validator struct { Sence map[string][]string Rules map[string][]string Messages map[string][]string // contains filtered or unexported fields }
func NewLoginValidator ¶
func NewLoginValidator() *Validator
func ValiFactory ¶
func (*Validator) GetCurrSence ¶
func (*Validator) GetMessages ¶
func (*Validator) GetSenceFields ¶
func (*Validator) MatchSence ¶
Click to show internal directories.
Click to hide internal directories.