Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Company ¶
type MotionUser ¶
type MotionUser struct { Id uint64 `json:"id" gorm:"primary_key"` Name string `json:"name,omitempty"` Email string `json:"email" gorm:"unique"` Password string `json:"-"` LastName string `json:"lastName,omitempty"` Birthday time.Time `json:"bithday,omitempty"` LastLogin time.Time `json:"lastLogin,omitempty"` LoginCount uint64 `json:"loginCount"` LoginAttemp uint8 `json:"loginAttemp,omitempty"` BasicSQL }
func (MotionUser) GetId ¶
func (user MotionUser) GetId() interface{}
type Profile ¶
type Profile struct { Id uint64 `json:"id" gorm:"primary_key"` Name string `json:"name"` FamilyName string `json:"familyName"` Age uint8 `json:"age"` Birthday time.Time `json:"birthday"` UserId uint64 `json:"userId"` User MotionUser `json:"user,omitempty" gorm:"foreignkey:Id"` Roles []Role `json:"roles,omitempty" gorm:"many2many:profile_roles;"` BasicSQL }
Click to show internal directories.
Click to hide internal directories.