47 lines
1.2 KiB
C#
47 lines
1.2 KiB
C#
// src/Webshop.Application/DTOs/Admin/AdminShopInfoDto.cs
|
|
using System.ComponentModel.DataAnnotations;
|
|
|
|
namespace Webshop.Application.DTOs.Shop
|
|
{
|
|
public class AdminShopInfoDto
|
|
{
|
|
[Required, MaxLength(255)]
|
|
public string ShopName { get; set; } = string.Empty;
|
|
|
|
[MaxLength(500)]
|
|
public string? Slogan { get; set; }
|
|
|
|
[Required, EmailAddress, MaxLength(255)]
|
|
public string ContactEmail { get; set; } = string.Empty;
|
|
|
|
[Phone, MaxLength(50)]
|
|
public string? PhoneNumber { get; set; }
|
|
|
|
[MaxLength(255)]
|
|
public string? Street { get; set; }
|
|
|
|
[MaxLength(100)]
|
|
public string? City { get; set; }
|
|
|
|
[MaxLength(20)]
|
|
public string? PostalCode { get; set; }
|
|
|
|
[MaxLength(100)]
|
|
public string? Country { get; set; }
|
|
|
|
[MaxLength(50)]
|
|
public string? VatNumber { get; set; }
|
|
|
|
[MaxLength(100)]
|
|
public string? CompanyRegistrationNumber { get; set; }
|
|
|
|
[Url, MaxLength(255)]
|
|
public string? FacebookUrl { get; set; }
|
|
|
|
[Url, MaxLength(255)]
|
|
public string? InstagramUrl { get; set; }
|
|
|
|
[Url, MaxLength(255)]
|
|
public string? TwitterUrl { get; set; }
|
|
}
|
|
} |