2024-01-02 14:04:16 +00:00
|
|
|
package adminkindboxhandler
|
|
|
|
|
|
|
|
import (
|
2024-02-24 17:06:13 +00:00
|
|
|
adminauthorizationservice "git.gocasts.ir/ebhomengo/niki/service/admin/authorization"
|
2024-01-02 14:04:16 +00:00
|
|
|
adminkindboxservice "git.gocasts.ir/ebhomengo/niki/service/admin/kind_box"
|
2024-01-25 11:43:39 +00:00
|
|
|
authservice "git.gocasts.ir/ebhomengo/niki/service/auth"
|
2024-01-02 14:04:16 +00:00
|
|
|
adminkindboxvalidator "git.gocasts.ir/ebhomengo/niki/validator/admin/kind_box"
|
|
|
|
)
|
|
|
|
|
|
|
|
type Handler struct {
|
2024-02-24 17:06:13 +00:00
|
|
|
authConfig authservice.Config
|
|
|
|
authSvc authservice.Service
|
|
|
|
adminKindBoxSvc adminkindboxservice.Service
|
|
|
|
adminKindBoxVld adminkindboxvalidator.Validator
|
|
|
|
adminAuthorizeSvc adminauthorizationservice.Service
|
2024-01-02 14:04:16 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
func New(authConfig authservice.Config, authSvc authservice.Service,
|
|
|
|
adminKindBoxSvc adminkindboxservice.Service, adminKindBoxVld adminkindboxvalidator.Validator,
|
2024-02-24 17:06:13 +00:00
|
|
|
adminAuthorizeSvc adminauthorizationservice.Service,
|
2024-01-02 14:04:16 +00:00
|
|
|
) Handler {
|
|
|
|
return Handler{
|
2024-02-24 17:06:13 +00:00
|
|
|
authConfig: authConfig,
|
|
|
|
authSvc: authSvc,
|
|
|
|
adminKindBoxSvc: adminKindBoxSvc,
|
|
|
|
adminKindBoxVld: adminKindBoxVld,
|
|
|
|
adminAuthorizeSvc: adminAuthorizeSvc,
|
2024-01-02 14:04:16 +00:00
|
|
|
}
|
|
|
|
}
|