Initial commit

This commit is contained in:
shiyu
2025-05-18 20:48:20 +08:00
commit cde2c7b997
79 changed files with 5713 additions and 0 deletions

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

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

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

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