Browse Source

refactor: 优化接口参数校验

喵你个旺呀 1 year ago
parent
commit
0ae3dab6ea
1 changed files with 1 additions and 5 deletions
  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