OnlineSalesAutoCrop/Api/OnlineSalesAutoCrop.CoreAPI.Models/Requests/Common/LoginRequest.cs

15 lines
548 B
C#
Raw Normal View History

2026-07-06 17:23:05 +06:00

using System.ComponentModel.DataAnnotations;
using System.Diagnostics.CodeAnalysis;
namespace OnlineSalesAutoCrop.CoreAPI.Models.Requests.Common;
public class AuthLoginRequest
{
2026-07-06 18:43:46 +06:00
[Required, NotNull, StringLength(maximumLength: 10, MinimumLength = 3, ErrorMessage = "Login Id must be between 3 and 10 characters.")]
2026-07-06 17:23:05 +06:00
public string LoginId { get; set; }
2026-07-06 18:43:46 +06:00
[Required, NotNull, StringLength(maximumLength: 20, MinimumLength = 5, ErrorMessage = "Password must be between 5 and 20 characters.")]
2026-07-06 17:23:05 +06:00
public string Password { get; set; }
}