feat: remove pkg dir

This commit is contained in:
Zhiqiang Li
2023-03-30 17:01:35 +08:00
parent 51b9233da0
commit 1e1d5eaf1b
6 changed files with 3 additions and 3 deletions

14
util/response_err.go Normal file
View File

@@ -0,0 +1,14 @@
package util
import (
"github.com/gin-gonic/gin"
)
func SendError(c *gin.Context, err error) {
c.JSON(500, ApiResponse{
Error: ErrorDescription{
Code: "500",
Message: err.Error(),
},
})
}