diff --git a/Common/Dtos/Exper/ADD_ExperDto.cs b/Common/Dtos/Exper/ADD_ExperDto.cs index 23abe27..d4f73db 100644 --- a/Common/Dtos/Exper/ADD_ExperDto.cs +++ b/Common/Dtos/Exper/ADD_ExperDto.cs @@ -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; } diff --git a/Common/Dtos/Exper/ChangeAvailable_ExperDto.cs b/Common/Dtos/Exper/ChangeAvailable_ExperDto.cs new file mode 100644 index 0000000..0a44bce --- /dev/null +++ b/Common/Dtos/Exper/ChangeAvailable_ExperDto.cs @@ -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; } + } +} diff --git a/Common/Dtos/Exper/ChangePassword_ExperDto.cs b/Common/Dtos/Exper/ChangePassword_ExperDto.cs new file mode 100644 index 0000000..f464f9c --- /dev/null +++ b/Common/Dtos/Exper/ChangePassword_ExperDto.cs @@ -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; } + } +} diff --git a/Common/Dtos/Exper/Read_ExperDto.cs b/Common/Dtos/Exper/Read_ExperDto.cs new file mode 100644 index 0000000..2451f1c --- /dev/null +++ b/Common/Dtos/Exper/Read_ExperDto.cs @@ -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; } + } +} diff --git a/Common/Dtos/Exper/Update_ExperDto.cs b/Common/Dtos/Exper/Update_ExperDto.cs index a703d2b..73a3217 100644 --- a/Common/Dtos/Exper/Update_ExperDto.cs +++ b/Common/Dtos/Exper/Update_ExperDto.cs @@ -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; } diff --git a/Common/Dtos/Group/ChangeAvailable_GroupDto.cs b/Common/Dtos/Group/ChangeAvailable_GroupDto.cs new file mode 100644 index 0000000..b14146d --- /dev/null +++ b/Common/Dtos/Group/ChangeAvailable_GroupDto.cs @@ -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; } + } +} diff --git a/Common/Dtos/Group/Update_GroupDto.cs b/Common/Dtos/Group/Update_GroupDto.cs new file mode 100644 index 0000000..97613d3 --- /dev/null +++ b/Common/Dtos/Group/Update_GroupDto.cs @@ -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; } + + } +} diff --git a/Common/Dtos/Read_UserDto.cs b/Common/Dtos/Read_UserDto.cs deleted file mode 100644 index e65a538..0000000 --- a/Common/Dtos/Read_UserDto.cs +++ /dev/null @@ -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; } - } -} diff --git a/Common/Enums/VerificationCodeType.cs b/Common/Enums/VerificationCodeType.cs new file mode 100644 index 0000000..538385c --- /dev/null +++ b/Common/Enums/VerificationCodeType.cs @@ -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 + } +} diff --git a/Hushian.Domain/Entites/VerificationCode.cs b/Hushian.Domain/Entites/VerificationCode.cs new file mode 100644 index 0000000..0ccc9c0 --- /dev/null +++ b/Hushian.Domain/Entites/VerificationCode.cs @@ -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; + } +}