This commit is contained in:
ky_sunl
2021-03-18 10:07:33 +00:00
parent 299d03bdb0
commit 05b6aa1674
19 changed files with 323 additions and 56 deletions

View File

@@ -43,6 +43,7 @@
<Reference Include="System.Xml" />
</ItemGroup>
<ItemGroup>
<Compile Include="LoginDTO.cs" />
<Compile Include="Properties\AssemblyInfo.cs" />
<Compile Include="TestArgs.cs" />
</ItemGroup>

View File

@@ -0,0 +1,21 @@
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Ewide.Core.DTO
{
public class LoginDTO
{
[DisplayName("登录帐号")]
[Required(AllowEmptyStrings = false, ErrorMessage = "登录帐号不可为空")]
public string Account { get; set; }
[DisplayName("登录密码")]
[Required(AllowEmptyStrings = false, ErrorMessage = "登录密码不可为空")]
public string Password { get; set; }
}
}