Documentation ¶
Index ¶
Constants ¶
View Source
const ( ADMIN = 1 USER = 2 )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type File ¶
type FileAccess ¶
type FileAccess struct { ID uint Hash string Secret string FileID uint File File CreatedAt time.Time UpdatedAt time.Time }
func NewFileAccess ¶
func NewFileAccess(hash string, secret string, fileID uint) *FileAccess
func (FileAccess) TableName ¶
func (FileAccess) TableName() string
type User ¶
type User struct { ID uint FirstName string `validate:"required,gte=2,lte=255"` LastName string `validate:"required,gte=2,lte=255"` Email string `validate:"required,email"` Password string `validate:"required,gte=6,lte=255"` RoleID uint `validate:"required"` Role Role CreatedAt time.Time UpdatedAt time.Time }
Click to show internal directories.
Click to hide internal directories.