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

Method RemoveDirectLinkIDs

ent/mutation.go:3968–3976  ·  view source on GitHub ↗

RemoveDirectLinkIDs removes the "direct_links" edge to the DirectLink entity by IDs.

(ids ...int)

Source from the content-addressed store, hash-verified

3966
3967// RemoveDirectLinkIDs removes the "direct_links" edge to the DirectLink entity by IDs.
3968func (m *FileMutation) RemoveDirectLinkIDs(ids ...int) {
3969 if m.removeddirect_links == nil {
3970 m.removeddirect_links = make(map[int]struct{})
3971 }
3972 for i := range ids {
3973 delete(m.direct_links, ids[i])
3974 m.removeddirect_links[ids[i]] = struct{}{}
3975 }
3976}
3977
3978// RemovedDirectLinks returns the removed IDs of the "direct_links" edge to the DirectLink entity.
3979func (m *FileMutation) RemovedDirectLinksIDs() (ids []int) {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected