43 lines
1.6 KiB
C#
43 lines
1.6 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);
|
|
|
|
#region Mahan
|
|
List<AccountViewModel> AccountsForAssign(long accountId);
|
|
List<AccountViewModel> GetAccountsByPositionId(long positionId);
|
|
|
|
List<AccountViewModel> GetAccountLowerPositionvalue();
|
|
OperationResult ReLogin();
|
|
|
|
#endregion
|
|
}
|
|
}
|