20 lines
376 B
Go
20 lines
376 B
Go
package serviceauth
|
|
|
|
import staffrepository "github.com/ardeman/project-legalgo-go/internal/accessor/staff"
|
|
|
|
type LoginStaffSvc struct {
|
|
staffAcs staffrepository.StaffInterface
|
|
}
|
|
|
|
type LoginStaffIntf interface {
|
|
LoginAsStaff(string) (string, error)
|
|
}
|
|
|
|
func New(
|
|
staffAcs staffrepository.StaffInterface,
|
|
) LoginStaffIntf {
|
|
return &LoginStaffSvc{
|
|
staffAcs: staffAcs,
|
|
}
|
|
}
|