get personal interface + provider + dto

This commit is contained in:
nquidox 2026-04-01 17:49:18 +03:00
parent e6da13e657
commit c7c67a641e
3 changed files with 47 additions and 7 deletions

View file

@ -8,3 +8,7 @@ type MerchProvider interface {
GetTasks(ctx context.Context) ([]Task, error)
InsertPrices(ctx context.Context, rawPrices []Result) error
}
type AuthDataProvider interface {
GetPersonalData(ctx context.Context, userUuid string) (*PersonalDTO, error)
}

View file

@ -10,3 +10,11 @@ type Result struct {
OriginName string
Price int32
}
type PersonalDTO struct {
Uuid string
Email string
Username string
Name string
Surname string
}