30 lines
628 B
Go
30 lines
628 B
Go
package models
|
|
|
|
type User struct {
|
|
BaseModel
|
|
Username string `json:"username"`
|
|
Password string `json:"password"`
|
|
Email string `json:"email"`
|
|
Avatar string `json:"avatar"`
|
|
IsActive bool `json:"isActive" gorm:"default:false"`
|
|
CompanyID uint `json:"companyId"`
|
|
}
|
|
|
|
type ResetPasswordRequest struct {
|
|
Email string `json:"email"`
|
|
}
|
|
type UpdatePasswordRequest struct {
|
|
Password string `json:"password"`
|
|
Token string `json:"token"`
|
|
}
|
|
|
|
func (User) Update() (bool, error) {
|
|
return false, nil
|
|
}
|
|
func (User) Create() (bool, error) {
|
|
return false, nil
|
|
}
|
|
func (User) Delete() (bool, error) {
|
|
return false, nil
|
|
}
|