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

Method AddDavAccounts

ent/user_create.go:204–210  ·  view source on GitHub ↗

AddDavAccounts adds the "dav_accounts" edges to the DavAccount entity.

(d ...*DavAccount)

Source from the content-addressed store, hash-verified

202
203// AddDavAccounts adds the "dav_accounts" edges to the DavAccount entity.
204func (uc *UserCreate) AddDavAccounts(d ...*DavAccount) *UserCreate {
205 ids := make([]int, len(d))
206 for i := range d {
207 ids[i] = d[i].ID
208 }
209 return uc.AddDavAccountIDs(ids...)
210}
211
212// AddShareIDs adds the "shares" edge to the Share entity by IDs.
213func (uc *UserCreate) AddShareIDs(ids ...int) *UserCreate {

Callers

nothing calls this directly

Calls 1

AddDavAccountIDsMethod · 0.95

Tested by

no test coverage detected