package user import "context" type ( User struct { ID uint Username string Name string IsAdmin bool Path string } UpdateUser struct { Username string Name string Password *string } CreateUser struct { Username string Name string Password []byte IsAdmin bool Path string } Repository interface { List(ctx context.Context) ([]*User, error) Create(ctx context.Context, createUser *CreateUser) (uint, error) Update(ctx context.Context, id uint, updateUser *UpdateUser) error Any(ctx context.Context) (bool, error) } )