Roc 3 周之前
父节点
当前提交
56aedb8b7e
共有 2 个文件被更改,包括 9 次插入1 次删除
  1. 7 1
      controllers/llm/abstract.go
  2. 2 0
      models/rag/request/wechat_platform.go

+ 7 - 1
controllers/llm/abstract.go

@@ -183,8 +183,9 @@ func (c *AbstractController) Del() {
 			return
 		}
 
+		// 删除es数据
 		for _, v := range list {
-			go services.AddOrEditEsWechatArticleAbstract(v.WechatArticleAbstractId)
+			go services.DelEsWechatArticleAbstract(v.WechatArticleAbstractId)
 		}
 	}
 
@@ -238,6 +239,11 @@ func (c *AbstractController) VectorDel() {
 		return
 	}
 
+	// 修改ES数据
+	for _, v := range list {
+		go services.AddOrEditEsWechatArticleAbstract(v.WechatArticleAbstractId)
+	}
+
 	br.Ret = 200
 	br.Success = true
 	br.Msg = `删除成功`

+ 2 - 0
models/rag/request/wechat_platform.go

@@ -26,4 +26,6 @@ type EditQuestionReq struct {
 
 type DelAbstractReq struct {
 	WechatArticleAbstractIdList []int `description:"摘要id"`
+	TagId                       int   `description:"标签id"`
+	IsSelectAll                 bool  `description:"是否选择所有摘要"`
 }