add user crud interface in impl
This commit is contained in:
9
internal/user/store.go
Normal file
9
internal/user/store.go
Normal 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
|
||||
}
|
||||
Reference in New Issue
Block a user