verifaction
This commit is contained in:
@@ -7,7 +7,7 @@ using System.Threading.Tasks;
|
|||||||
namespace Common.Dtos.Exper
|
namespace Common.Dtos.Exper
|
||||||
{
|
{
|
||||||
public class ADD_ExperDto
|
public class ADD_ExperDto
|
||||||
{
|
{ //From CompanyManager
|
||||||
public string FullName { get; set; }
|
public string FullName { get; set; }
|
||||||
public string UserName { get; set; }
|
public string UserName { get; set; }
|
||||||
public string Password { get; set; }
|
public string Password { get; set; }
|
||||||
|
15
Common/Dtos/Exper/ChangeAvailable_ExperDto.cs
Normal file
15
Common/Dtos/Exper/ChangeAvailable_ExperDto.cs
Normal 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; }
|
||||||
|
}
|
||||||
|
}
|
16
Common/Dtos/Exper/ChangePassword_ExperDto.cs
Normal file
16
Common/Dtos/Exper/ChangePassword_ExperDto.cs
Normal 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; }
|
||||||
|
}
|
||||||
|
}
|
17
Common/Dtos/Exper/Read_ExperDto.cs
Normal file
17
Common/Dtos/Exper/Read_ExperDto.cs
Normal 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; }
|
||||||
|
}
|
||||||
|
}
|
@@ -8,6 +8,7 @@ namespace Common.Dtos.Exper
|
|||||||
{
|
{
|
||||||
public class Update_ExperDto
|
public class Update_ExperDto
|
||||||
{
|
{
|
||||||
|
//From User and CompanyManager
|
||||||
public int ID { get; set; }
|
public int ID { get; set; }
|
||||||
// For Update
|
// For Update
|
||||||
public string FullName { get; set; }
|
public string FullName { get; set; }
|
||||||
|
15
Common/Dtos/Group/ChangeAvailable_GroupDto.cs
Normal file
15
Common/Dtos/Group/ChangeAvailable_GroupDto.cs
Normal 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; }
|
||||||
|
}
|
||||||
|
}
|
17
Common/Dtos/Group/Update_GroupDto.cs
Normal file
17
Common/Dtos/Group/Update_GroupDto.cs
Normal 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; }
|
||||||
|
|
||||||
|
}
|
||||||
|
}
|
@@ -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; }
|
|
||||||
}
|
|
||||||
}
|
|
15
Common/Enums/VerificationCodeType.cs
Normal file
15
Common/Enums/VerificationCodeType.cs
Normal 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
|
||||||
|
}
|
||||||
|
}
|
24
Hushian.Domain/Entites/VerificationCode.cs
Normal file
24
Hushian.Domain/Entites/VerificationCode.cs
Normal 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;
|
||||||
|
}
|
||||||
|
}
|
Reference in New Issue
Block a user