Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/main'
Browse files Browse the repository at this point in the history
  • Loading branch information
withchao committed Dec 25, 2023
2 parents 8b20563 + 2e6f3b9 commit e9e7779
Show file tree
Hide file tree
Showing 9 changed files with 2,306 additions and 1,952 deletions.
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
580 changes: 308 additions & 272 deletions friend/friend.pb.go

Large diffs are not rendered by default.

9 changes: 6 additions & 3 deletions friend/friend.proto
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,7 @@ message getDesignatedFriendsResp{
message addBlackReq{
string ownerUserID = 1;
string blackUserID = 2;
string ex = 3;
}
message addBlackResp{
}
Expand Down Expand Up @@ -138,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 @@ -211,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
13 changes: 11 additions & 2 deletions group/group.pb.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions group/group.proto
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,7 @@ message JoinGroupReq{
string reqMessage = 2;
int32 joinSource = 3;
string inviterUserID = 4;
string ex = 5;
}
message JoinGroupResp{
}
Expand Down
Loading

0 comments on commit e9e7779

Please sign in to comment.