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

Method AddTasks

ent/user_create.go:249–255  ·  view source on GitHub ↗

AddTasks adds the "tasks" edges to the Task entity.

(t ...*Task)

Source from the content-addressed store, hash-verified

247
248// AddTasks adds the "tasks" edges to the Task entity.
249func (uc *UserCreate) AddTasks(t ...*Task) *UserCreate {
250 ids := make([]int, len(t))
251 for i := range t {
252 ids[i] = t[i].ID
253 }
254 return uc.AddTaskIDs(ids...)
255}
256
257// AddFseventIDs adds the "fsevents" edge to the FsEvent entity by IDs.
258func (uc *UserCreate) AddFseventIDs(ids ...int) *UserCreate {

Callers

nothing calls this directly

Calls 1

AddTaskIDsMethod · 0.95

Tested by

no test coverage detected