|
@@ -3,7 +3,8 @@ package pc
|
|
|
import (
|
|
|
"github.com/gin-gonic/gin"
|
|
|
"hongze/hongze_yb/controller/response"
|
|
|
- models "hongze/hongze_yb/models/response/pc"
|
|
|
+ pcModels "hongze/hongze_yb/models/response/pc"
|
|
|
+ "hongze/hongze_yb/models/tables/customer_comment"
|
|
|
"hongze/hongze_yb/models/tables/rddp/banner"
|
|
|
"hongze/hongze_yb/models/tables/rddp/classify"
|
|
|
"hongze/hongze_yb/models/tables/rddp/report"
|
|
@@ -151,7 +152,7 @@ func Recommend(c *gin.Context) {
|
|
|
} else {
|
|
|
reportType = 2
|
|
|
}
|
|
|
- recommendList, err := models.GetRecommendList(reportId, reportType)
|
|
|
+ recommendList, err := pcModels.GetRecommendList(reportId, reportType)
|
|
|
if err != nil {
|
|
|
response.Fail("获取报告详情失败"+err.Error(), c)
|
|
|
return
|
|
@@ -172,4 +173,15 @@ func ClassifyFirstList(c *gin.Context) {
|
|
|
}
|
|
|
response.OkData("查询成功", classList, c )
|
|
|
return
|
|
|
+}
|
|
|
+
|
|
|
+// CustomerComment 客户评价
|
|
|
+func CustomerComment(c *gin.Context) {
|
|
|
+ lists,err := customer_comment.GetCustomerComment()
|
|
|
+ if err != nil {
|
|
|
+ response.Fail(err.Error(), c)
|
|
|
+ return
|
|
|
+ }
|
|
|
+ response.OkData("查询成功", lists, c )
|
|
|
+ return
|
|
|
}
|