Browse Source

add isFriends rpc api

master
DengBiao 2 years ago
parent
commit
ca48cf8358
2 changed files with 3 additions and 2 deletions
  1. +2
    -2
      internal/business/api/business_ext.go
  2. +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{


Loading…
Cancel
Save