25 lines
603 B
C#
25 lines
603 B
C#
using Azure.Core;
|
|
using LY.App.Extensions.DI;
|
|
using LY.App.Model;
|
|
using Mapster;
|
|
using SqlSugar;
|
|
using System.Security.AccessControl;
|
|
|
|
namespace LY.App.Service
|
|
{
|
|
[ServiceInjection(InjectionType.Transient)]
|
|
public class LogService
|
|
{
|
|
private readonly SqlSugarClient _db;
|
|
public LogService(SqlSugarClient sqlSugarClient)
|
|
{
|
|
_db = sqlSugarClient;
|
|
}
|
|
public async Task AddLog(AddLog input)
|
|
{
|
|
var entity = input.Adapt<LogEntity>();
|
|
await _db.Insertable(entity).ExecuteReturnSnowflakeIdAsync();
|
|
}
|
|
}
|
|
}
|