@@ -32,13 +32,19 @@ func NewControlConnection(p *page.Page[*coredata.Control]) *ControlConnection {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
func NewControlEdge(f *coredata.Control) *ControlEdge {
|
func NewControlEdge(c *coredata.Control) *ControlEdge {
|
||||||
return &ControlEdge{
|
return &ControlEdge{
|
||||||
Cursor: f.CursorKey(),
|
Cursor: c.CursorKey(),
|
||||||
Node: NewControl(f),
|
Node: NewControl(c),
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
func NewControl(e *coredata.Control) *Control {
|
func NewControl(c *coredata.Control) *Control {
|
||||||
return &Control{}
|
return &Control{
|
||||||
|
ID: c.ID,
|
||||||
|
Name: c.Name,
|
||||||
|
Description: c.Description,
|
||||||
|
CreatedAt: c.CreatedAt,
|
||||||
|
UpdatedAt: c.UpdatedAt,
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user