mirror of
https://github.com/DrizzleTime/Foxel.git
synced 2026-06-03 06:29:56 +08:00
refactor: restructure directories to improve module organization Foxel.Models.Request.Picture - Foxel.Models.Request.Tag - Foxel.Models.Request.Auth - Foxel.Models.Request.Picture
This commit is contained in:
@@ -2,7 +2,7 @@ using Foxel.Models.Response.Picture;
|
||||
|
||||
namespace Foxel.Models.Response.Album;
|
||||
|
||||
public class AlbumResponse
|
||||
public record AlbumResponse
|
||||
{
|
||||
public int Id { get; set; }
|
||||
public string Name { get; set; } = string.Empty;
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
namespace Foxel.Models.Response.Auth;
|
||||
|
||||
public class UserProfile
|
||||
public record UserProfile
|
||||
{
|
||||
public int Id { get; set; }
|
||||
public string UserName { get; set; } = string.Empty;
|
||||
@@ -8,7 +8,7 @@ public class UserProfile
|
||||
public string? RoleName { get; set; }
|
||||
}
|
||||
|
||||
public class AuthResponse
|
||||
public record AuthResponse
|
||||
{
|
||||
public string Token { get; set; } = string.Empty;
|
||||
public UserProfile User { get; set; } = new();
|
||||
|
||||
@@ -2,7 +2,7 @@ using Foxel.Models.DataBase;
|
||||
|
||||
namespace Foxel.Models.Response.Picture;
|
||||
|
||||
public class PictureResponse
|
||||
public record PictureResponse
|
||||
{
|
||||
public int Id { get; set; }
|
||||
public string Name { get; set; } = string.Empty;
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
namespace Foxel.Models.Response.Tag;
|
||||
|
||||
public class TagResponse
|
||||
public record TagResponse
|
||||
{
|
||||
public int Id { get; set; }
|
||||
public string Name { get; set; } = string.Empty;
|
||||
@@ -10,7 +10,7 @@ public class TagResponse
|
||||
public DateTime UpdatedAt { get; set; }
|
||||
}
|
||||
|
||||
public class TagWithCount
|
||||
public record TagWithCount
|
||||
{
|
||||
public int Id { get; set; }
|
||||
public string Name { get; set; } = string.Empty;
|
||||
|
||||
Reference in New Issue
Block a user