user.go 282 B

123456789101112
  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. }