升级异常处理
This commit is contained in:
@ -58,7 +58,7 @@ func SendWithStatusOK(ctx *gin.Context, code interface{}, data map[string]interf
|
||||
// Author : go_developer@163.com<白茶清欢>
|
||||
//
|
||||
// Date : 13:08 2022/6/26
|
||||
func SendWithException(ctx *gin.Context, e *exception.Exception, data interface{}) {
|
||||
func SendWithException(ctx *gin.Context, e exception.IException, data interface{}) {
|
||||
if nil == e {
|
||||
e = exception.NewSuccess(data)
|
||||
}
|
||||
|
Reference in New Issue
Block a user