Browse Source

新增参数

WH01243 2 years ago
parent
commit
400701b08c
2 changed files with 2 additions and 3 deletions
  1. 1 1
      go.mod
  2. 1 2
      middleground/publicservice.go

+ 1 - 1
go.mod

@@ -16,7 +16,7 @@ require (
 	github.com/thinxer/go-word2vec v0.0.0-20150917053916-5c19ec7379ed
 	github.com/zeromicro/go-zero v1.5.3
 	go.mongodb.org/mongo-driver v1.11.6
-	jygit.jydev.jianyu360.cn/ApplicationCenter/publicService v0.0.0-20230629083730-5cd980d79620
+	jygit.jydev.jianyu360.cn/ApplicationCenter/publicService v0.0.0-20230630030322-04d747b20a27
 )
 
 require (

+ 1 - 2
middleground/publicservice.go

@@ -60,7 +60,6 @@ func (p *publicService) List(searchValue, dataType string, pageNum, pageSize int
 		log.Println(err)
 		return nil
 	}
-
 	result := map[string]interface{}{}
 	result["PageCount"] = resp.PageCount
 	arr := []map[string]interface{}{}
@@ -78,7 +77,7 @@ func (p *publicService) List(searchValue, dataType string, pageNum, pageSize int
 	result["fieldIllustrate"] = resp.FieldIllustrate
 	result["hotKeys"] = resp.HotKeys
 	result["searchValue"] = searchValue
-	//result["dataTypeStr"] = wordMap[dataType]
+	result["dataTypeStr"] = resp.DataTypeStr
 	return result
 }
 func (p *publicService) Detail(id string) map[string]interface{} {