瀏覽代碼

add isFriends rpc api

master
DengBiao 1 年之前
父節點
當前提交
ca48cf8358
共有 2 個檔案被更改,包括 3 行新增2 行删除
  1. +2
    -2
      internal/business/api/business_ext.go
  2. +1
    -0
      pkg/urlwhitelist/urlwhitelist.go

+ 2
- 2
internal/business/api/business_ext.go 查看文件

@@ -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 查看文件

@@ -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…
取消
儲存