Files
backend_jupiter/controllers/platform.go
2026-05-25 11:45:56 +05:30

38 lines
613 B
Go

package controllers
import (
"nearle/domain"
"net/http"
"strconv"
"github.com/gofiber/fiber/v2"
)
func GetModules(c *fiber.Ctx) error {
mid, _ := strconv.Atoi(c.Query("moduleid"))
result := domain.GetModules(mid)
return c.JSON(fiber.Map{
"code": http.StatusCreated,
"message": "Success",
"status": true,
"details": result,
})
}
func GetSmsProvider(c *fiber.Ctx) error {
tid, _ := strconv.Atoi(c.Query("templatetypeid"))
result := domain.GetSmsprovider(tid)
return c.JSON(fiber.Map{
"code": http.StatusOK,
"message": "Success",
"status": true,
"details": result,
})
}