Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Group ¶
type Group struct {
ID uint `gorm:"primaryKey" json:"-"`
Groupname string `gorm:"unique" json:"groupname"`
Members []*User `gorm:"many2many:user_groups"`
}
func (Group) MarshalJSON ¶
func (Group) MarshalYAML ¶
func (*Group) UnmarshalJSON ¶
type User ¶
type User struct {
ID uint `gorm:"primaryKey" json:"-"`
Username string `gorm:"unique" json:"username"`
Password password.Password `json:"password"`
StudentId string `json:"studentId"`
Email string `gorm:"unique" json:"email"`
Groups []*Group `gorm:"many2many:user_groups" json:"groups"`
}
func (User) ContainGroup ¶
func (User) VerifyToken ¶
Click to show internal directories.
Click to hide internal directories.