Add remaining project files
This commit is contained in:
@@ -0,0 +1,36 @@
|
||||
using Microsoft.AspNetCore.Http;
|
||||
using Microsoft.AspNetCore.Mvc;
|
||||
using static DeluxeBackend.Controllers.Api.AvatarController;
|
||||
|
||||
namespace DeluxeBackend.Controllers.Api
|
||||
{
|
||||
[Route("api/playerReputation")]
|
||||
[ApiController]
|
||||
public class PlayerReputationController : ControllerBase
|
||||
{
|
||||
[HttpGet("v2/bulk")]
|
||||
public async Task<IActionResult> bulk([FromQuery(Name = "id")] List<long> accountIds)
|
||||
{
|
||||
List<Dictionary<string, object>> reputations = new List<Dictionary<string, object>>();
|
||||
foreach (long item in accountIds)
|
||||
{
|
||||
#pragma warning disable CS8625 // Cannot convert null literal to non-nullable reference type.
|
||||
reputations.Add(new Dictionary<string, object>
|
||||
{
|
||||
["AccountId"] = item,
|
||||
["IsCheerful"] = true,
|
||||
["Noteriety"] = 0.0,
|
||||
["CheerCredit"] = 99,
|
||||
["CheerGeneral"] = 0,
|
||||
["CheerHelpful"] = 0,
|
||||
["CheerCreative"] = 0,
|
||||
["CheerGreatHost"] = 0,
|
||||
["CheerSportsman"] = 0
|
||||
});
|
||||
#pragma warning restore CS8625
|
||||
}
|
||||
|
||||
return Ok(reputations);
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user