修复 NewSuccess

This commit is contained in:
白茶清欢 2022-06-26 13:24:33 +08:00
parent dce8cafff2
commit f29c21f923

View File

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