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

Method RemoveShares

ent/user_update.go:1432–1438  ·  view source on GitHub ↗

RemoveShares removes "shares" edges to Share entities.

(s ...*Share)

Source from the content-addressed store, hash-verified

1430
1431// RemoveShares removes "shares" edges to Share entities.
1432func (uuo *UserUpdateOne) RemoveShares(s ...*Share) *UserUpdateOne {
1433 ids := make([]int, len(s))
1434 for i := range s {
1435 ids[i] = s[i].ID
1436 }
1437 return uuo.RemoveShareIDs(ids...)
1438}
1439
1440// ClearPasskey clears all "passkey" edges to the Passkey entity.
1441func (uuo *UserUpdateOne) ClearPasskey() *UserUpdateOne {

Callers

nothing calls this directly

Calls 1

RemoveShareIDsMethod · 0.95

Tested by

no test coverage detected