Blame view

泰额版/Food Labeling Management Code/Yi.Abp.Net8/module/food-labeling-us/FoodLabeling.Application.Contracts/Dtos/Label/LabelTemplatePreviewDto.cs 1.18 KB
59e51671   “wangming”   1
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
  using System.Collections.Generic;
  using System.Text.Json.Serialization;
  using FoodLabeling.Application.Contracts.Dtos.LabelTemplate;
  
  namespace FoodLabeling.Application.Contracts.Dtos.Label;
  
  /// <summary>
  /// 预览输出:与前端 LabelCanvas/LabelPreviewOnly  LabelTemplate 结构尽量一致
  /// </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; }
  
      [JsonPropertyName("appliedLocation")]
      public string AppliedLocation { get; set; } = "ALL";
  
      [JsonPropertyName("showRuler")]
      public bool ShowRuler { get; set; }
  
      [JsonPropertyName("showGrid")]
      public bool ShowGrid { get; set; }
  
      [JsonPropertyName("elements")]
      public List<LabelTemplateElementDto> Elements { get; set; } = new();
  }