Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

update updateUserInfoEx #47

Merged
merged 13 commits into from
Dec 21, 2023
2 changes: 1 addition & 1 deletion friend/friend.go
Original file line number Diff line number Diff line change
Expand Up @@ -183,7 +183,7 @@ func (x *GetDesignatedFriendsApplyReq) Check() error {
}
return nil
}
func (x *PinFriendsReq) Check() error {
func (x *UpdateFriendsReq) Check() error {
if x.OwnerUserID == "" {
return errors.New("ownerUserID is empty")
}
Expand Down
567 changes: 297 additions & 270 deletions friend/friend.pb.go

Large diffs are not rendered by default.

8 changes: 5 additions & 3 deletions friend/friend.proto
Original file line number Diff line number Diff line change
Expand Up @@ -139,12 +139,14 @@ message respondFriendApplyReq{
message respondFriendApplyResp{
}

message pinFriendsReq{
message updateFriendsReq{
string ownerUserID = 1;
repeated string friendUserIDs = 2;
OpenIMServer.protobuf.BoolValue isPinned = 3;
OpenIMServer.protobuf.StringValue remark = 4;
OpenIMServer.protobuf.StringValue ex = 5;
}
message pinFriendsResp{
message updateFriendsResp{

}

Expand Down Expand Up @@ -212,7 +214,7 @@ service friend{
//对好友申请响应(同意或拒绝)
rpc respondFriendApply(respondFriendApplyReq) returns(respondFriendApplyResp);
//星标好友
rpc pinFriends(pinFriendsReq) returns(pinFriendsResp);
rpc updateFriends(updateFriendsReq) returns(updateFriendsResp);
//设置好友备注
rpc setFriendRemark(setFriendRemarkReq) returns(setFriendRemarkResp);
//导入好友关系
Expand Down
Loading