Error code standardization

This commit is contained in:
skiffer-git
2023-02-01 16:44:50 +08:00
parent aafe17a0f3
commit fb436e7713
6 changed files with 85 additions and 153 deletions
+3 -2
View File
@@ -2,6 +2,7 @@ package convert
import (
"Open_IM/pkg/common/db/relation"
"Open_IM/pkg/common/db/table"
sdk "Open_IM/pkg/proto/sdk_ws"
utils "github.com/OpenIMSDK/open_utils"
"time"
@@ -19,10 +20,10 @@ func getNumberOfGroupMember(groupID string) (int32, error) {
}
type DBFriend struct {
*relation.Friend
*table.FriendModel
}
func NewDBFriend(friend *relation.Friend) *DBFriend {
func NewDBFriend(friend *controller.Friend) *DBFriend {
return &DBFriend{Friend: friend}
}