mirror of
https://github.com/DrizzleTime/Foxel.git
synced 2026-06-06 08:00:13 +08:00
Initial commit
This commit is contained in:
15
Models/Response/Album/AlbumResponse.cs
Normal file
15
Models/Response/Album/AlbumResponse.cs
Normal file
@@ -0,0 +1,15 @@
|
||||
using Foxel.Models.Response.Picture;
|
||||
|
||||
namespace Foxel.Models.Response.Album;
|
||||
|
||||
public class AlbumResponse
|
||||
{
|
||||
public int Id { get; set; }
|
||||
public string Name { get; set; } = string.Empty;
|
||||
public string Description { get; set; } = string.Empty;
|
||||
public int PictureCount { get; set; } = 0;
|
||||
public int UserId { get; set; }
|
||||
public string? Username { get; set; }
|
||||
public DateTime CreatedAt { get; set; }
|
||||
public DateTime UpdatedAt { get; set; }
|
||||
}
|
||||
15
Models/Response/Auth/AuthResponse.cs
Normal file
15
Models/Response/Auth/AuthResponse.cs
Normal file
@@ -0,0 +1,15 @@
|
||||
namespace Foxel.Models.Response.Auth;
|
||||
|
||||
public class UserProfile
|
||||
{
|
||||
public int Id { get; set; }
|
||||
public string UserName { get; set; } = string.Empty;
|
||||
public string Email { get; set; } = string.Empty;
|
||||
public string? RoleName { get; set; }
|
||||
}
|
||||
|
||||
public class AuthResponse
|
||||
{
|
||||
public string Token { get; set; } = string.Empty;
|
||||
public UserProfile User { get; set; } = new();
|
||||
}
|
||||
26
Models/Response/Picture/PictureResponse.cs
Normal file
26
Models/Response/Picture/PictureResponse.cs
Normal file
@@ -0,0 +1,26 @@
|
||||
using Foxel.Models.DataBase;
|
||||
|
||||
namespace Foxel.Models.Response.Picture;
|
||||
|
||||
public class PictureResponse
|
||||
{
|
||||
public int Id { get; set; }
|
||||
public string Name { get; set; } = string.Empty;
|
||||
public string? Path { get; set; }
|
||||
public string? ThumbnailPath { get; set; }
|
||||
public string Description { get; set; } = string.Empty;
|
||||
public DateTime CreatedAt { get; set; }
|
||||
public List<string>? Tags { get; set; }
|
||||
public DateTime? TakenAt { get; set; }
|
||||
public ExifInfo? ExifInfo { get; set; }
|
||||
public int? UserId { get; set; }
|
||||
public string? Username { get; set; }
|
||||
public bool IsFavorited { get; set; }
|
||||
public int FavoriteCount { get; set; }
|
||||
public int? AlbumId { get; set; }
|
||||
public string? AlbumName { get; set; }
|
||||
public PermissionType Permission { get; set; } = PermissionType.Public;
|
||||
public ProcessingStatus ProcessingStatus { get; set; }
|
||||
public string? ProcessingError { get; set; }
|
||||
public int ProcessingProgress { get; set; }
|
||||
}
|
||||
19
Models/Response/Tag/TagResponse.cs
Normal file
19
Models/Response/Tag/TagResponse.cs
Normal file
@@ -0,0 +1,19 @@
|
||||
namespace Foxel.Models.Response.Tag;
|
||||
|
||||
public class TagResponse
|
||||
{
|
||||
public int Id { get; set; }
|
||||
public string Name { get; set; } = string.Empty;
|
||||
public string Description { get; set; } = string.Empty;
|
||||
public int PictureCount { get; set; } = 0;
|
||||
public DateTime CreatedAt { get; set; }
|
||||
public DateTime UpdatedAt { get; set; }
|
||||
}
|
||||
|
||||
public class TagWithCount
|
||||
{
|
||||
public int Id { get; set; }
|
||||
public string Name { get; set; } = string.Empty;
|
||||
public string Description { get; set; } = string.Empty;
|
||||
public int Count { get; set; } = 0;
|
||||
}
|
||||
Reference in New Issue
Block a user