-
Notifications
You must be signed in to change notification settings - Fork 251
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
e23ea9b
commit b4b1c9d
Showing
38 changed files
with
16,690 additions
and
233 deletions.
There are no files selected for viewing
40 changes: 40 additions & 0 deletions
40
...ro.BasicManagement.Application.Contracts/Tenants/Dtos/AddOrUpdateConnectionStringInput.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
namespace Lion.AbpPro.BasicManagement.Tenants.Dtos; | ||
|
||
public class AddOrUpdateConnectionStringInput : IValidatableObject | ||
{ | ||
|
||
/// <summary> | ||
/// id | ||
/// </summary> | ||
public Guid Id { get; set; } | ||
|
||
/// <summary> | ||
/// 连接字符串名称 | ||
/// </summary> | ||
public string Name { get; set; } | ||
|
||
/// <summary> | ||
/// 连接字符串地址 | ||
/// </summary> | ||
public string Value { get; set; } | ||
|
||
public IEnumerable<ValidationResult> Validate(ValidationContext validationContext) | ||
{ | ||
var localization = validationContext.GetRequiredService<IStringLocalizer<AbpProLocalizationResource>>(); | ||
if (Name.IsNullOrWhiteSpace()) | ||
{ | ||
yield return new ValidationResult( | ||
localization[AbpProLocalizationErrorCodes.ErrorCode100003, nameof(Name)], | ||
new[] { nameof(Name) } | ||
); | ||
} | ||
|
||
if (Value.IsNullOrWhiteSpace()) | ||
{ | ||
yield return new ValidationResult( | ||
localization[AbpProLocalizationErrorCodes.ErrorCode100003, nameof(Value)], | ||
new[] { nameof(Value) } | ||
); | ||
} | ||
} | ||
} |
9 changes: 9 additions & 0 deletions
9
....AbpPro.BasicManagement.Application.Contracts/Tenants/Dtos/DeleteConnectionStringInput.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
namespace Lion.AbpPro.BasicManagement.Tenants.Dtos; | ||
|
||
public class DeleteConnectionStringInput | ||
{ | ||
/// <summary> | ||
/// 连接字符串名称 | ||
/// </summary> | ||
public string Name { get; set; } | ||
} |
19 changes: 19 additions & 0 deletions
19
...Pro.BasicManagement.Application.Contracts/Tenants/Dtos/PageTenantConnectionStringInput.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
namespace Lion.AbpPro.BasicManagement.Tenants.Dtos; | ||
|
||
public class PageTenantConnectionStringInput | ||
{ | ||
/// <summary> | ||
/// 租户id | ||
/// </summary> | ||
public Guid Id { get; set; } | ||
|
||
/// <summary> | ||
/// 连接字符串名称 | ||
/// </summary> | ||
public string Name { get; set; } | ||
|
||
/// <summary> | ||
/// 连接字符串地址 | ||
/// </summary> | ||
public string Value { get; set; } | ||
} |
19 changes: 19 additions & 0 deletions
19
...ro.BasicManagement.Application.Contracts/Tenants/Dtos/PageTenantConnectionStringOutput.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
namespace Lion.AbpPro.BasicManagement.Tenants.Dtos; | ||
|
||
public class PageTenantConnectionStringOutput | ||
{ | ||
/// <summary> | ||
/// 租户id | ||
/// </summary> | ||
public Guid TenantId { get; set; } | ||
|
||
/// <summary> | ||
/// 连接字符串名称 | ||
/// </summary> | ||
public string Name { get; set; } | ||
|
||
/// <summary> | ||
/// 连接字符串地址 | ||
/// </summary> | ||
public string Value { get; set; } | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.