update length of login id

This commit is contained in:
dibakor 2026-07-06 18:43:46 +06:00
parent 5d6228aba2
commit 89ef87fb18
3 changed files with 19 additions and 2 deletions

View File

@ -6,9 +6,9 @@ namespace OnlineSalesAutoCrop.CoreAPI.Models.Requests.Common;
public class AuthLoginRequest 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; } 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; } public string Password { get; set; }
} }

View File

@ -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; }
}

View File

@ -0,0 +1,6 @@
namespace OnlineSalesAutoCrop.CoreAPI.Models.Responses.MobileApp;
public class MarketHeirarchyByEmpResponse
{
}