-
Notifications
You must be signed in to change notification settings - Fork 113
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* feat:add stack isolation * feat:update env * feat:update public * feat:udpate sln * feat:update stakc isolation * fix:IsolationConsts * fix:unit test * fix:code smell * fix:code smell * fix:code smell * refactor:set data method
- Loading branch information
Showing
46 changed files
with
902 additions
and
88 deletions.
There are no files selected for viewing
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
9 changes: 9 additions & 0 deletions
9
...ks/StackSdks/Auth/Masa.BuildingBlocks.StackSdks.Auth.Contracts/Model/IEnvironmentModel.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 @@ | ||
// Copyright (c) MASA Stack All rights reserved. | ||
// Licensed under the MIT License. See LICENSE.txt in the project root for license information. | ||
|
||
namespace Masa.BuildingBlocks.StackSdks.Auth.Contracts.Model; | ||
|
||
public interface IEnvironmentModel | ||
{ | ||
public string Environment { 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
39 changes: 39 additions & 0 deletions
39
...ocks/StackSdks/Auth/Masa.BuildingBlocks.StackSdks.Auth.Contracts/Model/UserSelectModel.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,39 @@ | ||
// Copyright (c) MASA Stack All rights reserved. | ||
// Licensed under the MIT License. See LICENSE.txt in the project root for license information. | ||
|
||
namespace Masa.BuildingBlocks.StackSdks.Auth.Contracts.Model; | ||
|
||
public class UserSelectModel | ||
{ | ||
public Guid Id { get; set; } | ||
|
||
public string? Name { get; set; } | ||
|
||
public string DisplayName { get; set; } | ||
|
||
public string Account { get; set; } | ||
|
||
public string? PhoneNumber { get; set; } | ||
|
||
public string? Email { get; set; } | ||
|
||
public string Avatar { get; set; } | ||
|
||
public UserSelectModel() | ||
{ | ||
DisplayName = ""; | ||
Account = ""; | ||
Avatar = ""; | ||
} | ||
|
||
public UserSelectModel(Guid id, string name, string displayName, string account, string phoneNumber, string email, string avatar) | ||
{ | ||
Id = id; | ||
Name = name; | ||
DisplayName = displayName; | ||
Account = account; | ||
PhoneNumber = phoneNumber; | ||
Email = email; | ||
Avatar = avatar; | ||
} | ||
} |
15 changes: 15 additions & 0 deletions
15
...StackSdks/Auth/Masa.BuildingBlocks.StackSdks.Auth.Contracts/Model/ValidateAccountModel.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,15 @@ | ||
// Copyright (c) MASA Stack All rights reserved. | ||
// Licensed under the MIT License. See LICENSE.txt in the project root for license information. | ||
|
||
namespace Masa.BuildingBlocks.StackSdks.Auth.Contracts.Model; | ||
|
||
public class ValidateAccountModel : IEnvironmentModel | ||
{ | ||
public string Account { get; set; } | ||
|
||
public string Password { get; set; } | ||
|
||
public bool LdapLogin { get; set; } | ||
|
||
public string Environment { 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
1 change: 1 addition & 0 deletions
1
src/BuildingBlocks/StackSdks/Masa.BuildingBlocks.StackSdks.Config/_Imports.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 |
---|---|---|
@@ -1,6 +1,7 @@ | ||
// Copyright (c) MASA Stack All rights reserved. | ||
// Licensed under the MIT License. See LICENSE.txt in the project root for license information. | ||
|
||
global using Masa.BuildingBlocks.StackSdks.Config; | ||
global using Masa.BuildingBlocks.StackSdks.Config.Models; | ||
global using System.Security.Cryptography; | ||
global using System.Text; |
19 changes: 19 additions & 0 deletions
19
src/BuildingBlocks/StackSdks/Masa.BuildingBlocks.StackSdks.Isolation/EnvironmentProvider.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 @@ | ||
// Copyright (c) MASA Stack All rights reserved. | ||
// Licensed under the MIT License. See LICENSE.txt in the project root for license information. | ||
|
||
namespace Masa.BuildingBlocks.StackSdks.Isolation; | ||
|
||
public class EnvironmentProvider | ||
{ | ||
readonly List<string> _environments; | ||
|
||
public EnvironmentProvider(List<string> environments) | ||
{ | ||
_environments = environments; | ||
} | ||
|
||
public List<string> GetEnvionments() | ||
{ | ||
return _environments; | ||
} | ||
} |
Oops, something went wrong.