Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var AllRole = []Role{ RoleAdmin, }
Functions ¶
This section is empty.
Types ¶
type Pagination ¶
type Pagination interface {
IsPagination()
}
type PasswordReset ¶
type PasswordResetRequest ¶
type PasswordResetRequest struct {
Email string `json:"Email"`
}
type Role ¶
type Role string
const (
RoleAdmin Role = "ADMIN"
)
func (Role) MarshalGQL ¶
func (*Role) UnmarshalGQL ¶
type TeamFilter ¶
type TeamMutation ¶
type TeamResult ¶
type TeamResult struct { Result []*Team `json:"Result"` TotelPages int `json:"TotelPages"` TotalRows int `json:"TotalRows"` }
func (TeamResult) IsPagination ¶
func (TeamResult) IsPagination()
type User ¶
type User struct { ID int `json:"ID" gorm:"primaryKey"` FirstName string `json:"FirstName"` LastName string `json:"LastName"` Email string `json:"Email" gorm:"uniqueIndex"` Role Role `json:"Role" sql:"type:ENUM('ADMIN')"` Hash string `` Verified bool `` Token string `` // Token for account verificationand password resets Teams []*Team `json:"Teams" gorm:"many2many:team_users;"` CreatedAt int `json:"CreatedAt"` UpdatedAt int `json:"UpdatedAt"` DeletedAt soft_delete.DeletedAt `` }
type UserFilter ¶
type UserMutation ¶
type UserResult ¶
type UserResult struct { Result []*User `json:"Result"` TotelPages int `json:"TotelPages"` TotalRows int `json:"TotalRows"` }
func (UserResult) IsPagination ¶
func (UserResult) IsPagination()
Click to show internal directories.
Click to hide internal directories.