!22 update ZR.Admin.WebApi/wwwroot/CodeGenTemplate/TplDto.txt.

Merge pull request !22 from xbzhu/N/A
This commit is contained in:
字母搬运工
2023-02-02 01:36:23 +00:00
committed by Gitee

View File

@@ -1,6 +1,7 @@
using System;
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using Newtonsoft.Json;
using ${options.ModelsNamespace}.Dto;
using ${options.ModelsNamespace}.Models;
$if(replaceDto.ShowBtnExport)
@@ -43,6 +44,9 @@ $if(item.IsExport)
$else
[ExcelIgnore]
$end
$end
$if(item.CsharpType == "long")
[JsonConverter(typeof(ValueToStringConverter))]
$end
public $item.CsharpType$item.RequiredStr $item.CsharpField { get; set; }