This commit is contained in:
25
Api/Ewide.Core/Ewide.Core.DTO/CreateUserDTO.cs
Normal file
25
Api/Ewide.Core/Ewide.Core.DTO/CreateUserDTO.cs
Normal 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; }
|
||||
}
|
||||
}
|
||||
@@ -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" />
|
||||
|
||||
@@ -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; }
|
||||
|
||||
|
||||
20
Api/Ewide.Core/Ewide.Core.DTO/LoginRDTO.cs
Normal file
20
Api/Ewide.Core/Ewide.Core.DTO/LoginRDTO.cs
Normal 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; }
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user