Merge pull request #13 from StewKI/feature-shape-author

Added author to shape model
This commit is contained in:
Veljko
2026-02-10 13:00:32 +01:00
committed by GitHub
9 changed files with 37 additions and 8 deletions

View File

@@ -36,6 +36,7 @@ public static partial class ShapeMappers
return Line.Create(
shape.Id.ToString(),
shape.WhiteboardId.ToString(),
shape.AuthorId.ToString(),
shape.PositionX, shape.PositionY,
shape.Color,
shape.EndPositionX!.Value, shape.EndPositionY!.Value,
@@ -47,6 +48,7 @@ public static partial class ShapeMappers
return Arrow.Create(
shape.Id.ToString(),
shape.WhiteboardId.ToString(),
shape.AuthorId.ToString(),
shape.PositionX, shape.PositionY,
shape.Color,
shape.EndPositionX!.Value, shape.EndPositionY!.Value,
@@ -58,6 +60,7 @@ public static partial class ShapeMappers
return TextShape.Create(
shape.Id.ToString(),
shape.WhiteboardId.ToString(),
shape.AuthorId.ToString(),
shape.PositionX, shape.PositionY,
shape.Color,
shape.TextValue!, shape.TextSize!.Value);

View File

@@ -13,6 +13,9 @@ public class Shape
public Guid WhiteboardId { get; set; }
public Whiteboard.Whiteboard Whiteboard { get; set; } = null!;
public Guid AuthorId { get; set; }
public User.User Author { get; set; } = null!;
public ShapeType Type { get; set; }
public int PositionX { get; set; }