This commit is contained in:
2025-12-26 16:40:32 +03:00
commit 4f1be2c3db
37 changed files with 2222 additions and 0 deletions

19
DTOs/MJournal.cs Normal file
View 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
View 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
View 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; } = [];
}
}

View 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
View 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
View 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;
}
}