xyxie 1 ano atrás
pai
commit
f9db66aa7b

+ 2 - 2
controllers/data_manage/excel/mixed_table.go

@@ -410,9 +410,9 @@ func (c *ExcelInfoController) GetBaseEdbInfo() {
 		br.ErrMsg = "获取指标信息失败,Err:" + err.Error()
 		return
 	}
-	list := make([]*data_manage.BaseEdbInfo, 0)
+	list := make([]*data_manage.BaseEdbNameItem, 0)
 	for _, v := range edbInfoList {
-		tmp := new(data_manage.BaseEdbInfo)
+		tmp := new(data_manage.BaseEdbNameItem)
 
 		tmp.EdbInfoId = v.EdbInfoId
 		tmp.EdbInfoType = v.EdbInfoType

+ 2 - 2
models/data_manage/edb_info.go

@@ -71,7 +71,7 @@ func AddEdbInfo(item *EdbInfo) (lastId int64, err error) {
 	return
 }
 
-type BaseEdbInfo struct {
+type BaseEdbNameItem struct {
 	EdbInfoId   int    `description:"指标id"`
 	EdbInfoType int    `description:"指标类型,0:普通指标,1:预测指标"`
 	SourceName  string `description:"来源名称"`
@@ -83,7 +83,7 @@ type BaseEdbInfo struct {
 }
 
 type BaseEdbInfoResp struct {
-	List []*BaseEdbInfo
+	List []*BaseEdbNameItem
 }
 
 // GetEdbInfoAll 用于分类展示