output users + roles

This commit is contained in:
2020-04-24 12:46:25 +02:00
parent a44cc4b04d
commit 76e95d34f3
18 changed files with 430 additions and 99 deletions
+15
View File
@@ -0,0 +1,15 @@
using System;
namespace zero.Web.Models
{
public class CountryListModel : ListModel
{
public string Name { get; set; }
public bool IsActive { get; set; }
public bool IsPreferred { get; set; }
public string Code { get; set; }
}
}
+10
View File
@@ -0,0 +1,10 @@
namespace zero.Web.Models
{
public abstract class ListModel
{
/// <summary>
/// Id of the entity
/// </summary>
public string Id { get; set; }
}
}
+15
View File
@@ -0,0 +1,15 @@
namespace zero.Web.Models
{
public class UserListModel : ListModel
{
public string Name { get; set; }
public bool IsActive { get; set; }
public string Email { get; set; }
public string Roles { get; set; }
public string Avatar { get; set; }
}
}
+21
View File
@@ -0,0 +1,21 @@
using System;
using System.Collections.Generic;
using zero.Core.Entities;
namespace zero.Web.Models
{
public class UserRoleEditModel : EditModel
{
public string Name { get; set; }
public bool IsActive { get; set; }
public DateTimeOffset CreatedDate { get; set; }
public string Description { get; set; }
public string Icon { get; set; }
public List<IUserClaim> Claims { get; set; }
}
}
+11
View File
@@ -0,0 +1,11 @@
namespace zero.Web.Models
{
public class UserRoleListModel : ListModel
{
public string Name { get; set; }
public int CountClaims { get; set; }
public string Icon { get; set; }
}
}