1234567891011121314151617181920212223242526272829303132333435363738 |
- using AipGateway.API.Domain.Entities;
- using AutoMapper;
- using Microsoft.EntityFrameworkCore.Migrations.Operations;
- using System;
- using System.Collections.Generic;
- using System.ComponentModel.DataAnnotations;
- using System.ComponentModel.DataAnnotations.Schema;
- using System.Linq;
- using System.Text;
- using System.Threading.Tasks;
- namespace AipGateway.API.Domain.Models.Dto
- {
- public partial class LinkedApiKeyDto
- {
- public int Id { get; set; }
- public required int ServerId { get; set; }
- public string ApiKey { get; set; } = string.Empty;
- public DateTime ExpiredAt { get; set; }
- public DateTime CreatedAt { get; set; }
- public bool UseYn { get; set; }
- public DateTime? DeletedAt { get; set; }
- public void Mapping(Profile profile)
- {
- profile.CreateMap<LinkedApiKeyDto, TbLinkedApiKey>();
- profile.CreateMap<TbLinkedApiKey, LinkedApiKeyDto>();
- }
- public override string ToString()
- {
- return "LinkedApiKeyDto{ Id: " + Id + ", ServerId: " + ServerId + ", ApiKey: " + ApiKey + ", ExpiredAt: " + ExpiredAt + ", CreatedAt: " + CreatedAt + "}";
- }
- }
- }
|