-
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.
- Loading branch information
Showing
185 changed files
with
11,997 additions
and
674 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
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
34 changes: 34 additions & 0 deletions
34
src/ApiGateways/Masa.Auth.ApiGateways.Caller/Services/Webhooks/WebhookService.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,34 @@ | ||
// Copyright (c) MASA Stack All rights reserved. | ||
// Licensed under the Apache License. See LICENSE.txt in the project root for license information. | ||
|
||
namespace Masa.Auth.ApiGateways.Caller.Services.Webhooks; | ||
|
||
public class WebhookService : ServiceBase | ||
{ | ||
protected override string BaseUrl { get; set; } = ""; | ||
|
||
public WebhookService(ICaller caller) : base(caller) | ||
{ | ||
BaseUrl = "api/webhook"; | ||
} | ||
|
||
public async Task<PaginationDto<WebhookItemDto>> GetListAsync(GetWebhookPaginationDto getWebhookPaginationDto) | ||
{ | ||
return await GetAsync<GetWebhookPaginationDto, PaginationDto<WebhookItemDto>>("list", getWebhookPaginationDto); | ||
} | ||
|
||
public async Task<WebhookDetailDto> GetDetailAsync(Guid id) | ||
{ | ||
return await GetAsync<WebhookDetailDto>($"get?id={id}"); | ||
} | ||
|
||
public async Task SaveAsync(WebhookDetailDto webhookDto) | ||
{ | ||
await PostAsync("save", webhookDto); | ||
} | ||
|
||
public async Task RemoveAsync(Guid id) | ||
{ | ||
await DeleteAsync($"remove?id={id}"); | ||
} | ||
} |
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
17 changes: 17 additions & 0 deletions
17
src/Contracts/Masa.Auth.Contracts.Admin/Permissions/RoleSimpleDetailDto.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,17 @@ | ||
// Copyright (c) MASA Stack All rights reserved. | ||
// Licensed under the Apache License. See LICENSE.txt in the project root for license information. | ||
|
||
namespace Masa.Auth.Contracts.Admin.Permissions; | ||
|
||
public class RoleSimpleDetailDto | ||
{ | ||
public Guid Id { get; set; } | ||
|
||
public string Name { get; set; } = string.Empty; | ||
|
||
public string Code { get; set; } = string.Empty; | ||
|
||
public bool Enabled { get; set; } | ||
|
||
public List<RoleSimpleDetailDto> Children { get; set; } = new(); | ||
} |
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.