lens @ 57b41ad766b3c4505672c12f058f10c7a132dd5b

 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)