feat:furion rbac搭建

This commit is contained in:
橙子
2023-04-13 21:12:06 +08:00
parent 18696ec542
commit b9dad93c9d
194 changed files with 9557 additions and 75 deletions

View File

@@ -0,0 +1,17 @@
using Yi.Furion.Rbac.Core.EnumClasses;
namespace Yi.Furion.Rbac.Application.System.Dtos.User
{
public class ProfileUpdateInputVo
{
public string Name { get; set; }
public int? Age { get; set; }
public string Nick { get; set; }
public string Email { get; set; }
public string Address { get; set; }
public long? Phone { get; set; }
public string Introduction { get; set; }
public string Remark { get; set; }
public SexEnum? Sex { get; set; }
}
}

View File

@@ -0,0 +1,27 @@
using Yi.Furion.Rbac.Core.EnumClasses;
namespace Yi.Furion.Rbac.Application.System.Dtos.User
{
/// <summary>
/// User输入创建对象
/// </summary>
public class UserCreateInputVo
{
public string Name { get; set; }
public int? Age { get; set; }
public string UserName { get; set; } = string.Empty;
public string Password { get; set; } = string.Empty;
public string Icon { get; set; }
public string Nick { get; set; }
public string Email { get; set; }
public string Address { get; set; }
public long? Phone { get; set; }
public string Introduction { get; set; }
public string Remark { get; set; }
public SexEnum Sex { get; set; } = SexEnum.Unknown;
public List<long> RoleIds { get; set; }
public List<long> PostIds { get; set; }
public long? DeptId { get; set; }
public bool State { get; set; } = true;
}
}

View File

@@ -0,0 +1,18 @@
using Yi.Framework.Infrastructure.Ddd.Dtos;
namespace Yi.Furion.Rbac.Application.System.Dtos.User
{
public class UserGetListInputVo : PagedAllResultRequestDto
{
public string Name { get; set; }
public string UserName { get; set; }
public long? Phone { get; set; }
public bool? State { get; set; }
public long? DeptId { get; set; }
public string Ids { get; set; }
}
}

View File

@@ -0,0 +1,30 @@
using Yi.Framework.Infrastructure.Ddd.Dtos.Abstract;
using Yi.Furion.Rbac.Core.EnumClasses;
namespace Yi.Furion.Rbac.Application.System.Dtos.User
{
public class UserGetListOutputDto : IEntityDto<long>
{
public long Id { get; set; }
public string Name { get; set; }
public int? Age { get; set; }
public string UserName { get; set; } = string.Empty;
public string Icon { get; set; }
public string Nick { get; set; }
public string Email { get; set; }
public string Ip { get; set; }
public string Address { get; set; }
public long? Phone { get; set; }
public string Introduction { get; set; }
public string Remark { get; set; }
public SexEnum Sex { get; set; } = SexEnum.Unknown;
public long? DeptId { get; set; }
public DateTime CreationTime { get; set; } = DateTime.Now;
public long? CreatorId { get; set; }
public bool State { get; set; }
public string DeptName { get; set; }
}
}

View File

@@ -0,0 +1,35 @@
using Yi.Framework.Infrastructure.Ddd.Dtos.Abstract;
using Yi.Furion.Rbac.Application.System.Dtos.Dept;
using Yi.Furion.Rbac.Application.System.Dtos.Post;
using Yi.Furion.Rbac.Application.System.Dtos.Role;
using Yi.Furion.Rbac.Core.EnumClasses;
namespace Yi.Furion.Rbac.Application.System.Dtos.User
{
public class UserGetOutputDto : IEntityDto<long>
{
public long Id { get; set; }
public string Name { get; set; }
public int? Age { get; set; }
public string UserName { get; set; } = string.Empty;
public string Icon { get; set; }
public string Nick { get; set; }
public string Email { get; set; }
public string Ip { get; set; }
public string Address { get; set; }
public long? Phone { get; set; }
public string Introduction { get; set; }
public string Remark { get; set; }
public SexEnum Sex { get; set; } = SexEnum.Unknown;
public bool State { get; set; }
public DateTime CreationTime { get; set; }
public long DeptId { get; set; }
public DeptGetOutputDto Dept { get; set; }
public List<PostGetListOutputDto> Posts { get; set; }
public List<RoleGetListOutputDto> Roles { get; set; }
}
}

View File

@@ -0,0 +1,28 @@
using Yi.Furion.Rbac.Core.EnumClasses;
namespace Yi.Furion.Rbac.Application.System.Dtos.User
{
public class UserUpdateInputVo
{
public string Name { get; set; }
public int? Age { get; set; }
public string UserName { get; set; }
[AdaptIgnore]
public string Password { get; set; }
public string Icon { get; set; }
public string Nick { get; set; }
public string Email { get; set; }
public string Ip { get; set; }
public string Address { get; set; }
public long? Phone { get; set; }
public string Introduction { get; set; }
public string Remark { get; set; }
public SexEnum? Sex { get; set; }
public long? DeptId { get; set; }
public List<long> PostIds { get; set; }
public List<long> RoleIds { get; set; }
public bool? State { get; set; }
}
}