update length of login id
This commit is contained in:
parent
5d6228aba2
commit
89ef87fb18
|
|
@ -6,9 +6,9 @@ namespace OnlineSalesAutoCrop.CoreAPI.Models.Requests.Common;
|
|||
|
||||
public class AuthLoginRequest
|
||||
{
|
||||
[Required, NotNull, StringLength(maximumLength: 150, MinimumLength = 3, ErrorMessage = "Login Id must be between 4 and 30 characters.")]
|
||||
[Required, NotNull, StringLength(maximumLength: 10, MinimumLength = 3, ErrorMessage = "Login Id must be between 3 and 10 characters.")]
|
||||
public string LoginId { get; set; }
|
||||
|
||||
[Required, NotNull, StringLength(maximumLength: 150, MinimumLength = 5, ErrorMessage = "Password must be between 1 and 30 characters.")]
|
||||
[Required, NotNull, StringLength(maximumLength: 20, MinimumLength = 5, ErrorMessage = "Password must be between 5 and 20 characters.")]
|
||||
public string Password { get; set; }
|
||||
}
|
||||
|
|
|
|||
|
|
@ -0,0 +1,11 @@
|
|||
|
||||
using System.ComponentModel.DataAnnotations;
|
||||
using System.Diagnostics.CodeAnalysis;
|
||||
|
||||
namespace OnlineSalesAutoCrop.CoreAPI.Models.Requests.MobileApp;
|
||||
|
||||
public class GetMarketHeirarchyByEmpRequest
|
||||
{
|
||||
[Required, NotNull, StringLength(maximumLength: 10, MinimumLength = 3, ErrorMessage = "EmployeeNumber must be between 3 and 10 characters.")]
|
||||
public string EmployeeNumber { get; set; }
|
||||
}
|
||||
|
|
@ -0,0 +1,6 @@
|
|||
namespace OnlineSalesAutoCrop.CoreAPI.Models.Responses.MobileApp;
|
||||
|
||||
public class MarketHeirarchyByEmpResponse
|
||||
{
|
||||
|
||||
}
|
||||
Loading…
Reference in New Issue
Block a user