...
This commit is contained in:
21
Presentation/HushianWebApp/Data/Dtos/User/AddUserDto.cs
Normal file
21
Presentation/HushianWebApp/Data/Dtos/User/AddUserDto.cs
Normal 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; }
|
||||
}
|
||||
}
|
@@ -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; }
|
||||
}
|
||||
}
|
@@ -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; }
|
||||
|
||||
}
|
||||
}
|
@@ -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; }
|
||||
|
||||
}
|
||||
}
|
@@ -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; }
|
||||
|
||||
}
|
||||
}
|
@@ -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; }
|
||||
}
|
||||
}
|
17
Presentation/HushianWebApp/Data/Dtos/User/EditUserDto.cs
Normal file
17
Presentation/HushianWebApp/Data/Dtos/User/EditUserDto.cs
Normal 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; }
|
||||
}
|
||||
}
|
@@ -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; }
|
||||
}
|
||||
}
|
18
Presentation/HushianWebApp/Data/Dtos/User/ReadUserDto.cs
Normal file
18
Presentation/HushianWebApp/Data/Dtos/User/ReadUserDto.cs
Normal 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; }
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user