19 lines
358 B
Go
19 lines
358 B
Go
package staffrepository
|
|
|
|
import (
|
|
"github.com/ardeman/project-legalgo-go/database"
|
|
staffmodel "github.com/ardeman/project-legalgo-go/database/staff"
|
|
)
|
|
|
|
type StaffRepository struct {
|
|
DB *database.DB
|
|
}
|
|
|
|
type StaffInterface interface {
|
|
GetStaff(string) (*staffmodel.Staff, error)
|
|
}
|
|
|
|
func New(db *database.DB) StaffInterface {
|
|
return &StaffRepository{db}
|
|
}
|