lens @ d5261d7f121985f13f9d19e9efd5c2ae3d4b5609

 1package auth
 2
 3import "context"
 4
 5type (
 6	// TODO: move to user later
 7	User struct {
 8		ID       uint
 9		Username string
10		Name     string
11	}
12
13	// TODO: move to user later
14	UpdateUser struct {
15		Username string
16		Name     string
17	}
18
19	// TODO: move to user later
20	CreateUser struct {
21		Username string
22		Name     string
23		Password []byte
24	}
25
26	Repository interface {
27		GetIDByUsername(ctx context.Context, username string) (uint, error)
28		GetPassword(ctx context.Context, id uint) ([]byte, error)
29		// TODO: move to user later
30		Create(ctx context.Context, createUser *CreateUser) (uint, error)
31	}
32)