MCPcopy Index your code
hub / github.com/53AI/53AIHub / LoadLibraryCount

Method LoadLibraryCount

api/model/space.go:261–268  ·  view source on GitHub ↗

LoadLibraryCount 加载空间知识库数量

(eid int64)

Source from the content-addressed store, hash-verified

259
260// LoadLibraryCount 加载空间知识库数量
261func (s *Space) LoadLibraryCount(eid int64) error {
262 var count int64
263 if err := DB.Model(&Library{}).Where("eid = ? AND space_id = ?", eid, s.ID).Count(&count).Error; err != nil {
264 return err
265 }
266 s.LibraryCount = count
267 return nil
268}
269
270// DeleteSpace 删除空间
271func DeleteSpace(eid int64, id int64) error {

Callers 6

CreateSpaceFunction · 0.80
GetSpaceFunction · 0.80
UpdateSpaceFunction · 0.80
GetUserSpacesMethod · 0.80
GetAdminSpacesMethod · 0.80
GetVisibleSpaceDetailMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected