2024-01-02 14:04:16 +00:00
|
|
|
package adminkindboxhandler
|
|
|
|
|
|
|
|
import (
|
|
|
|
adminkindboxservice "git.gocasts.ir/ebhomengo/niki/service/admin/kind_box"
|
2024-01-15 10:33:24 +00:00
|
|
|
authservice "git.gocasts.ir/ebhomengo/niki/service/auth/benefactor"
|
2024-01-02 14:04:16 +00:00
|
|
|
adminkindboxvalidator "git.gocasts.ir/ebhomengo/niki/validator/admin/kind_box"
|
|
|
|
)
|
|
|
|
|
|
|
|
type Handler struct {
|
|
|
|
authConfig authservice.Config
|
|
|
|
authSvc authservice.Service
|
|
|
|
adminKindBoxSvc adminkindboxservice.Service
|
|
|
|
adminKindBoxVld adminkindboxvalidator.Validator
|
|
|
|
}
|
|
|
|
|
|
|
|
func New(authConfig authservice.Config, authSvc authservice.Service,
|
|
|
|
adminKindBoxSvc adminkindboxservice.Service, adminKindBoxVld adminkindboxvalidator.Validator,
|
|
|
|
) Handler {
|
|
|
|
return Handler{
|
|
|
|
authConfig: authConfig,
|
|
|
|
authSvc: authSvc,
|
|
|
|
adminKindBoxSvc: adminKindBoxSvc,
|
|
|
|
adminKindBoxVld: adminKindBoxVld,
|
|
|
|
}
|
|
|
|
}
|