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

Method AddDirectLinkIDs

ent/mutation.go:3948–3955  ·  view source on GitHub ↗

AddDirectLinkIDs adds the "direct_links" edge to the DirectLink entity by ids.

(ids ...int)

Source from the content-addressed store, hash-verified

3946
3947// AddDirectLinkIDs adds the "direct_links" edge to the DirectLink entity by ids.
3948func (m *FileMutation) AddDirectLinkIDs(ids ...int) {
3949 if m.direct_links == nil {
3950 m.direct_links = make(map[int]struct{})
3951 }
3952 for i := range ids {
3953 m.direct_links[ids[i]] = struct{}{}
3954 }
3955}
3956
3957// ClearDirectLinks clears the "direct_links" edge to the DirectLink entity.
3958func (m *FileMutation) ClearDirectLinks() {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected