intial commit

This commit is contained in:
2026-05-25 11:45:56 +05:30
commit 6ab508560f
73 changed files with 23713 additions and 0 deletions

37
controllers/platform.go Normal file
View File

@@ -0,0 +1,37 @@
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,
})
}