diff --git a/exception.go b/exception.go index f2f6689..2d2a12b 100644 --- a/exception.go +++ b/exception.go @@ -126,6 +126,6 @@ func IsSuccess(e *Exception) bool { // Author : go_developer@163.com<白茶清欢> // // Date : 22:35 2022/6/25 -func NewSuccess(data map[string]interface{}) *Exception { +func NewSuccess(data interface{}) *Exception { return New(defaultSuccessCode, defaultHttpCode, data) }