From f29c21f923fccef5f37fbb03cd21c2d089d447c4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=99=BD=E8=8C=B6=E6=B8=85=E6=AC=A2?= Date: Sun, 26 Jun 2022 13:24:33 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=20NewSuccess?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- exception.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) }