Files
Backend-Api/AccountManagement.Application.Contracts/Account/IAccountApplication.cs

65 lines
2.4 KiB
C#

using _0_Framework.Application;
using System.Collections.Generic;
using System.Threading.Tasks;
namespace AccountManagement.Application.Contracts.Account;
public interface IAccountApplication
{
AccountViewModel GetAccountBy(long id);
OperationResult Create(CreateAccount command);
OperationResult RegisterClient(RegisterAccount command);
OperationResult Edit(EditAccount command);
OperationResult EditClient(EditClientAccount command);
OperationResult ChangePassword(ChangePassword command);
OperationResult Login(Login command);
OperationResult LoginWithMobile(long id);
EditAccount GetDetails(long id);
List<AccountViewModel> Search(AccountSearchModel searchModel);
void Logout();
List<AccountViewModel> GetAccounts();
List<AccountViewModel> GetClientsAccount();
Task<OperationResult> SetVerifyCode(string phone, long id);
Task<OperationResult> SendVerifyCodeToChangingPass(string phone, long id);
EditAccount GetByVerifyCode(string code, string phone);
EditAccount GetByUserNameAndId(long id, string username);
OperationResult Active(long id);
OperationResult DeActive(long id);
OperationResult DirectLogin(long id);
AccountLeftWorkViewModel WorkshopList(long accountId);
OperationResult SaveWorkshopAccount(
List<WorkshopAccountlistViewModel> workshopAccountList,
string startDate,
string leftDate,
long accountId);
OperationResult CreateNewWorkshopAccount(long currentAccountId, long newAccountId);
#region Mahan
List<AccountViewModel> AccountsForAssign(long taskId);
List<AccountViewModel> GetAccountsByPositionId(long positionId);
List<AccountViewModel> GetAccountEqualToLowerPositionValue();
OperationResult ReLogin();
#endregion
#region Pooya
//UserClaimsResponseDTO GetClaimsForSignIn(Login command);
OperationResult ChangePasswordAndPhoneNumber(AccountChangePasswordAndPhoneNumber command);
OperationResult IsPhoneNumberAndPasswordValid(long accountId, string phoneNumber, string password, string rePassword);
#endregion
OperationResult DirectCameraLogin(long cameraAccountId);
/// <summary>
/// چک میکند که آیا اکانتی با این نام کاربری وجود دارد یا نه
/// </summary>
/// <param name="userName"></param>
/// <returns></returns>
public bool CheckExistClientAccount(string userName);
}