24 lines
671 B
C#
24 lines
671 B
C#
using OnlineSalesAutoCrop.CoreAPI.Models.Objects.Setups;
|
|
using System.Collections.Generic;
|
|
using System.Linq;
|
|
|
|
namespace OnlineSalesAutoCrop.CoreAPI.Models.Responses.Setups
|
|
{
|
|
public class AuthSummariesResponse : ResponseBase
|
|
{
|
|
public List<AuthModule> Value { get; set; } = [];
|
|
}
|
|
|
|
public class PendingAuthResponse : ResponseBase
|
|
{
|
|
public List<PendingAuthModule> Value { get; set; } = [];
|
|
public bool HasBoth => Value.Any(x => x.PendingAuthItems > 0 && x.PendingItems > 0);
|
|
}
|
|
|
|
public class AuthDetailsResponse : ResponseBase
|
|
{
|
|
public List<DynamicColumn> Columns { get; set; } = [];
|
|
public List<Dictionary<string, object>> Data { get; set; } = [];
|
|
}
|
|
}
|