Initial commit: Open sourcing all of the Maple Open Technologies code.
This commit is contained in:
commit
755d54a99d
2010 changed files with 448675 additions and 0 deletions
10
native/desktop/maplefile/internal/domain/user/interface.go
Normal file
10
native/desktop/maplefile/internal/domain/user/interface.go
Normal file
|
|
@ -0,0 +1,10 @@
|
|||
package user
|
||||
|
||||
// Repository defines the interface for user data persistence
|
||||
type Repository interface {
|
||||
Save(user *User) error
|
||||
GetByID(id string) (*User, error)
|
||||
GetByEmail(email string) (*User, error)
|
||||
Delete(id string) error
|
||||
Exists(id string) (bool, error)
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue