LinkedApiKeyDto.cs 1.1 KB

12345678910111213141516171819202122232425262728293031323334353637
  1. using AutoMapper;
  2. using Microsoft.EntityFrameworkCore.Migrations.Operations;
  3. using System;
  4. using System.Collections.Generic;
  5. using System.ComponentModel.DataAnnotations;
  6. using System.ComponentModel.DataAnnotations.Schema;
  7. using System.Linq;
  8. using System.Text;
  9. using System.Threading.Tasks;
  10. namespace AipGateway.API.Domain.Entities
  11. {
  12. public partial class LinkedApiKeyDto
  13. {
  14. public int Id { get; set; }
  15. public required int ServerId { get; set; }
  16. public string ApiKey { get; set; }
  17. public DateTime ExpiredAt { get; set; }
  18. public DateTime CreatedAt { get; set; }
  19. public bool UseYn { get; set; }
  20. public DateTime? DeletedAt { get; set; }
  21. public void Mapping(Profile profile)
  22. {
  23. profile.CreateMap<LinkedApiKeyDto, TbLinkedApiKey>();
  24. profile.CreateMap<TbLinkedApiKey, LinkedApiKeyDto>();
  25. }
  26. public override string ToString()
  27. {
  28. return "LinkedApiKeyDto{ Id: " + Id + ", ServerId: " + ServerId + ", ApiKey: " + ApiKey + ", ExpiredAt: " + ExpiredAt + ", CreatedAt: " + CreatedAt + "}";
  29. }
  30. }
  31. }