Add Created date to user, add verified column in list and make user list use same model as modern lists

This commit is contained in:
Kukks
2020-10-03 14:12:55 +02:00
parent 9daa424afd
commit 3d2b4cbfa8
13 changed files with 119 additions and 100 deletions

View File

@@ -1,20 +1,19 @@
using System;
using System.Collections.Generic;
namespace BTCPayServer.Models.ServerViewModels
{
public class UsersViewModel
public class UsersViewModel: BasePagingViewModel
{
public class UserViewModel
{
public string Id { get; set; }
public string Name { get; set; }
public string Email { get; set; }
public bool Verified { get; set; }
public bool IsAdmin { get; set; }
public DateTimeOffset? Created { get; set; }
}
public int Skip { get; set; }
public int Count { get; set; }
public int Total { get; set; }
public List<UserViewModel> Users { get; set; } = new List<UserViewModel>();
}