AGSSbackend/AGSS/Models/DTOs/UserRequest.cs

42 lines
1.2 KiB
C#
Raw Normal View History

using System.ComponentModel.DataAnnotations;
namespace AGSS.Models.DTOs;
public class UserRequest
{
[MaxLength(20)]
public string? Sex { get; set; }
[MaxLength(100)]
public string? Description { get; set; }
[MaxLength(200)]
public string? Config { get; set; }
[MaxLength(10)]
public string? JobCode { get; set; }
[MaxLength(10)]
public string? JobName { get; set; }
[MaxLength(20)]
public string? Birthday { get; set; }
}
public class UserReturn
{
public Guid Id { get; set; }
[MaxLength(50)]
public required string AuthId { get; set; }
[MaxLength(20)]
public string? Sex { get; set; }
[MaxLength(100)]
public string? Description { get; set; }
[MaxLength(200)]
public string? Config { get; set; }
[MaxLength(10)]
public string? JobCode { get; set; }
[MaxLength(10)]
public string? JobName { get; set; }
[MaxLength(20)]
public string? Birthday { get; set; }
public string Email { get; set; }
public string NickName { get; set; }
public string Name { get; set; }
}