WH01243 %!s(int64=2) %!d(string=hai) anos
pai
achega
057588ade3
Modificáronse 1 ficheiros con 7 adicións e 0 borrados
  1. 7 0
      middleground/publicservice.go

+ 7 - 0
middleground/publicservice.go

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