MCPcopy Create free account
hub / github.com/53AI/53AIHub / LogLibraryDelete

Function LogLibraryDelete

api/controller/log_helper.go:115–123  ·  view source on GitHub ↗

LogLibraryDelete 记录知识库删除日志

(c *gin.Context, spaceName, libraryName string)

Source from the content-addressed store, hash-verified

113
114// LogLibraryDelete 记录知识库删除日志
115func LogLibraryDelete(c *gin.Context, spaceName, libraryName string) {
116 var content string
117 if spaceName != "" {
118 content = fmt.Sprintf("删除空间【%s】中的知识库【%s】", spaceName, libraryName)
119 } else {
120 content = fmt.Sprintf("删除知识库【%s】", libraryName)
121 }
122 LogLibraryOperation(c, model.SystemLogActionDelete, libraryName, content)
123}
124
125// LogLibraryBatchSort 记录知识库批量排序日志
126func LogLibraryBatchSort(c *gin.Context, count int) {

Callers 1

DeleteLibraryFunction · 0.85

Calls 1

LogLibraryOperationFunction · 0.85

Tested by

no test coverage detected