Class SupportSocialController
- Namespace
- FishMMO.ControlPanel.Controllers
- Assembly
- FishMMO-ControlPanel.dll
Read-only views of guilds and parties for support staff.
[ApiController]
[Route("api/support/social")]
public sealed class SupportSocialController : ControllerBase
- Inheritance
-
SupportSocialController
- Inherited Members
Remarks
Every route here is a GET and there is no write counterpart anywhere in the panel. Guild and party membership is game state: it is changed by players in the world, held in the memory of the scene server that owns the characters, and replicated to the database through the update tables. A row edited here would be overwritten by that server's next save, or — worse — would not be, leaving the roster on screen and the roster in the game permanently disagreeing. Support looks; the game decides.
Nothing here is audited, deliberately. The audit log records privileged actions,
and reads are not actions: a log in which "looked at a guild" outnumbers every ban and
every rename by a thousand to one is a log nobody can read. Every route that changes
something carries [Audited]; none of these change anything.
Constructors
SupportSocialController(ISocialBoardService, ILogger<SupportSocialController>)
public SupportSocialController(ISocialBoardService social, ILogger<SupportSocialController> log)
Parameters
socialISocialBoardServicelogILogger<SupportSocialController>
Methods
GetGuild(long)
One guild: the row, its rank ladder, its roster and its pending applications.
[HttpGet("guilds/{id:long}")]
[Authorize(Policy = "Support")]
public Task<IActionResult> GetGuild(long id)
Parameters
idlong
Returns
GetGuildLog(long, int, int)
One guild's activity log, newest first.
[HttpGet("guilds/{id:long}/log")]
[Authorize(Policy = "Support")]
public Task<IActionResult> GetGuildLog(long id, int page = 1, int pageSize = 25)
Parameters
Returns
GetParties(long?, int, int)
Live parties, newest first, each with its roster.
[HttpGet("parties")]
[Authorize(Policy = "Support")]
public Task<IActionResult> GetParties(long? worldServerId, int page = 1, int pageSize = 25)
Parameters
Returns
SearchGuilds(string?, int, int)
Searches guilds by name prefix.
[HttpGet("guilds")]
[Authorize(Policy = "Support")]
public Task<IActionResult> SearchGuilds(string? query, int page = 1, int pageSize = 25)