Refactor project files for improved readability and structure
- Cleaned up whitespace in Directory.Build.props and Directory.Packages.props for consistency. - Reformatted project file references in PnvPanel.Api.csproj for better clarity. - Enhanced code readability in various endpoint files by adjusting line breaks and indentation. - Standardized method signatures and improved formatting in ResultExtensions and multiple endpoint classes for better maintainability.
This commit is contained in:
1 parent
9d5424bb9c
commit
df137ca5a7
285 files changed
+6911
-2063
No files matched your search
@@ -21,11 +21,15 @@ public sealed class Inbound : Entity
|
||||
public IReadOnlyList<Guid> AllowedRoleIds { get; private set; } = [];
|
||||
public DateTimeOffset? LastSyncAt { get; private set; }
|
||||
|
||||
private Inbound()
|
||||
{
|
||||
}
|
||||
private Inbound() { }
|
||||
|
||||
public static Inbound FromRemote(Guid nodeId, string remoteInboundId, VpnProtocol protocol, string remark, int port)
|
||||
public static Inbound FromRemote(
|
||||
Guid nodeId,
|
||||
string remoteInboundId,
|
||||
VpnProtocol protocol,
|
||||
string remark,
|
||||
int port
|
||||
)
|
||||
{
|
||||
return new Inbound
|
||||
{
|
||||
@@ -48,7 +52,11 @@ public sealed class Inbound : Entity
|
||||
LastSyncAt = DateTimeOffset.UtcNow;
|
||||
}
|
||||
|
||||
public void Publish(string? displayName, IReadOnlyCollection<Guid> allowedRoleIds, int? maxClients)
|
||||
public void Publish(
|
||||
string? displayName,
|
||||
IReadOnlyCollection<Guid> allowedRoleIds,
|
||||
int? maxClients
|
||||
)
|
||||
{
|
||||
IsPublished = true;
|
||||
DisplayName = displayName;
|
||||
|
||||
Reference in new issue
Block a user