LogLibraryDelete 记录知识库删除日志
(c *gin.Context, spaceName, libraryName string)
| 113 | |
| 114 | // LogLibraryDelete 记录知识库删除日志 |
| 115 | func 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 记录知识库批量排序日志 |
| 126 | func LogLibraryBatchSort(c *gin.Context, count int) { |
no test coverage detected