Changeset e882b92 for ChapterX.API
- Timestamp:
- 08/24/26 20:57:09 (13 days ago)
- Branches:
- main
- Parents:
- a6e33d1
- Location:
- ChapterX.API
- Files:
-
- 11 deleted
- 12 edited
-
Controllers/AISuggestionsController.cs (modified) (1 diff)
-
Controllers/ContentTypesController.cs (deleted)
-
Controllers/NotificationsController.cs (modified) (1 diff)
-
Controllers/NotifyController.cs (deleted)
-
Controllers/PermissionLevelsController.cs (deleted)
-
Controllers/RolesController.cs (deleted)
-
Controllers/StatusController.cs (deleted)
-
Controllers/StoriesController.cs (modified) (2 diffs)
-
DTOs/AISuggestionDto.cs (modified) (2 diffs)
-
DTOs/AdminDto.cs (modified) (1 diff)
-
DTOs/CollaborationDto.cs (modified) (2 diffs)
-
DTOs/ContentTypeDto.cs (deleted)
-
DTOs/LikesDto.cs (modified) (1 diff)
-
DTOs/NotificationDto.cs (modified) (1 diff)
-
DTOs/NotifyDto.cs (deleted)
-
DTOs/PermissionLevelDto.cs (deleted)
-
DTOs/RegularUserDto.cs (modified) (1 diff)
-
DTOs/RolesDto.cs (deleted)
-
DTOs/StatusDto.cs (deleted)
-
DTOs/StoryDto.cs (modified) (3 diffs)
-
DTOs/SuggestionTypeDto.cs (deleted)
-
DTOs/UserDto.cs (modified) (1 diff)
-
DTOs/WriterDto.cs (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
ChapterX.API/Controllers/AISuggestionsController.cs
ra6e33d1 re882b92 55 55 appliedAt = s.AppliedAt, 56 56 storyId = s.StoryId, 57 suggestionType s = s.SuggestionTypes.Select(t => t.SuggestionTypeValue),57 suggestionType = s.SuggestionType, 58 58 }); 59 59 return Ok(result); -
ChapterX.API/Controllers/NotificationsController.cs
ra6e33d1 re882b92 35 35 isRead = n.IsRead, 36 36 createdAt = n.CreatedAt, 37 type = n.Type ?? "info", 37 contentType = n.ContentType, 38 storyId = n.StoryId, 38 39 link = n.Link, 39 40 }); -
ChapterX.API/Controllers/StoriesController.cs
ra6e33d1 re882b92 37 37 image = s.Image, 38 38 content = s.Content, 39 status = s.Status, 39 40 matureContent = s.MatureContent, 40 41 createdAt = s.CreatedAt, … … 66 67 image = s.Image, 67 68 content = s.Content, 69 status = s.Status, 68 70 matureContent = s.MatureContent, 69 71 createdAt = s.CreatedAt, -
ChapterX.API/DTOs/AISuggestionDto.cs
ra6e33d1 re882b92 6 6 public string OriginalText { get; set; } = string.Empty; 7 7 public string SuggestedText { get; set; } = string.Empty; 8 public string SuggestionType { get; set; } = string.Empty; 8 9 public bool Accepted { get; set; } 9 10 public DateTime CreatedAt { get; set; } … … 15 16 // Navigation 16 17 public StoryDto Story { get; set; } = null!; 17 public ICollection<SuggestionTypeDto> SuggestionTypes { get; set; } = [];18 18 public ICollection<NeedApprovalDto> NeedApprovals { get; set; } = []; 19 19 } -
ChapterX.API/DTOs/AdminDto.cs
ra6e33d1 re882b92 4 4 { 5 5 public int UserId { get; set; } 6 public DateTime AssignedAt { get; set; } 6 7 7 8 // Navigation -
ChapterX.API/DTOs/CollaborationDto.cs
ra6e33d1 re882b92 7 7 public int UserId { get; set; } 8 8 public int StoryId { get; set; } 9 public string Role { get; set; } = string.Empty; 10 public int? PermissionLevel { get; set; } 9 11 public DateTime CreatedAt { get; set; } 10 12 … … 12 14 public UserDto User { get; set; } = null!; 13 15 public StoryDto Story { get; set; } = null!; 14 public ICollection<RolesDto> Roles { get; set; } = [];15 public ICollection<PermissionLevelDto> PermissionLevels { get; set; } = [];16 16 } 17 17 } -
ChapterX.API/DTOs/LikesDto.cs
ra6e33d1 re882b92 5 5 public int UserId { get; set; } 6 6 public int StoryId { get; set; } 7 public DateTime CreatedAt { get; set; }7 public DateTime LikedAt { get; set; } 8 8 9 9 // Navigation -
ChapterX.API/DTOs/NotificationDto.cs
ra6e33d1 re882b92 7 7 public int Id { get; set; } 8 8 public string Content { get; set; } = string.Empty; 9 public string ContentType { get; set; } = string.Empty; 9 10 public bool IsRead { get; set; } 11 public string? Link { get; set; } 12 public int UserId { get; set; } 13 public int? StoryId { get; set; } 10 14 public DateTime CreatedAt { get; set; } 11 12 // Navigation13 public ICollection<ContentType> ContentTypes { get; set; } = [];14 public ICollection<NotifyDto> Notifies { get; set; } = [];15 15 } 16 16 } -
ChapterX.API/DTOs/RegularUserDto.cs
ra6e33d1 re882b92 4 4 { 5 5 public int UserId { get; set; } 6 public DateTime JoinedAt { get; set; } 6 7 7 8 // Navigation -
ChapterX.API/DTOs/StoryDto.cs
ra6e33d1 re882b92 9 9 public int Id { get; set; } 10 10 public bool MatureContent { get; set; } 11 public string Title { get; set; } = string.Empty; 11 12 public string ShortDescription { get; set; } = string.Empty; 12 13 public string? Image { get; set; } 13 14 public string Content { get; set; } = string.Empty; 15 public string Status { get; set; } = "draft"; 14 16 public DateTime CreatedAt { get; set; } 15 17 public DateTime UpdatedAt { get; set; } … … 19 21 // Navigation 20 22 public WriterDto Writer { get; set; } = null!; 21 public ICollection<StatusDto> Statuses { get; set; } = [];22 23 public ICollection<ChapterDto> Chapters { get; set; } = []; 23 24 public ICollection<HasGenreDto> HasGenres { get; set; } = []; … … 26 27 public ICollection<CollaborationDto> Collaborations { get; set; } = []; 27 28 public ICollection<AISuggestionDto> AISuggestions { get; set; } = []; 28 public ICollection<NotifyDto> Notifies { get; set; } = [];29 29 public ICollection<ReadingListItemsDto> ReadingListItems { get; set; } = []; 30 30 public ICollection<NeedApprovalDto> NeedApprovals { get; set; } = []; -
ChapterX.API/DTOs/UserDto.cs
ra6e33d1 re882b92 23 23 public ICollection<CommentDto> Comments { get; set; } = []; 24 24 public ICollection<CollaborationDto> Collaborations { get; set; } = []; 25 public ICollection<Notif yDto> Notifies { get; set; } = [];25 public ICollection<NotificationDto> Notifications { get; set; } = []; 26 26 } 27 27 } -
ChapterX.API/DTOs/WriterDto.cs
ra6e33d1 re882b92 4 4 { 5 5 public int UserId { get; set; } 6 public string? Bio { get; set; } 6 7 7 8 // Navigation
Note:
See TracChangeset
for help on using the changeset viewer.
