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

Method AddFileIDs

ent/mutation.go:15760–15767  ·  view source on GitHub ↗

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

(ids ...int)

Source from the content-addressed store, hash-verified

15758
15759// AddFileIDs adds the "files" edge to the File entity by ids.
15760func (m *UserMutation) AddFileIDs(ids ...int) {
15761 if m.files == nil {
15762 m.files = make(map[int]struct{})
15763 }
15764 for i := range ids {
15765 m.files[ids[i]] = struct{}{}
15766 }
15767}
15768
15769// ClearFiles clears the "files" edge to the File entity.
15770func (m *UserMutation) ClearFiles() {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected