GetActiveByID get user by its ID, only active user will be returned.
(ctx context.Context, id int)
| 55 | GetByID(ctx context.Context, id int) (*ent.User, error) |
| 56 | // GetActiveByID get user by its ID, only active user will be returned. |
| 57 | GetActiveByID(ctx context.Context, id int) (*ent.User, error) |
| 58 | // SetStatus Set user to given status |
| 59 | SetStatus(ctx context.Context, u *ent.User, status user.Status) (*ent.User, error) |
| 60 | // AnonymousUser returns the anonymous user. |