package
Version:
v0.0.0-...-ae1a546
Opens a new window with list of versions in this module.
Published: Jan 1, 2021
License: MIT
Opens a new window with license information.
Imports: 1
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
type FileUpload struct {
ID string `json:"id"`
File []byte `json:"file"`
Filename string `json:"filename"`
Extension string `json:"extension"`
Size int64 `json:"size"`
ContentType string `json:"contentType"`
UserID string `json:"userId"`
User *User `json:"user"`
}
type Login struct {
Email string `json:"email"`
Password string `json:"password"`
}
type PublicMessage struct {
ID string `json:"id"`
UserID string `json:"userId"`
User *User `json:"user"`
Message string `json:"message"`
CreatedAt time.Time `json:"createdAt"`
}
type Register struct {
Name string `json:"name"`
Email string `json:"email"`
Password string `json:"password"`
DateOfBirth time.Time `json:"dateOfBirth"`
Gender string `json:"gender"`
Address string `json:"address"`
}
type UpdateFile struct {
ID string `json:"id"`
Filename string `json:"filename"`
}
type UpdateUser struct {
Name string `json:"name"`
Email string `json:"email"`
DateOfBirth time.Time `json:"dateOfBirth"`
Gender string `json:"gender"`
Address string `json:"address"`
}
type User struct {
ID string `json:"id"`
Name string `json:"name"`
Email string `json:"email"`
Password string `json:"password"`
DateOfBirth time.Time `json:"dateOfBirth"`
Gender string `json:"gender"`
Address string `json:"address"`
UserRoleID string `json:"userRoleId"`
UserRole *UserRole `json:"userRole"`
Friends []*User `json:"friends" gorm:"many2many:friends;"`
FileUploads []*FileUpload `json:"fileUploads"`
}
type UserRole struct {
ID string `json:"id"`
Name string `json:"name"`
}
Source Files
¶
Click to show internal directories.
Click to hide internal directories.