This repository has been archived by the owner on Aug 1, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 16
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* feat: add pm caching * feat: add app type enum、service type enum * feat: update pm * style: modify code specification * feat: update pm client Co-authored-by: yanpengju <[email protected]> Co-authored-by: 阎鹏举 <阎鹏举@DESKTOP-28NV352>
- Loading branch information
1 parent
25a338d
commit c53c400
Showing
10 changed files
with
104 additions
and
0 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
14 changes: 14 additions & 0 deletions
14
src/BasicAbility/Masa.BuildingBlocks.BasicAbility.Pm/IPmClient.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,14 @@ | ||
|
||
namespace Masa.BuildingBlocks.BasicAbility.Pm | ||
{ | ||
public interface IPmClient | ||
{ | ||
public IEnvironmentService EnvironmentService { get; init; } | ||
|
||
public IClusterService ClusterService { get; init; } | ||
|
||
public IProjectService ProjectService { get; init; } | ||
|
||
public IAppService AppService { get; init; } | ||
} | ||
} |
9 changes: 9 additions & 0 deletions
9
...sicAbility/Masa.BuildingBlocks.BasicAbility.Pm/Masa.BuildingBlocks.BasicAbility.Pm.csproj
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 @@ | ||
<Project Sdk="Microsoft.NET.Sdk"> | ||
|
||
<PropertyGroup> | ||
<TargetFramework>net6.0</TargetFramework> | ||
<ImplicitUsings>enable</ImplicitUsings> | ||
<Nullable>enable</Nullable> | ||
</PropertyGroup> | ||
|
||
</Project> |
21 changes: 21 additions & 0 deletions
21
src/BasicAbility/Masa.BuildingBlocks.BasicAbility.Pm/Model/AppModel.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,21 @@ | ||
namespace Masa.BuildingBlocks.BasicAbility.Pm.Model | ||
{ | ||
public class AppModel | ||
{ | ||
public int Id { get; set; } | ||
|
||
public string Name { get; set; } | ||
|
||
public string Identity { get; set; } | ||
|
||
public int ProjectId { get; set; } | ||
|
||
public AppModel(int id, string name, string identity, int projectId) | ||
{ | ||
Id = id; | ||
Name = name; | ||
Identity = identity; | ||
ProjectId = projectId; | ||
} | ||
} | ||
} |
26 changes: 26 additions & 0 deletions
26
src/BasicAbility/Masa.BuildingBlocks.BasicAbility.Pm/Model/ProjectModel.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,26 @@ | ||
namespace Masa.BuildingBlocks.BasicAbility.Pm.Model | ||
{ | ||
public class ProjectModel | ||
{ | ||
public int Id { get; set; } | ||
|
||
public string Identity { get; set; } | ||
|
||
public string Name { get; set; } | ||
|
||
public int LabelId { get; set; } | ||
|
||
public Guid TeamId { get; set; } | ||
|
||
public List<AppModel> Apps { get; set; } = new(); | ||
|
||
public ProjectModel(int id, string identity, string name, int labelId, Guid teamId) | ||
{ | ||
Id = id; | ||
Identity = identity; | ||
Name = name; | ||
LabelId = labelId; | ||
TeamId = teamId; | ||
} | ||
} | ||
} |
6 changes: 6 additions & 0 deletions
6
src/BasicAbility/Masa.BuildingBlocks.BasicAbility.Pm/Service/IAppService.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,6 @@ | ||
namespace Masa.BuildingBlocks.BasicAbility.Pm.Service | ||
{ | ||
public interface IAppService | ||
{ | ||
} | ||
} |
6 changes: 6 additions & 0 deletions
6
src/BasicAbility/Masa.BuildingBlocks.BasicAbility.Pm/Service/IClusterService.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,6 @@ | ||
namespace Masa.BuildingBlocks.BasicAbility.Pm.Service | ||
{ | ||
public interface IClusterService | ||
{ | ||
} | ||
} |
6 changes: 6 additions & 0 deletions
6
src/BasicAbility/Masa.BuildingBlocks.BasicAbility.Pm/Service/IEnvironmentService.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,6 @@ | ||
namespace Masa.BuildingBlocks.BasicAbility.Pm.Service | ||
{ | ||
public interface IEnvironmentService | ||
{ | ||
} | ||
} |
7 changes: 7 additions & 0 deletions
7
src/BasicAbility/Masa.BuildingBlocks.BasicAbility.Pm/Service/IProjectService.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,7 @@ | ||
namespace Masa.BuildingBlocks.BasicAbility.Pm.Service | ||
{ | ||
public interface IProjectService | ||
{ | ||
Task<List<ProjectModel>> GetProjectListAsync(string envName); | ||
} | ||
} |
2 changes: 2 additions & 0 deletions
2
src/BasicAbility/Masa.BuildingBlocks.BasicAbility.Pm/_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 |
---|---|---|
@@ -0,0 +1,2 @@ | ||
global using Masa.BuildingBlocks.BasicAbility.Pm.Service; | ||
global using Masa.BuildingBlocks.BasicAbility.Pm.Model; |