using Connected.Annotations; using Connected.ServiceModel; using System.Collections.Immutable; namespace Connected.Security.Identity; [Service] [ServiceUrl(SecurityRoutes.Users)] public interface IUserService { [ServiceMethod(ServiceMethodVerbs.Get)] Task?> Query(); [ServiceMethod(ServiceMethodVerbs.Get)] Task?> Query(PrimaryKeyListArgs e); [ServiceMethod(ServiceMethodVerbs.Get | ServiceMethodVerbs.Post)] Task Select(PrimaryKeyArgs args); [ServiceMethod(ServiceMethodVerbs.Get | ServiceMethodVerbs.Post)] Task Resolve(UserResolveArgs args); [ServiceMethod(ServiceMethodVerbs.Post)] Task Insert(UserInsertArgs args); [ServiceMethod(ServiceMethodVerbs.Post | ServiceMethodVerbs.Patch)] Task Update(UserUpdateArgs args); [ServiceMethod(ServiceMethodVerbs.Post)] Task UpdatePassword(UserPasswordArgs args); [ServiceMethod(ServiceMethodVerbs.Post | ServiceMethodVerbs.Delete)] Task Delete(PrimaryKeyArgs args); }