Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Claims ¶
type Claims struct { Email string `json:"Email"` Id string `json:"Id"` jwt.StandardClaims }
type LoginRequest ¶
type Organisation ¶
type Organisation struct { gorm.Model ID uuid.UUID `json:"ID" gorm:"type:char(36);primary_key;"` Name string `json:"Name"` IconHash *string `json:"IconHash"` Description string `json:"Description"` Moderators []*User `json:"Moderators" gorm:"many2many:organisation_moderators;"` OwnerID string `json:"Owner"` }
func (*Organisation) BeforeCreate ¶
func (organisation *Organisation) BeforeCreate(tx *gorm.DB) (err error)
type TokenResponse ¶
type User ¶
type User struct { gorm.Model ID uuid.UUID `json:"ID" gorm:"type:char(36);primary_key;"` Email string `json:"Email"` Password string `json:"Password"` OrganisationMods []*Organisation `json:"Organisations" gorm:"many2many:organisation_moderators;"` OwnedOrganisations []*Organisation `json:"OwnedOrganisations" gorm:"foreignKey:OwnerID;"` }
Click to show internal directories.
Click to hide internal directories.