package response

import (
	"net/http"

	"github.com/gin-gonic/gin"
)

func OK(c *gin.Context, data any) {
	c.JSON(http.StatusOK, body(c, CodeOK, "ok", data))
}

func Created(c *gin.Context, data any) {
	c.JSON(http.StatusCreated, body(c, CodeOK, "ok", data))
}
