api_gateway_service.go 489 B

123456789101112131415161718192021222324252627
  1. package service
  2. import (
  3. "xps/datasource"
  4. "xps/repositories"
  5. )
  6. type ApiGatewayService interface {
  7. HandleRequest(m map[string]interface{}) error
  8. }
  9. type apiGatewayService struct {
  10. apiRepo *repositories.ApiRepo
  11. }
  12. func (a apiGatewayService) HandleRequest(m map[string]interface{}) error {
  13. return nil
  14. }
  15. func NewApiGatewayService() ApiGatewayService {
  16. return &apiGatewayService{
  17. apiRepo: repositories.NewApiRepo(datasource.InstanceMaster()),
  18. }
  19. }