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

26 lines
886 B
Go
Raw Normal View History

package benefactorkindboxhandler
import (
2024-01-11 07:13:37 +00:00
authservice "git.gocasts.ir/ebhomengo/niki/service/auth/user"
benefactorkindboxservice "git.gocasts.ir/ebhomengo/niki/service/benefactor/kind_box"
benefactorkindboxvalidator "git.gocasts.ir/ebhomengo/niki/validator/benefactor/kind_box"
)
type Handler struct {
authConfig authservice.Config
authSvc authservice.Service
benefactorKindBoxSvc benefactorkindboxservice.Service
benefactorKindBoxVld benefactorkindboxvalidator.Validator
}
func New(authConfig authservice.Config, authSvc authservice.Service,
benefactorKindBoxSvc benefactorkindboxservice.Service, benefactorKindBoxVld benefactorkindboxvalidator.Validator,
) Handler {
return Handler{
authConfig: authConfig,
authSvc: authSvc,
benefactorKindBoxSvc: benefactorKindBoxSvc,
benefactorKindBoxVld: benefactorKindBoxVld,
}
}