feat: initial commit

This commit is contained in:
Zhiqiang Li
2023-03-24 15:12:01 +08:00
commit e025a0f9e0
13 changed files with 409 additions and 0 deletions

12
apis/tools.go Normal file
View File

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