This commit is contained in:
mmrbnjd
2025-07-11 20:37:28 +03:30
parent 1924c88e7a
commit ff342a53c0
156 changed files with 13746 additions and 35 deletions

View File

@@ -0,0 +1,21 @@
using Common.Enums.Identity;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Common.Dtos.User
{
public class AddUserDto
{
public string Id { get; set; } = Guid.NewGuid().ToString();
public string UserName { get; set; }
public string? DefultRoleID { get; set; }
public string PassWord { get; set; }
public string FullName { get; set; }
public string? Email { get; set; }
public string PhoneNumber { get; set; }
public byte[]? img { get; set; }
}
}

View File

@@ -0,0 +1,14 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Common.Dtos.User
{
public class ChangeIsActieUserDto
{
public string UserName { get; set; }
public bool IsActive { 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.User
{
public class ChangePasswordDto
{
public string UserName { get; set; }
public string NewPassword { 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.User
{
public class ChangePasswordFromUserDto
{
public string UserName { get; set; }
public string OldPassword { get; set; }
public string NewPassword { 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.User
{
public class ChangeRoleUserDto
{
public string UserName { get; set; }
public string RoleID { get; set; }
}
}

View File

@@ -0,0 +1,17 @@
using Common.Enums;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Common.Dtos.User
{
public class ConfirmedCodeDto
{
public int Id { get; set; }
public string code { get; set; }
public VerificationCodeType codeType { get; set; }
public string? value { get; set; }
}
}

View File

@@ -0,0 +1,17 @@
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Common.Dtos.User
{
public class EditUserDto
{
public string UserName { get; set; }
public string FullName { get; set; }
public string? Email { get; set; }
public string? PhoneNumber { get; set; }
}
}

View File

@@ -0,0 +1,18 @@
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Common.Dtos.User
{
public class EditUserFromUserDto
{
//key
public string UserName { get; set; }
public string? FullName { get; set; }
public string? Email { get; set; }
public byte[]? img { get; set; }
}
}

View File

@@ -0,0 +1,18 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Common.Dtos.User
{
public class ReadUserDto
{
public string UserName { get; set; }
public string Role { get; set; } = "";
public string FullName { get; set; }
public string? Email { get; set; }
public string? PhoneNumber { get; set; }
public bool IsActive { get; set; }
}
}