get personal interface + provider + dto
This commit is contained in:
parent
e6da13e657
commit
c7c67a641e
3 changed files with 47 additions and 7 deletions
|
|
@ -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)
|
||||
}
|
||||
|
|
|
|||
|
|
@ -10,3 +10,11 @@ type Result struct {
|
|||
OriginName string
|
||||
Price int32
|
||||
}
|
||||
|
||||
type PersonalDTO struct {
|
||||
Uuid string
|
||||
Email string
|
||||
Username string
|
||||
Name string
|
||||
Surname string
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue