Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var App core.App
Functions ¶
Types ¶
type ResetRequest ¶
type User ¶
type User struct { gorm.Model Email string `json:"email" gorm:"unique;not null" valid:"email,required,unique~email: Email not unique"` Password string `` /* 170-byte string literal not displayed */ RePassword string `gorm:"-" json:"repassword" valid:"ascii,required,passmatch~repassword: Passwords do not match"` Role string `json:"role" valid:"in(candidate|user|admin)"` Status string `json:"status" valid:"in(active|blocked|draft)"` Token string `json:"token"` Salt string `json:"-"` CheckToken string `json:"-"` CallBackUrl string `gorm:"-"` Profile Profile `json:"profile"` ProfileID int `json:"profileID"` Keywords []UserKeyword `json:"keywords" gorm:"many2many:userkeywords"` }
type UserKeyword ¶
type UserKeywordData ¶
type UserKeywordData struct { Errors []core.ErrorMsg `json:"errors"` Data UserKeyword `json:"data"` }
func (*UserKeywordData) Read ¶
func (u *UserKeywordData) Read(r *http.Response)
type UserKeywordsData ¶
type UserKeywordsData struct { Errors []core.ErrorMsg `json:"errors"` Data []UserKeyword `json:"data"` }
func (*UserKeywordsData) Read ¶
func (u *UserKeywordsData) Read(r *http.Response)
type UserUpdate ¶
type UserUpdate struct { Password string `` /* 161-byte string literal not displayed */ RePassword string `json:"repassword" valid:"ascii,passmatch~repassword: Passwords do not match"` Role string `json:"role"` Salt string `json:"-"` Status string `json:"status" valid:"required,in(active|blocked|draft)"` Profile Profile `json:"profile"` }
Click to show internal directories.
Click to hide internal directories.