(ctx context.Context, guid string)
| 80 | } |
| 81 | |
| 82 | func (c *oauthClientClient) GetByGUID(ctx context.Context, guid string) (*ent.OAuthClient, error) { |
| 83 | return c.client.OAuthClient.Query(). |
| 84 | Where(oauthclient.GUID(guid), oauthclient.IsEnabled(true)). |
| 85 | First(ctx) |
| 86 | } |
| 87 | |
| 88 | func (c *oauthClientClient) GetByGUIDWithGrants(ctx context.Context, guid string, uid int) (*ent.OAuthClient, error) { |
| 89 | stm := c.client.OAuthClient.Query(). |