using System; using System.Collections.Generic; using System.ComponentModel.DataAnnotations; using System.Text; namespace Operater.DTO { public class CreateShortLinkRequest { [Required(ErrorMessage = "LongLink不能为空")] public string LongLink { get; set; } } public class CreateShortLinkResponse { public CreateShortLinkDomain result { get; set; } public CreateShortLinkError error { get; set; } } public class CreateShortLinkDomain { public string key { get; set; } public string shortUrl { get; set; } } public class CreateShortLinkError { public string message { get; set; } } }