Procházet zdrojové kódy

feat:数据超市详情页字段调整

fuwencai před 1 rokem
rodič
revize
01da044f6c
2 změnil soubory, kde provedl 3 přidání a 3 odebrání
  1. 1 1
      go.mod
  2. 2 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-20230710093759-d9d6c68de8b1
+	jygit.jydev.jianyu360.cn/ApplicationCenter/publicService v0.0.0-20231017031425-45003ca9f35a
 )
 
 require (

+ 2 - 2
middleground/publicservice.go

@@ -44,7 +44,7 @@ func (u *publicService) NewClient() zrpc.Client {
 	return client
 }
 
-//列表数据处理
+// 列表数据处理
 func (p *publicService) List(searchValue, dataType string, pageNum, pageSize int64) map[string]interface{} {
 	client := p.NewClient()
 	if client == nil {
@@ -101,6 +101,6 @@ func (p *publicService) Detail(id string) map[string]interface{} {
 	result["introduce"] = resp.Introduce
 	result["format"] = resp.Format
 	result["keyword"] = resp.Keyword
-	result["fieldIllustrate"] = resp.FieldIllustrate
+	result["application"] = resp.FieldIllustrate.Application
 	return result
 }