Merge pull request #1934 from btcpayserver/better-users

Add Created date to user, add verified column in list and make user l…
This commit is contained in:
Nicolas Dorier
2020-10-08 12:08:16 +09:00
committed by GitHub
14 changed files with 118 additions and 100 deletions

View File

@@ -1,12 +0,0 @@
using System.ComponentModel.DataAnnotations;
namespace BTCPayServer.Models.ServerViewModels
{
public class UserViewModel
{
public string Id { get; set; }
public string Email { get; set; }
[Display(Name = "Is admin")]
public bool IsAdmin { get; set; }
}
}

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>();
}