Commit 6a5bd7ff authored by alex yao's avatar alex yao

feat:问答知识库分片添加限流

parent a640d66b
......@@ -51,6 +51,7 @@ public class QAKnowledgeRestImpl implements QAKnowledgeRest {
}
@Override
@RedisLimit(key = "ADD_KNOWLEDGE_CHUNK", timeout = 1, currentUser = true, count = 1)
public void addKnowledgeChunk(UpsertChunkInfoDto dto) {
qaKnowledgeService.addKnowledgeChunk(dto.getKdId(), dto.getChunkInfos(), dto.getChunkSort());
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment