diff --git a/api/response.go b/api/response.go new file mode 100644 index 0000000..cd78ab4 --- /dev/null +++ b/api/response.go @@ -0,0 +1,10 @@ +package api + +import "github.com/gin-gonic/gin" + +func BaseApiRespond(msg string, data interface{}) gin.H { + return gin.H{ + "message": msg, + "data": data, + } +}