Merge branch 'net5.0'

This commit is contained in:
不做码农
2022-05-09 12:28:54 +08:00
32 changed files with 854 additions and 226 deletions

View File

@@ -0,0 +1,35 @@
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
namespace ZR.Model.Dto
{
/// <summary>
/// 多语言配置输入对象
/// </summary>
public class CommonLangDto
{
[Required(ErrorMessage = "id不能为空")]
public long Id { get; set; }
//[Required(ErrorMessage = "语言code不能为空")]
public string LangCode { get; set; }
public string LangKey { get; set; }
[Required(ErrorMessage = "名称不能为空")]
public string LangName { get; set; }
public string LangNameEn { get; set; }
public string LangNameTw { get; set; }
//public List<CommonLangDto> Langs { get; set; }
}
/// <summary>
/// 多语言配置查询对象
/// </summary>
public class CommonLangQueryDto : PagerInfo
{
public string LangCode { get; set; }
public string LangKey { get; set; }
public DateTime? BeginAddtime { get; set; }
public DateTime? EndAddtime { get; set; }
public int ShowMode { get; set; }
}
}

View File

@@ -68,5 +68,9 @@ namespace ZR.Model.System.Dto
/// 菜单图标
/// </summary>
public string icon { get; set; } = string.Empty;
/// <summary>
/// 翻译key
/// </summary>
public string MenuNameKey { get; set; }
}
}