Skip to content

Commit

Permalink
调整 API 初始化结构
Browse files Browse the repository at this point in the history
  • Loading branch information
zlzforever committed Aug 9, 2024
1 parent d8fa1ff commit 4e68168
Show file tree
Hide file tree
Showing 37 changed files with 2,444 additions and 2,322 deletions.
17 changes: 8 additions & 9 deletions src/SecurityTokenService/ConsentOptions.cs
Original file line number Diff line number Diff line change
@@ -1,12 +1,11 @@
namespace SecurityTokenService
namespace SecurityTokenService;

public class ConsentOptions
{
public class ConsentOptions
{
public static bool EnableOfflineAccess = true;
public static string OfflineAccessDisplayName = "Offline Access";
public static string OfflineAccessDescription = "Access to your applications and resources, even when you are offline";
public static bool EnableOfflineAccess = true;
public static string OfflineAccessDisplayName = "Offline Access";
public static string OfflineAccessDescription = "Access to your applications and resources, even when you are offline";

public static readonly string MustChooseOneErrorMessage = "You must pick at least one permission";
public static readonly string InvalidSelectionErrorMessage = "Invalid selection";
}
public static readonly string MustChooseOneErrorMessage = "You must pick at least one permission";
public static readonly string InvalidSelectionErrorMessage = "Invalid selection";
}
901 changes: 450 additions & 451 deletions src/SecurityTokenService/Controllers/AccountController.cs

Large diffs are not rendered by default.

17 changes: 8 additions & 9 deletions src/SecurityTokenService/Controllers/ApiResult.cs
Original file line number Diff line number Diff line change
@@ -1,12 +1,11 @@
// ReSharper disable UnusedAutoPropertyAccessor.Global

namespace SecurityTokenService.Controllers
namespace SecurityTokenService.Controllers;

public class ApiResult
{
public class ApiResult
{
public int Code { get; set; } = 200;
public string Message { get; set; } = string.Empty;
public object Data { get; set; }
public bool Success { get; set; } = true;
}
}
public int Code { get; set; } = 200;
public string Message { get; set; } = string.Empty;
public object Data { get; set; }
public bool Success { get; set; } = true;
}
Loading

0 comments on commit 4e68168

Please sign in to comment.