Browse Source

feat:p525处理用户访问数据问题

fuwencai 1 year ago
parent
commit
37192a983d

+ 2 - 0
rpc/stdlib/etc/stdlib.yaml

@@ -21,3 +21,5 @@ FileSystemConf:
   Key: moapp.filesystem.rpc
 DocBucketName: "jydoc-stdlib"
 PreviewBucketName: "jydoc-preview"
+SearchSource: # 文库搜索范围 1-剑鱼 2-豆丁
+  - "1" # 1-剑鱼 这配字符串方便拼接

+ 1 - 0
rpc/stdlib/internal/config/config.go

@@ -13,4 +13,5 @@ type Config struct {
 	EsConfig          jyDocRpcUtil.EsConfig
 	DocBucketName     string
 	PreviewBucketName string
+	SearchSource      []string // 文库搜索来源
 }

+ 1 - 1
rpc/stdlib/internal/logic/docquerylogic.go

@@ -51,5 +51,5 @@ func (l *DocQueryLogic) DocQuery(in *stdlib.DocQueryRequest) (*stdlib.DocQueryRe
 			}, nil
 		}
 	}
-	return stdlibService.DocQuery(in), nil
+	return stdlibService.DocQuery(in, l.svcCtx.Config.SearchSource), nil
 }