You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@servicecomb.apache.org by GitBox <gi...@apache.org> on 2021/03/17 03:04:04 UTC

[GitHub] [servicecomb-service-center] robotLJW commented on a change in pull request #896: [SCB-2094] Restructure database/mongo

robotLJW commented on a change in pull request #896:
URL: https://github.com/apache/servicecomb-service-center/pull/896#discussion_r595679381



##########
File path: datasource/mongo/util/db.go
##########
@@ -27,18 +27,84 @@ import (
 
 type Option func(filter bson.M)
 
-func Domain(domain string) Option {
+func Domain(domain interface{}) Option {

Review comment:
       我是这样子想的,bson.M是一个map,map[String]interface{} ,正常使用也是传一个参数过来,将string改成interface就是怕后面字段类型修改了,得重新修改类型




----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org