24 lines
661 B
C#
24 lines
661 B
C#
using System.Collections.Generic;
|
|
using DysonNetwork.Shared.Models;
|
|
using MagicOnion;
|
|
|
|
namespace DysonNetwork.Shared.Services;
|
|
|
|
public interface IActionLogService : IService<IActionLogService>
|
|
{
|
|
/// <summary>
|
|
/// Creates an action log entry
|
|
/// </summary>
|
|
void CreateActionLog(Guid accountId, string action, Dictionary<string, object> meta);
|
|
|
|
/// <summary>
|
|
/// Creates an action log entry from an HTTP request
|
|
/// </summary>
|
|
Task<ActionLog> CreateActionLogFromRequest(
|
|
string type,
|
|
Dictionary<string, object> meta,
|
|
string? ipAddress,
|
|
string? userAgent,
|
|
Account? account = null
|
|
);
|
|
} |