wip
This commit is contained in:
11
mangezmieux-backend/internal/users/sql/dao.go
Normal file
11
mangezmieux-backend/internal/users/sql/dao.go
Normal file
@@ -0,0 +1,11 @@
|
||||
package sql
|
||||
|
||||
import "mangezmieux-backend/internal/users/model"
|
||||
|
||||
type Dao interface {
|
||||
FindByMail(mail string) (*model.User, error)
|
||||
Create(user *model.User) error
|
||||
Delete(mail string) error
|
||||
FindByMailAndPassword(mail string, password string) (*model.User, error)
|
||||
FindByID(id string) (*model.User, error)
|
||||
}
|
||||
Reference in New Issue
Block a user