mirror of
https://github.com/idanoo/autobrr
synced 2025-07-23 08:49:13 +00:00
12 lines
237 B
Go
12 lines
237 B
Go
package domain
|
|
|
|
type UserRepo interface {
|
|
FindByUsername(username string) (*User, error)
|
|
Store(user User) error
|
|
}
|
|
|
|
type User struct {
|
|
ID int `json:"id"`
|
|
Username string `json:"username"`
|
|
Password string `json:"password"`
|
|
}
|