wip: add api auth and /resume endpoint
This commit is contained in:
parent
22e2f6005f
commit
aaec8ec08d
23 changed files with 1244 additions and 271 deletions
19
internal/repo/repos.go
Normal file
19
internal/repo/repos.go
Normal file
|
|
@ -0,0 +1,19 @@
|
|||
package repo
|
||||
|
||||
import (
|
||||
"git.roboces.dev/catalin/cvvvvv/internal/domain"
|
||||
)
|
||||
|
||||
type Resumes interface {
|
||||
Get() domain.Resume
|
||||
}
|
||||
|
||||
type Repos struct {
|
||||
Resumes
|
||||
}
|
||||
|
||||
func NewRepos(db domain.Resume) *Repos {
|
||||
return &Repos{
|
||||
Resumes: NewResumesRepo(db),
|
||||
}
|
||||
}
|
||||
19
internal/repo/resumes.go
Normal file
19
internal/repo/resumes.go
Normal file
|
|
@ -0,0 +1,19 @@
|
|||
package repo
|
||||
|
||||
import (
|
||||
"git.roboces.dev/catalin/cvvvvv/internal/domain"
|
||||
)
|
||||
|
||||
type ResumesRepo struct {
|
||||
db domain.Resume
|
||||
}
|
||||
|
||||
func NewResumesRepo(db domain.Resume) *ResumesRepo {
|
||||
return &ResumesRepo{
|
||||
db: db,
|
||||
}
|
||||
}
|
||||
|
||||
func (r *ResumesRepo) Get() domain.Resume {
|
||||
return r.db
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue