niki/delivery/http_server/admin/benefactor/handler.go

25 lines
640 B
Go

package adminbenefactorhandler
import (
authorizeservice "git.gocasts.ir/ebhomengo/niki/service/admin/authorization"
benefactorservice "git.gocasts.ir/ebhomengo/niki/service/admin/benefactor"
authservice "git.gocasts.ir/ebhomengo/niki/service/auth"
)
type Handler struct {
authSvc authservice.Service
benefactorSvc benefactorservice.Service
authorizeSvc authorizeservice.Service
}
func New(authSvc authservice.Service,
benefactorSvc benefactorservice.Service,
authorizeSvc authorizeservice.Service,
) Handler {
return Handler{
authSvc: authSvc,
benefactorSvc: benefactorSvc,
authorizeSvc: authorizeSvc,
}
}