Added repo for dealing with DB and Hashing password to register/login endpoints

This commit is contained in:
PB
2025-10-21 18:45:07 +02:00
parent 8469bd3f33
commit 748459c788
7 changed files with 111 additions and 18 deletions

View File

@@ -0,0 +1,10 @@
package repository
import entity "git.ego.freeddns.org/egommerce/api-entities/identity/entity"
type UserRepositoryInterface interface {
GetByID(id string) (*entity.User, error)
Create(user *entity.User) (*entity.User, error)
Update(user *entity.User) (*entity.User, error)
Delete(id int64) (bool, error)
}