This commit is contained in:
ky_sunl
2021-04-01 06:47:58 +00:00
parent 687b79910e
commit cb7e07922f
41 changed files with 881 additions and 88 deletions

View File

@@ -0,0 +1,25 @@
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 CreateUserDTO
{
[DisplayName("登录帐号")]
[Required(AllowEmptyStrings = false, ErrorMessage = "登录帐号不可为空")]
public string Account { get; set; }
[DisplayName("登录密码")]
[Required(AllowEmptyStrings = false, ErrorMessage = "登录密码不可为空")]
public string Password { get; set; }
[DisplayName("用户名")]
[Required(AllowEmptyStrings = false, ErrorMessage = "用户名不可为空")]
public string Name { get; set; }
}
}

View File

@@ -42,7 +42,9 @@
<Reference Include="System.Xml" />
</ItemGroup>
<ItemGroup>
<Compile Include="CreateUserDTO.cs" />
<Compile Include="LoginDTO.cs" />
<Compile Include="LoginRDTO.cs" />
<Compile Include="Properties\AssemblyInfo.cs" />
</ItemGroup>
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />

View File

@@ -11,7 +11,6 @@ namespace Ewide.Core.DTO
public class LoginDTO
{
[DisplayName("登录帐号")]
[Phone(ErrorMessage = "a a")]
[Required(AllowEmptyStrings = false, ErrorMessage = "登录帐号不可为空")]
public string Account { get; set; }

View File

@@ -0,0 +1,20 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Ewide.Core.DTO
{
public class LoginRDTO
{
public string Account { get; set; }
public string Name { get; set; }
public int Type { get; set; }
public int Sex { get; set; }
public string Avatar { get; set; }
public string Code { get; set; }
public string Phone { get; set; }
public string Desc { get; set; }
}
}