naise_pos/api/response.go

11 lines
163 B
Go
Raw Permalink Normal View History

2023-04-06 12:51:27 +07:00
package api
import "github.com/gin-gonic/gin"
func BaseApiRespond(msg string, data interface{}) gin.H {
return gin.H{
"message": msg,
"data": data,
}
}