|
@@ -1339,46 +1339,12 @@ func (this *ResourceController) TemplateDownload() {
|
|
|
br.Msg = "下载成功"
|
|
|
}
|
|
|
|
|
|
-// BiDashboardResourceList
|
|
|
-// @Title 获取bi看报中的知识资源列表
|
|
|
-// @Description 获取bi看报中的知识资源列表
|
|
|
-// @Success 200 {object} models.EdbdataClassifyResp
|
|
|
-// @Param BiDashboardDetailId query int true "bi看板详情ID"
|
|
|
-// @router /resource/bi_dashboard/list [get]
|
|
|
-func (this *ResourceController) BiDashboardResourceList() {
|
|
|
- br := new(models.BaseResponse).Init()
|
|
|
- defer func() {
|
|
|
- this.Data["json"] = br
|
|
|
- this.ServeJSON()
|
|
|
- }()
|
|
|
-
|
|
|
- biDashboardDetailId, _ := this.GetInt("BiDashboardDetailId")
|
|
|
- // resourceType, _ := this.GetInt("ResourceType")
|
|
|
- // currentIndex, _ := this.GetInt("CurrentIndex")
|
|
|
- // pageSize, _ := this.GetInt("PageSize")
|
|
|
-
|
|
|
- resp, msg, err := knowledgeServ.GetKnowledgeResourceList(biDashboardDetailId)
|
|
|
- if err != nil {
|
|
|
- if msg == "" {
|
|
|
- msg = "获取数据失败"
|
|
|
- }
|
|
|
- br.Msg = msg
|
|
|
- br.ErrMsg = "获取数据失败,Err:" + err.Error()
|
|
|
- return
|
|
|
- }
|
|
|
-
|
|
|
- br.Ret = 200
|
|
|
- br.Success = true
|
|
|
- br.Msg = "获取成功"
|
|
|
- br.Data = resp
|
|
|
-}
|
|
|
-
|
|
|
// BiDashboardTmpResourceList
|
|
|
// @Title 获取bi看报中的知识资源列表
|
|
|
// @Description 获取bi看报中的知识资源列表
|
|
|
// @Success 200 {object} models.EdbdataClassifyResp
|
|
|
// @Param biDashboardDetailId query int true "看板详情ID"
|
|
|
-// @router /resource/bi_dashboard/cache/list [get]
|
|
|
+// @router /resource/bi_dashboard/list [get]
|
|
|
func (this *ResourceController) BiDashboardCacheResourceList() {
|
|
|
br := new(models.BaseResponse).Init()
|
|
|
defer func() {
|