user.go 353 B

12345678910111213
  1. package interfaces
  2. import (
  3. "context"
  4. "git.dmitriygnatenko.ru/dima/dmitriygnatenko-v2/internal/models"
  5. )
  6. type UserRepository interface {
  7. Get(ctx context.Context, username string) (*models.User, error)
  8. Add(ctx context.Context, username string, password string) (int, error)
  9. UpdatePassword(ctx context.Context, id int, newPassword string) error
  10. }