forked from ebhomengo/niki
1
0
Fork 0
niki/delivery/http_server/admin/agent/handler.go

25 lines
599 B
Go

package adminagenthandler
import (
agentservice "git.gocasts.ir/ebhomengo/niki/service/admin/agent"
authorizeservice "git.gocasts.ir/ebhomengo/niki/service/admin/authorization"
authservice "git.gocasts.ir/ebhomengo/niki/service/auth"
)
type Handler struct {
authSvc authservice.Service
agentSvc agentservice.Service
authorizeSvc authorizeservice.Service
}
func New(authSvc authservice.Service,
agentSvc agentservice.Service,
authorizeSvc authorizeservice.Service,
) Handler {
return Handler{
authSvc: authSvc,
agentSvc: agentSvc,
authorizeSvc: authorizeSvc,
}
}