diff --git a/response/base_response.go b/response/base_response.go index cf2d3f8..689aa86 100644 --- a/response/base_response.go +++ b/response/base_response.go @@ -56,8 +56,8 @@ func (r *Result) Unauthorized(msg string) { } // 简易操作成功信息 -func (r *Result) Success(msg string) { - r.response(http.StatusOK, http.StatusOK, msg) +func (r *Result) Success(msg string, payloads ...map[string]interface{}) { + r.response(http.StatusOK, http.StatusOK, msg, payloads...) } // 数据成功创建