Push changes
This commit is contained in:
+35
@@ -0,0 +1,35 @@
|
||||
using System.Text.Json.Serialization;
|
||||
using Prospect.Server.Api.Services.CloudScript;
|
||||
|
||||
public class RefreshVictimCompensationPackagesRequest
|
||||
{
|
||||
[JsonPropertyName("userId")]
|
||||
public string UserID { get; set; }
|
||||
}
|
||||
|
||||
public class RefreshVictimCompensationPackagesResponse
|
||||
{
|
||||
[JsonPropertyName("compensationPackages")]
|
||||
public object[] CompensationPackages { get; set; }
|
||||
}
|
||||
|
||||
[CloudScriptFunction("RefreshVictimCompensationPackages")]
|
||||
public class RefreshVictimCompensationPackagesFunction : ICloudScriptFunction<RefreshVictimCompensationPackagesRequest, RefreshVictimCompensationPackagesResponse>
|
||||
{
|
||||
private readonly ILogger<RefreshVictimCompensationPackagesFunction> _logger;
|
||||
|
||||
public RefreshVictimCompensationPackagesFunction(ILogger<RefreshVictimCompensationPackagesFunction> logger)
|
||||
{
|
||||
_logger = logger;
|
||||
}
|
||||
|
||||
public async Task<RefreshVictimCompensationPackagesResponse> ExecuteAsync(RefreshVictimCompensationPackagesRequest request)
|
||||
{
|
||||
_logger.LogInformation("Processing refresh victim compensation packages");
|
||||
|
||||
return new RefreshVictimCompensationPackagesResponse
|
||||
{
|
||||
CompensationPackages = [],
|
||||
};
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user