修复Success

This commit is contained in:
白茶清欢 2022-06-26 13:33:03 +08:00
parent c99cdadd7b
commit 0e469953bd

View File

@ -21,7 +21,7 @@ import (
// Author : go_developer@163.com<白茶清欢> // Author : go_developer@163.com<白茶清欢>
// //
// Date : 22:37 2022/6/25 // 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) successException := exception.NewSuccess(data)
Send(ctx, successException.GetCode(), successException.GetHttpCode(), successException.GetData()) Send(ctx, successException.GetCode(), successException.GetHttpCode(), successException.GetData())
} }