feat: code clean

This commit is contained in:
Zhiqiang Li
2023-03-30 16:55:15 +08:00
parent 26d230f587
commit 656a7d1f1c
11 changed files with 14 additions and 13 deletions

View File

@@ -1,14 +0,0 @@
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(),
},
})
}