Query returns a query builder for DirectLink.
()
| 569 | |
| 570 | // Query returns a query builder for DirectLink. |
| 571 | func (c *DirectLinkClient) Query() *DirectLinkQuery { |
| 572 | return &DirectLinkQuery{ |
| 573 | config: c.config, |
| 574 | ctx: &QueryContext{Type: TypeDirectLink}, |
| 575 | inters: c.Interceptors(), |
| 576 | } |
| 577 | } |
| 578 | |
| 579 | // Get returns a DirectLink entity by its id. |
| 580 | func (c *DirectLinkClient) Get(ctx context.Context, id int) (*DirectLink, error) { |