Changeset e882b92 for ChapterX.Application/Collaboration/Commands
- Timestamp:
- 08/24/26 20:57:09 (13 days ago)
- Branches:
- main
- Parents:
- a6e33d1
- Location:
- ChapterX.Application/Collaboration/Commands
- Files:
-
- 4 edited
-
AddHandler.cs (modified) (1 diff)
-
AddRequest.cs (modified) (1 diff)
-
UpdateHandler.cs (modified) (1 diff)
-
UpdateRequest.cs (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
ChapterX.Application/Collaboration/Commands/AddHandler.cs
ra6e33d1 re882b92 22 22 UserId = request.UserId, 23 23 StoryId = request.StoryId, 24 Role = request.Role, 25 PermissionLevel = request.PermissionLevel, 24 26 CreatedAt = DateTime.UtcNow 25 27 }; -
ChapterX.Application/Collaboration/Commands/AddRequest.cs
ra6e33d1 re882b92 3 3 namespace ChapterX.Application.Collaboration.Commands 4 4 { 5 public record AddRequest(int UserId, int StoryId, string Role ) : IRequest<AddResponse>;5 public record AddRequest(int UserId, int StoryId, string Role, int? PermissionLevel = null) : IRequest<AddResponse>; 6 6 } -
ChapterX.Application/Collaboration/Commands/UpdateHandler.cs
ra6e33d1 re882b92 22 22 return new UpdateResponse(false); 23 23 24 // No updatable fields on Collaboration entity 24 collaboration.Role = request.Role; 25 collaboration.PermissionLevel = request.PermissionLevel; 25 26 26 27 await _collaborationRepository.UpdateAsync(collaboration, cancellationToken); -
ChapterX.Application/Collaboration/Commands/UpdateRequest.cs
ra6e33d1 re882b92 3 3 namespace ChapterX.Application.Collaboration.Commands 4 4 { 5 public record UpdateRequest(int Id, string Role ) : IRequest<UpdateResponse>;5 public record UpdateRequest(int Id, string Role, int? PermissionLevel = null) : IRequest<UpdateResponse>; 6 6 }
Note:
See TracChangeset
for help on using the changeset viewer.
