verifaction

This commit is contained in:
mmrbnjd
2025-06-28 16:13:40 +03:30
parent c0b47129d4
commit 22fe43979a
10 changed files with 121 additions and 18 deletions

View File

@@ -7,7 +7,7 @@ using System.Threading.Tasks;
namespace Common.Dtos.Exper
{
public class ADD_ExperDto
{
{ //From CompanyManager
public string FullName { get; set; }
public string UserName { get; set; }
public string Password { get; set; }

View File

@@ -0,0 +1,15 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Common.Dtos.Exper
{
public class ChangeAvailable_ExperDto
{
//From CompanyManager
public int ID { get; set; }
public bool Available { get; set; }
}
}

View File

@@ -0,0 +1,16 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Common.Dtos.Exper
{
public class ChangePassword_ExperDto
{
//From User And CompanyManager
public int ID { get; set; }
public string? OldPassWord { get; set; }
public string NewPassWord { get; set; }
}
}

View File

@@ -0,0 +1,17 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Common.Dtos.Exper
{
public class Read_ExperDto
{
public int ID { get; set; }
public string FullName { get; set; }
public string UserName { get; set; }
public string Password { get; set; }
public bool Available { get; set; }
}
}

View File

@@ -8,6 +8,7 @@ namespace Common.Dtos.Exper
{
public class Update_ExperDto
{
//From User and CompanyManager
public int ID { get; set; }
// For Update
public string FullName { get; set; }

View File

@@ -0,0 +1,15 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Common.Dtos.Exper
{
public class ChangeAvailable_GroupDto
{
//From CompanyManager
public int ID { get; set; }
public bool Available { get; set; }
}
}

View File

@@ -0,0 +1,17 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Common.Dtos.Group
{
public class Update_GroupDto
{
public int ID { get; set; }
public string Name { get; set; }
public byte[]? img { get; set; }
public string? Info { get; set; }
}
}

View File

@@ -1,17 +0,0 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Common.Dtos
{
public class Read_UserDto
{
// CompanyUser OR Exper OR User
public int ID { get; set; }
public string? FullName { get; set; }
public string? UserName { get; set; }
public string? Mobile { get; set; }
}
}

View File

@@ -0,0 +1,15 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Common.Enums
{
public enum VerificationCodeType
{
PhoneNumberConfirmed,
ForgetPassword,
Login
}
}

View File

@@ -0,0 +1,24 @@
using Common.Enums;
using Hushian.Domain.Abstracts;
namespace Identity.Models
{
public class VerificationCode : BaseEntity
{
public VerificationCode(int companyIDorUserId, VerificationCodeType type, string code)
{
CompanyIDorUserId = companyIDorUserId;
Type = type;
Code = code;
}
public int ID { get; set; }
public int CompanyIDorUserId { get; set; }
public VerificationCodeType Type { get; set; }
public string Code { get; set; }
public string? newPassword { get; set; }
public string? Token { get; set; }
public DateTime Cdatetime
{ get; set; } = DateTime.Now;
}
}