Phase 3
This commit is contained in:
parent
9321f5a370
commit
25c2ce53cd
23 changed files with 1746 additions and 68 deletions
|
|
@ -1,4 +1,5 @@
|
|||
using System.ComponentModel.DataAnnotations;
|
||||
using System.Text.Json;
|
||||
|
||||
namespace WordVersioning.Api.Models;
|
||||
|
||||
|
|
@ -12,12 +13,24 @@ public class UploadVersionRequest
|
|||
[Required]
|
||||
public string ClientVersionId { get; set; } = string.Empty;
|
||||
|
||||
/// <summary>JSON object map tag→text จาก content controls (FR-11 — Phase 3 จะใช้ sync เต็มรูปแบบ)</summary>
|
||||
/// <summary>JSON object map tag→text จาก content controls (FR-11)</summary>
|
||||
public string? Fields { get; set; }
|
||||
}
|
||||
|
||||
public record UploadVersionResponse(Guid VersionId, int VersionNumber);
|
||||
|
||||
/// <summary>body ของ POST /api/documents/generate (FR-10)</summary>
|
||||
public class GenerateDocumentRequest
|
||||
{
|
||||
[Required]
|
||||
public Guid TemplateId { get; set; }
|
||||
|
||||
/// <summary>map fieldKey → value (ค่า scalar ทั้งหมด)</summary>
|
||||
public JsonElement Values { get; set; }
|
||||
}
|
||||
|
||||
public record GenerateDocumentResponse(Guid DocumentId, Guid VersionId, int VersionNumber, string DownloadUrl);
|
||||
|
||||
/// <summary>item ของ version history — fields คือ snapshot ที่ parse แล้ว (ถ้ามี)</summary>
|
||||
public record VersionListItem(
|
||||
Guid VersionId,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue