This commit is contained in:
wangchuxiao 2023-03-16 15:10:21 +08:00
parent a8dd306196
commit 31833d06ba

View File

@ -1,6 +1,8 @@
package apiresp
import (
"context"
"github.com/OpenIMSDK/Open-IM-Server/pkg/common/log"
"github.com/OpenIMSDK/Open-IM-Server/pkg/errs"
)
@ -12,6 +14,9 @@ type apiResponse struct {
}
func apiSuccess(data any) *apiResponse {
log.ZDebug(context.Background(), "apiSuccess", "resp", &apiResponse{
Data: data,
})
return &apiResponse{
Data: data,
}