-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: created CRUD backend for Ticket
- Loading branch information
Showing
31 changed files
with
1,255 additions
and
391 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
[*.cs] | ||
|
||
# CS8618: Non-nullable field must contain a non-null value when exiting constructor. Consider declaring as nullable. | ||
dotnet_diagnostic.CS8618.severity = none |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
@page "/authentication/{action}" | ||
@using Microsoft.AspNetCore.Components.WebAssembly.Authentication | ||
<RemoteAuthenticatorView Action="@Action" /> | ||
|
||
@code{ | ||
[Parameter] public string? Action { 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,57 @@ | ||
using System; | ||
using System.Collections.Generic; | ||
using System.Linq; | ||
using System.Net.Http; | ||
using System.Net.Http.Json; | ||
using System.Threading.Tasks; | ||
using WorkFlow.Shared.Entities; | ||
using WorkFlow.Shared.Interfaces; | ||
|
||
namespace WorkFlow.Client.Services | ||
{ | ||
public class TicketService : ITicket | ||
{ | ||
private readonly HttpClient _http; | ||
|
||
public TicketService(HttpClient http) | ||
{ | ||
_http = http; | ||
} | ||
|
||
public async Task<Ticket> CreateTicket(Ticket ticket) | ||
{ | ||
var result = await _http.PostAsJsonAsync<Ticket>("api/ticket", ticket); | ||
return await result.Content.ReadFromJsonAsync<Ticket>(); | ||
} | ||
|
||
public async Task<bool> DeleteTicket(Guid ticketID) | ||
{ | ||
throw new NotImplementedException(); | ||
} | ||
|
||
public async Task<Ticket?> GetTicket(Guid ticketID) | ||
{ | ||
throw new NotImplementedException(); | ||
} | ||
|
||
public async Task<List<Ticket>> List(User user) | ||
{ | ||
throw new NotImplementedException(); | ||
} | ||
|
||
public async Task<List<Ticket>> ListTicketsByProject(Guid projectID) | ||
{ | ||
throw new NotImplementedException(); | ||
} | ||
|
||
public async Task<List<Ticket>> ListTicketsByUser(Guid userID) | ||
{ | ||
throw new NotImplementedException(); | ||
} | ||
|
||
public async Task<Ticket?> UpdateTicket(Guid ticketID, Ticket ticket) | ||
{ | ||
throw new NotImplementedException(); | ||
} | ||
} | ||
} |
Oops, something went wrong.