mirror of
https://github.com/idanoo/autobrr
synced 2025-07-22 16:29:12 +00:00

* feat: add postgres support and refactor * feat: improve releases find * fix: autobrrctl create user
15 lines
343 B
Go
15 lines
343 B
Go
package domain
|
|
|
|
import "context"
|
|
|
|
type UserRepo interface {
|
|
FindByUsername(ctx context.Context, username string) (*User, error)
|
|
Store(ctx context.Context, user User) error
|
|
Update(ctx context.Context, user User) error
|
|
}
|
|
|
|
type User struct {
|
|
ID int `json:"id"`
|
|
Username string `json:"username"`
|
|
Password string `json:"password"`
|
|
}
|