MCPcopy Create free account
hub / github.com/cloudreve/cloudreve / AddFileIDs

Method AddFileIDs

ent/mutation.go:2353–2360  ·  view source on GitHub ↗

AddFileIDs adds the "file" edge to the File entity by ids.

(ids ...int)

Source from the content-addressed store, hash-verified

2351
2352// AddFileIDs adds the "file" edge to the File entity by ids.
2353func (m *EntityMutation) AddFileIDs(ids ...int) {
2354 if m.file == nil {
2355 m.file = make(map[int]struct{})
2356 }
2357 for i := range ids {
2358 m.file[ids[i]] = struct{}{}
2359 }
2360}
2361
2362// ClearFile clears the "file" edge to the File entity.
2363func (m *EntityMutation) ClearFile() {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected