Browse Source

Merge branch 'ETA_2.4.0' into debug

xiziwen 3 months ago
parent
commit
0e87ab12ef
2 changed files with 6 additions and 4 deletions
  1. 2 2
      controllers/excel.go
  2. 4 2
      services/excel.go

+ 2 - 2
controllers/excel.go

@@ -20,7 +20,7 @@ type ExcelController struct {
 // @Description 表格详情
 // @Success 200 {object} models.EnglishReportShareDetailResp
 // @router /detail [post]
-func (this *ExcelController) ExcelDetail()  {
+func (this *ExcelController) ExcelDetail() {
 	br := new(models.BaseResponse).Init()
 	defer func() {
 		if br.ErrMsg == "" {
@@ -37,7 +37,7 @@ func (this *ExcelController) ExcelDetail()  {
 		br.ErrMsg = "参数解析失败,Err:" + err.Error()
 		return
 	}
-	url := fmt.Sprintf(utils.ChartLibUrl+`/excel_info/detail?UniqueCode=%s&FromScene=%d`, req.UniqueCode,req.FromScene )
+	url := fmt.Sprintf(utils.ChartLibUrl+`/excel_info/detail?UniqueCode=%s&FromScene=%d&ReferencedId=%d&Uuid=%s`, req.UniqueCode, req.FromScene, req.ReferencedId, req.Uuid)
 
 	resp, e := http.Get(url)
 	if e != nil {

+ 4 - 2
services/excel.go

@@ -1,6 +1,8 @@
 package services
 
 type ExcelDetailReq struct {
-	UniqueCode string //"表格表唯一编码,如果是管理后台访问,传固定字符串:7c69b590249049942070ae9dcd5bf6dc"
-	FromScene  int    //"场景来源,1:智能研报,2:研报列表;3:英文研报;4:中文PPT;5:英文PPT"
+	UniqueCode   string //"表格表唯一编码,如果是管理后台访问,传固定字符串:7c69b590249049942070ae9dcd5bf6dc"
+	FromScene    int    //"场景来源,1:智能研报,2:研报列表;3:英文研报;4:中文PPT;5:英文PPT"
+	ReferencedId int    `description:"被引用的ID"`
+	Uuid         string `description:"引用唯一标识"`
 }