Explorar o código

refactor: 优化接口参数校验

喵你个旺呀 hai 1 ano
pai
achega
0ae3dab6ea
Modificáronse 1 ficheiros con 1 adicións e 5 borrados
  1. 1 5
      Admin.NET/Admin.NET.Core/Service/Tenant/Dto/TenantInput.cs

+ 1 - 5
Admin.NET/Admin.NET.Core/Service/Tenant/Dto/TenantInput.cs

@@ -95,7 +95,7 @@ public class AddTenantInput : TenantOutput
     /// Logo图片Base64码
     /// </summary>
     [CommonValidation(
-        $"string.{nameof(string.IsNullOrWhiteSpace)}(Logo) && string.{nameof(string.IsNullOrWhiteSpace)}(LogoBase64)", "图标不能为空"
+        "string.IsNullOrWhiteSpace(Logo) && string.IsNullOrWhiteSpace(LogoBase64)", "图标不能为空"
     )]
     public virtual string LogoBase64 { get; set; }
     
@@ -107,10 +107,6 @@ public class AddTenantInput : TenantOutput
 
 public class UpdateTenantInput : AddTenantInput
 {
-    /// <summary>
-    /// Logo图片Base64码
-    /// </summary>
-    public override string LogoBase64 { get; set; }
 }
 
 public class DeleteTenantInput : BaseIdInput