Kaynağa Gözat

fix:接口参数

zqbao 10 ay önce
ebeveyn
işleme
509c8b5c42
2 değiştirilmiş dosya ile 0 ekleme ve 12 silme
  1. 0 6
      controllers/my_chart.go
  2. 0 6
      controllers/my_report.go

+ 0 - 6
controllers/my_chart.go

@@ -157,12 +157,6 @@ func (this *MyChartController) List() {
 	}
 
 	resp := new(response.MyChartListResp)
-	if total == 0 {
-		br.Msg = "暂无数据"
-		br.Ret = 200
-		br.Success = true
-		return
-	}
 	startSize := utils.StartIndex(currentIndex, pageSize)
 	items, err := models.GetMyChartListById(user.UserId, startSize, pageSize)
 	if err != nil {

+ 0 - 6
controllers/my_report.go

@@ -53,12 +53,6 @@ func (this *MyReportController) List() {
 		return
 	}
 	resp := new(response.MyReportListResp)
-	if total == 0 {
-		br.Msg = "暂无数据"
-		br.Ret = 200
-		br.Success = true
-		return
-	}
 	startSize := utils.StartIndex(currentIndex, pageSize)
 	reportList, err := models.GetMyReportListByUserId(user.UserId, startSize, pageSize)
 	if err != nil {