📝 add notes
This commit is contained in:
@ -2,6 +2,7 @@ package controllers
|
||||
|
||||
import "github.com/gin-gonic/gin"
|
||||
|
||||
// common meta response
|
||||
func MetaResponse(code int, msg string) gin.H {
|
||||
return gin.H{
|
||||
"meta":gin.H{
|
||||
@ -11,6 +12,7 @@ func MetaResponse(code int, msg string) gin.H {
|
||||
}
|
||||
}
|
||||
|
||||
// common data response
|
||||
func DataResponse(data interface{}) gin.H {
|
||||
return gin.H{
|
||||
"meta":gin.H{
|
||||
|
Reference in New Issue
Block a user