90 lines
3.2 KiB
C#
90 lines
3.2 KiB
C#
using _0_Framework.Application;
|
|
|
|
using System.Collections.Generic;
|
|
using System.Threading.Tasks;
|
|
using AccountManagement.Application.Contracts.ProgramManager;
|
|
using Shared.Contracts.PmUser.Queries;
|
|
|
|
namespace AccountManagement.Application.Contracts.Account;
|
|
|
|
public interface IAccountApplication
|
|
{
|
|
AccountViewModel GetAccountBy(long id);
|
|
/// <summary>
|
|
/// ایجاد کاربر گزارشگیر و پروگرام منیجر
|
|
/// </summary>
|
|
/// <param name="command"></param>
|
|
/// <returns></returns>
|
|
Task<OperationResult> Create(CreateAccount command);
|
|
OperationResult RegisterClient(RegisterAccount command);
|
|
Task<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();
|
|
Task<List<AccountSelectListViewModel>> GetAdminSelectList();
|
|
|
|
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);
|
|
List<AccountViewModel> GetAdminAccountsNew();
|
|
|
|
void CameraLogin(CameraLoginRequest request);
|
|
|
|
/// <summary>
|
|
/// دریافت کاربر پروگرام منیجر با اکانت آی دی
|
|
/// </summary>
|
|
/// <param name="accountId"></param>
|
|
/// <returns></returns>
|
|
Task<GetPmUserDto> GetPmUserByAccountId(long accountId);
|
|
}
|
|
|
|
public class CameraLoginRequest
|
|
{
|
|
public string UserName { get; set; }
|
|
public string Password { get; set; }
|
|
} |