package service import ( "xps/datasource" "xps/repositories" ) type ApiGatewayService interface { HandleRequest(m map[string]interface{}) error } type apiGatewayService struct { apiRepo *repositories.ApiRepo } func (a apiGatewayService) HandleRequest(m map[string]interface{}) error { return nil } func NewApiGatewayService() ApiGatewayService { return &apiGatewayService{ apiRepo: repositories.NewApiRepo(datasource.InstanceMaster()), } }