add base api response
This commit is contained in:
parent
086d5d5baa
commit
e93b9580c3
10
api/response.go
Normal file
10
api/response.go
Normal 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,
|
||||||
|
}
|
||||||
|
}
|
Loading…
Reference in New Issue
Block a user