File tree Expand file tree Collapse file tree 3 files changed +8
-8
lines changed Expand file tree Collapse file tree 3 files changed +8
-8
lines changed Original file line number Diff line number Diff line change 11package apiresp
22
33import (
4- "github.com/openimsdk/protocol/friend"
4+ "testing"
5+
6+ "github.com/openimsdk/protocol/relation"
57 "github.com/openimsdk/protocol/wrapperspb"
68 "github.com/openimsdk/tools/utils/jsonutil"
7- "testing"
89)
910
1011func TestName (t * testing.T ) {
1112 resp := & ApiResponse {
1213 ErrCode : 1234 ,
1314 ErrMsg : "test" ,
1415 ErrDlt : "4567" ,
15- Data : & friend .UpdateFriendsReq {
16+ Data : & relation .UpdateFriendsReq {
1617 OwnerUserID : "123456" ,
1718 FriendUserIDs : []string {"1" , "2" , "3" },
1819 Remark : wrapperspb .String ("1234567" ),
@@ -25,12 +26,11 @@ func TestName(t *testing.T) {
2526 t .Log (string (data ))
2627
2728 var rReso ApiResponse
28- rReso .Data = & friend .UpdateFriendsReq {}
29+ rReso .Data = & relation .UpdateFriendsReq {}
2930
3031 if err := jsonutil .JsonUnmarshal (data , & rReso ); err != nil {
3132 panic (err )
3233 }
3334
3435 t .Logf ("%+v\n " , rReso )
35-
3636}
Original file line number Diff line number Diff line change @@ -15,7 +15,7 @@ require (
1515 github.com/lestrrat-go/file-rotatelogs v2.4.0+incompatible
1616 github.com/magefile/mage v1.15.0
1717 github.com/minio/minio-go/v7 v7.0.69
18- github.com/openimsdk/protocol v0.0.63
18+ github.com/openimsdk/protocol v0.0.69-alpha.4
1919 github.com/pkg/errors v0.9.1
2020 github.com/redis/go-redis/v9 v9.2.1
2121 github.com/shirou/gopsutil v3.21.11+incompatible
Original file line number Diff line number Diff line change @@ -177,8 +177,8 @@ github.com/montanaflynn/stats v0.0.0-20171201202039-1bf9dbcd8cbe h1:iruDEfMl2E6f
177177github.com/montanaflynn/stats v0.0.0-20171201202039-1bf9dbcd8cbe /go.mod h1:wL8QJuTMNUDYhXwkmfOly8iTdp5TEcJFWZD2D7SIkUc =
178178github.com/mozillazg/go-httpheader v0.2.1 h1:geV7TrjbL8KXSyvghnFm+NyTux/hxwueTSrwhe88TQQ =
179179github.com/mozillazg/go-httpheader v0.2.1 /go.mod h1:jJ8xECTlalr6ValeXYdOF8fFUISeBAdw6E61aqQma60 =
180- github.com/openimsdk/protocol v0.0.63 h1:9DnweZe9nEYDFa4fGTbC9Cqi0gLUdtBhRo1NRP2X3WQ =
181- github.com/openimsdk/protocol v0.0.63 /go.mod h1:OZQA9FR55lseYoN2Ql1XAHYKHJGu7OMNkUbuekrKCM8 =
180+ github.com/openimsdk/protocol v0.0.69-alpha.4 h1:QJkOFV5Hlu7CbkHG5smeVw+5fx5DVkpNJWqlAOJxuIY =
181+ github.com/openimsdk/protocol v0.0.69-alpha.4 /go.mod h1:OZQA9FR55lseYoN2Ql1XAHYKHJGu7OMNkUbuekrKCM8 =
182182github.com/pelletier/go-buffruneio v0.2.0 /go.mod h1:JkE26KsDizTr40EUHkXVtNPvgGtbSNq5BcowyYOWdKo =
183183github.com/pelletier/go-toml/v2 v2.0.8 h1:0ctb6s9mE31h0/lhu+J6OPmVeDxJn+kYnJc2jZR9tGQ =
184184github.com/pelletier/go-toml/v2 v2.0.8 /go.mod h1:vuYfssBdrU2XDZ9bYydBu6t+6a6PYNcZljzZR9VXg+4 =
You can’t perform that action at this time.
0 commit comments