add base api response

This commit is contained in:
nochill 2023-04-06 12:51:27 +07:00
parent 086d5d5baa
commit e93b9580c3

10
api/response.go Normal file
View File

@ -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,
}
}