26 lines
1.1 KiB
C#
26 lines
1.1 KiB
C#
namespace PrivaPub.ClientModels.Admin
|
|||
|
|
{
|
||
|
|
// the staff's log, newest first (GET /clientapi/moderator/log?before=&limit=): Next is the `before` of the next page,
|
||
|
|
// null on the last
|
||
|
|
public class ViewAdminActionsPage
|
||
|
|
{
|
||
|
|
public List<ViewAdminAction> Items { get; set; } = [];
|
||
|
|
public string Next { get; set; }
|
||
|
|
}
|
||
|
|
|
||
|
|
public class ViewAdminAction
|
||
|
|
{
|
||
|
|
public string Id { get; set; }
|
||
|
|
public DateTime At { get; set; }
|
||
|
|
// who acted: a login name (to administrators; to a moderator only its own), "cli" for the command line, null when not
|
||
|
|
// told (an act on a persona of the acting login keeps nobody's name)
|
||
|
|
public string By { get; set; }
|
||
|
|
public bool ByYou { get; set; } = false;
|
||
|
|
public string Action { get; set; }//e.g. domain_block.insert, settings.update, report.resolve, root.promote
|
||
|
|
public string TargetKind { get; set; }//root, persona, account, domain, report, settings, rule, announcement, emoji, relay, backup
|
||
|
|
public string TargetId { get; set; }
|
||
|
|
public string TargetLabel { get; set; }
|
||
|
|
public string ReportId { get; set; }
|
||
|
|
public string Note { get; set; }
|
||
|
|
}
|
||
|
|
}
|