升级异常处理

This commit is contained in:
2022-07-03 13:12:10 +08:00
parent c80236b3a2
commit 53b9196970
3 changed files with 4 additions and 2 deletions

View File

@ -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)
}