mirror of
https://github.com/openimsdk/open-im-server.git
synced 2025-06-03 06:01:30 +08:00
Merge remote-tracking branch 'origin/errcode' into errcode
This commit is contained in:
commit
9539f93640
@ -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,
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user