diff --git a/response/response.go b/response/response.go index e88c49f..20de979 100644 --- a/response/response.go +++ b/response/response.go @@ -21,7 +21,7 @@ import ( // Author : go_developer@163.com<白茶清欢> // // Date : 22:37 2022/6/25 -func Success(ctx *gin.Context, data map[string]interface{}) { +func Success(ctx *gin.Context, data interface{}) { successException := exception.NewSuccess(data) Send(ctx, successException.GetCode(), successException.GetHttpCode(), successException.GetData()) }