From 5c9dc62015a2e701720193271164f29d0d9e8ca6 Mon Sep 17 00:00:00 2001 From: wenxu12345 <44203734@qq.com> Date: Thu, 6 Jan 2022 18:04:30 +0800 Subject: [PATCH] Refactor code --- pkg/base_info/friend_api_struct.go | 3 +-- pkg/proto/sdk_ws/ws.pb.go | 2 +- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/pkg/base_info/friend_api_struct.go b/pkg/base_info/friend_api_struct.go index fed88743f..64b71b284 100644 --- a/pkg/base_info/friend_api_struct.go +++ b/pkg/base_info/friend_api_struct.go @@ -111,8 +111,7 @@ type GetFriendListReq struct { } type GetFriendListResp struct { CommResp - TestTime uint32 `json:"test_time"` - FriendInfoList []*open_im_sdk.FriendInfo `json:"test_data"` + FriendInfoList []*open_im_sdk.FriendInfo `json:"-"` Data []map[string]interface{} `json:"data"` } diff --git a/pkg/proto/sdk_ws/ws.pb.go b/pkg/proto/sdk_ws/ws.pb.go index 0b30328b4..7f9bd2271 100644 --- a/pkg/proto/sdk_ws/ws.pb.go +++ b/pkg/proto/sdk_ws/ws.pb.go @@ -437,7 +437,7 @@ func (m *UserInfo) GetAppMangerLevel() int32 { type FriendInfo struct { OwnerUserID string `protobuf:"bytes,1,opt,name=OwnerUserID" json:"OwnerUserID,omitempty"` Remark string `protobuf:"bytes,2,opt,name=Remark" json:"Remark,omitempty"` - CreateTime int64 `protobuf:"varint,3,opt,name=CreateTime" json:"CreateTime,omitempty"` + CreateTime uint32 `protobuf:"varint,3,opt,name=CreateTime" json:"CreateTime,omitempty"` FriendUser *UserInfo `protobuf:"bytes,4,opt,name=FriendUser" json:"FriendUser,omitempty"` AddSource int32 `protobuf:"varint,5,opt,name=AddSource" json:"AddSource,omitempty"` OperatorUserID string `protobuf:"bytes,6,opt,name=OperatorUserID" json:"OperatorUserID,omitempty"`