Blame view

泰额版/Food Labeling Management Code/Yi.Abp.Net8/module/food-labeling-us/FoodLabeling.Application.Contracts/Dtos/LabelTemplate/LabelTemplateCreateInputVo.cs 2.02 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
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
  using System.Text.Json.Serialization;
  
  namespace FoodLabeling.Application.Contracts.Dtos.LabelTemplate;
  
  public class LabelTemplateCreateInputVo
  {
      /// <summary>
      /// editor JSON 里的 id,对应数据库 fl_label_template.TemplateCode
      /// </summary>
      [JsonPropertyName("id")]
      public string TemplateCode { get; set; } = string.Empty;
  
      /// <summary>
      /// editor JSON 里的 name,对应数据库 fl_label_template.TemplateName
      /// </summary>
      [JsonPropertyName("name")]
      public string TemplateName { get; set; } = string.Empty;
  
      [JsonPropertyName("labelType")]
      public string? LabelType { get; set; }
  
      [JsonPropertyName("unit")]
      public string Unit { get; set; } = "inch";
  
      [JsonPropertyName("width")]
      public decimal Width { get; set; }
  
      [JsonPropertyName("height")]
      public decimal Height { get; set; }
  
      /// <summary>
      /// editor JSON 里的 appliedLocationALL / SPECIFIED
      /// </summary>
      [JsonPropertyName("appliedLocation")]
      public string AppliedLocationType { get; set; } = "ALL";
  
      [JsonPropertyName("showRuler")]
      public bool ShowRuler { get; set; } = true;
  
      [JsonPropertyName("showGrid")]
      public bool ShowGrid { get; set; } = true;
  
      /// <summary>
      /// 预留:前端可能不传;如果不传则默认 true
      /// </summary>
      [JsonPropertyName("state")]
      public bool State { get; set; } = true;
  
      /// <summary>
      /// elements(前端 editor  elements[],会全量重建)
      /// </summary>
      [JsonPropertyName("elements")]
      public List<LabelTemplateElementDto> Elements { get; set; } = new();
  
      /// <summary>
      ///  AppliedLocationType=SPECIFIED 时生效
      /// </summary>
      [JsonPropertyName("appliedLocationIds")]
      public List<string> AppliedLocationIds { get; set; } = new();
  
      /// <summary>
      /// 模板与产品/标签类型绑定默认值
      /// </summary>
      [JsonPropertyName("templateProductDefaults")]
      public List<LabelTemplateProductDefaultDto>? TemplateProductDefaults { get; set; }
  }