You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
package apiresp
|
|
|
|
import (
|
|
"net/http"
|
|
|
|
"github.com/gin-gonic/gin"
|
|
)
|
|
|
|
func GinError(c *gin.Context, err error) {
|
|
c.JSON(http.StatusOK, ParseError(err))
|
|
}
|
|
|
|
func GinSuccess(c *gin.Context, data any) {
|
|
c.JSON(http.StatusOK, ApiSuccess(data))
|
|
}
|