Blame view

泰额版/Food Labeling Management Code/Yi.Abp.Net8/module/food-labeling-us/FoodLabeling.Application.Contracts/Dtos/Label/LabelTemplatePreviewDto.cs 1.49 KB
59e51671   “wangming”   1
1
2
3
4
5
6
7
  using System.Collections.Generic;
  using System.Text.Json.Serialization;
  using FoodLabeling.Application.Contracts.Dtos.LabelTemplate;
  
  namespace FoodLabeling.Application.Contracts.Dtos.Label;
  
  /// <summary>
2893c050   李曜臣   2026-07-13
8
  /// Preview payload aligned with frontend LabelCanvas / LabelPreviewOnly template shape.
59e51671   “wangming”   1
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
  /// </summary>
  public class LabelTemplatePreviewDto
  {
      [JsonPropertyName("id")]
      public string Id { get; set; } = string.Empty;
  
      [JsonPropertyName("name")]
      public string Name { get; set; } = string.Empty;
  
      [JsonPropertyName("labelType")]
      public string LabelType { get; set; } = string.Empty;
  
      [JsonPropertyName("unit")]
      public string Unit { get; set; } = string.Empty;
  
      [JsonPropertyName("width")]
      public decimal Width { get; set; }
  
      [JsonPropertyName("height")]
      public decimal Height { get; set; }
  
2893c050   李曜臣   2026-07-13
30
31
32
33
      /// <summary>打印方向:vertical / horizontal</summary>
      [JsonPropertyName("printOrientation")]
      public string PrintOrientation { get; set; } = "vertical";
  
59e51671   “wangming”   1
34
35
36
37
38
39
40
41
42
      [JsonPropertyName("appliedLocation")]
      public string AppliedLocation { get; set; } = "ALL";
  
      [JsonPropertyName("showRuler")]
      public bool ShowRuler { get; set; }
  
      [JsonPropertyName("showGrid")]
      public bool ShowGrid { get; set; }
  
2893c050   李曜臣   2026-07-13
43
44
45
46
      /// <summary>Label outer border: none / line / dotted</summary>
      [JsonPropertyName("border")]
      public string Border { get; set; } = "none";
  
59e51671   “wangming”   1
47
48
49
      [JsonPropertyName("elements")]
      public List<LabelTemplateElementDto> Elements { get; set; } = new();
  }