This website works better with JavaScript.
Home
Explore
Help
Sign In
Independent
/
gim
Watch
1
Star
0
Fork
0
Code
Issues
0
Pull Requests
0
Releases
0
Wiki
Activity
Browse Source
add isFriends rpc api
master
DengBiao
2 years ago
parent
f07438bcf9
commit
ca48cf8358
2 changed files
with
3 additions
and
2 deletions
Split View
Diff Options
Show Stats
Download Patch File
Download Diff File
+2
-2
internal/business/api/business_ext.go
+1
-0
pkg/urlwhitelist/urlwhitelist.go
+ 2
- 2
internal/business/api/business_ext.go
View File
@@ -40,9 +40,9 @@ func (s *BusinessExtServer) IsFriends(ctx context.Context, req *pb.IsFriendsReq)
if err != nil {
return nil, err
}
var isFriend = int64(
0
)
var isFriend = int64(
1
)
if friend == nil {
isFriend =
0
isFriend =
2
}
return &pb.IsFriendsResp{
+ 1
- 0
pkg/urlwhitelist/urlwhitelist.go
View File
@@ -4,6 +4,7 @@ var Business = map[string]int{
"/pb.BusinessExt/SignIn": 0,
"/pb.BusinessExt/EmoticonList": 1,
"/pb.BusinessExt/GetUser": 2,
"/pb.BusinessExt/IsFriends": 3,
}
var Logic = map[string]int{
Write
Preview
Loading…
Cancel
Save