pink_fox/application/inner/repositories/repositories.go

22 lines
424 B
Go

package repositories
import (
"pink_fox/packages/fw"
"time"
)
type User struct {
ID int64
Email string
Password string
Token string
EmailConfirmed bool
CreatedAt time.Time
UpdatedAt time.Time
}
type UserRepository interface {
CreateNewUser(email, password string, emailConfirm bool) (id int64, err fw.Error)
GetByID(id int64) (user *User, ok bool, err fw.Error)
}