changes
This commit is contained in:
19
DTOs/MJournal.cs
Normal file
19
DTOs/MJournal.cs
Normal file
@@ -0,0 +1,19 @@
|
||||
using System.Text.Json.Serialization;
|
||||
|
||||
namespace public_valetax.DTOs
|
||||
{
|
||||
public class MJournal
|
||||
{
|
||||
[JsonPropertyName("text")]
|
||||
public string Text { get; set; } = string.Empty;
|
||||
|
||||
[JsonPropertyName("id")]
|
||||
public long Id { get; set; }
|
||||
|
||||
[JsonPropertyName("eventId")]
|
||||
public long EventId { get; set; }
|
||||
|
||||
[JsonPropertyName("createdAt")]
|
||||
public DateTime CreatedAt { get; set; }
|
||||
}
|
||||
}
|
||||
16
DTOs/MJournalInfo.cs
Normal file
16
DTOs/MJournalInfo.cs
Normal file
@@ -0,0 +1,16 @@
|
||||
using System.Text.Json.Serialization;
|
||||
|
||||
namespace public_valetax.DTOs
|
||||
{
|
||||
public class MJournalInfo
|
||||
{
|
||||
[JsonPropertyName("id")]
|
||||
public long Id { get; set; }
|
||||
|
||||
[JsonPropertyName("eventId")]
|
||||
public long EventId { get; set; }
|
||||
|
||||
[JsonPropertyName("createdAt")]
|
||||
public DateTime CreatedAt { get; set; }
|
||||
}
|
||||
}
|
||||
16
DTOs/MNode.cs
Normal file
16
DTOs/MNode.cs
Normal file
@@ -0,0 +1,16 @@
|
||||
using System.Text.Json.Serialization;
|
||||
|
||||
namespace public_valetax.DTOs
|
||||
{
|
||||
public class MNode
|
||||
{
|
||||
[JsonPropertyName("id")]
|
||||
public long Id { get; set; }
|
||||
|
||||
[JsonPropertyName("name")]
|
||||
public string Name { get; set; } = string.Empty;
|
||||
|
||||
[JsonPropertyName("children")]
|
||||
public ICollection<MNode> Children { get; set; } = [];
|
||||
}
|
||||
}
|
||||
16
DTOs/MRange_MJournalInfo.cs
Normal file
16
DTOs/MRange_MJournalInfo.cs
Normal file
@@ -0,0 +1,16 @@
|
||||
using System.Text.Json.Serialization;
|
||||
|
||||
namespace public_valetax.DTOs
|
||||
{
|
||||
public class MRange_MJournalInfo
|
||||
{
|
||||
[JsonPropertyName("skip")]
|
||||
public int Skip { get; set; }
|
||||
|
||||
[JsonPropertyName("count")]
|
||||
public int Count { get; set; }
|
||||
|
||||
[JsonPropertyName("items")]
|
||||
public ICollection<MJournalInfo> Items { get; set; } = [];
|
||||
}
|
||||
}
|
||||
10
DTOs/TokenInfo.cs
Normal file
10
DTOs/TokenInfo.cs
Normal file
@@ -0,0 +1,10 @@
|
||||
using System.Text.Json.Serialization;
|
||||
|
||||
namespace public_valetax.DTOs
|
||||
{
|
||||
public class TokenInfo
|
||||
{
|
||||
[JsonPropertyName("token")]
|
||||
public string Token { get; set; } = string.Empty;
|
||||
}
|
||||
}
|
||||
16
DTOs/VJournalFilter.cs
Normal file
16
DTOs/VJournalFilter.cs
Normal file
@@ -0,0 +1,16 @@
|
||||
using System.Text.Json.Serialization;
|
||||
|
||||
namespace public_valetax.DTOs
|
||||
{
|
||||
public class VJournalFilter
|
||||
{
|
||||
[JsonPropertyName("from")]
|
||||
public DateTime? From { get; set; }
|
||||
|
||||
[JsonPropertyName("to")]
|
||||
public DateTime? To { get; set; }
|
||||
|
||||
[JsonPropertyName("search")]
|
||||
public string Search { get; set; } = string.Empty;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user