Files
Backend-Api/AccountManagement.Application.Contracts/SubAccount/ISubAccountApplication.cs

32 lines
1.6 KiB
C#

using _0_Framework.Application;
using System.Collections.Generic;
using System.Threading.Tasks;
namespace AccountManagement.Application.Contracts.SubAccount
{
public interface ISubAccountApplication
{
OperationResult Create(CreateSubAccount cmd, List<long> accountWorkshopsList);
OperationResult EditSubAccount(EditSubAccount cmd, List<long> accountWorkshopsList);
OperationResult ChangePassword(SubAccountChangePassword cmd);
OperationResult Delete(long id);
SubAccountViewModel GetDetails(long subAccountId);
OperationResult CreateRole(CreateSubAccountRole command);
OperationResult EditRole(EditSubAccountRole cmd);
List<SubAccountViewModel> GetAllByAccountId(long accountId, int pageIndex);
OperationResult AssignRoleToSubAccount(AssignSubAccountRole command);
OperationResult DeleteRole(long id);
List<SubAccountRoleViewModel> GetSubAccountRolesByAccountId(long accountId);
OperationResult Deactivate(long subAccountId);
OperationResult Activate(long subAccountId);
List<SubAccountsGroupedByRoleViewModel> GetSubAccountsByAccountIdGroupedByRole(long accountId);
SubAccountRoleViewModel GetRoleDetails(long subAccountRoleId);
OperationResult ChangePasswordAndPhoneNumber(SubAccountChangePasswordAndPhoneNumber cmd);
OperationResult IsPhoneNumberAndPasswordValid(long accountId, string phoneNumber, string password, string rePassword);
Task<OperationResult> SendVerifyCodeForPasswordChange(string phone, long id);
SubAccountViewModel GetByVerifyCodeAndPhoneNumber(string code, string phone);
}
}