add user crud interface in impl

This commit is contained in:
2025-12-18 10:49:56 +02:00
parent 603f007c63
commit 53761db1e0
5 changed files with 190 additions and 0 deletions

9
internal/user/store.go Normal file
View File

@@ -0,0 +1,9 @@
package user
type UserCRUD interface {
Create(user *User) error
GetByID(id int64) (*User, error)
GetByUsername(username string) (*User, error)
Update(user *User) error
Delete(id int64) error
}