提交 5e04fef8 authored 作者: mooncake9527's avatar mooncake9527

empty default

上级 c132b66a
......@@ -175,9 +175,9 @@ func SuccessWithList[T any](c *gin.Context, list []*T) {
}
// ErrorE return error
//func ErrorE(c *gin.Context, err *errcode.Error, data ...interface{}) {
// respJSONWith200(c, err.Code(), err.Msg(), data...)
//}
func ErrorE(c *gin.Context, err *errcode.Error, data ...interface{}) {
respJSONWith200(c, err.Code(), err.Msg(), data...)
}
// Error 处理API调用失败的错误,返回错误信息。
// 参数:
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论