This commit is contained in:
Yuan
2022-07-24 14:48:54 +08:00
parent 5907f586ce
commit baf1bae943
115 changed files with 19923 additions and 0 deletions

View File

@@ -0,0 +1,26 @@
using Appointment.Entity;
using Appointment.IRepository;
using System;
using System.Collections.Generic;
using System.Text;
namespace Appointment.Repository
{
public class ApptLogRepo : DbContext, IApptLogRepo
{
public ApiResult<int> SetLog(string tableName, string keyId, string oldData, string newData, string userId, int systemUser = 0)
{
var model = new ApptLog()
{
TableName = tableName,
KeyId = keyId,
OldData = oldData,
NewData = newData,
CreateTime = DateTime.Now,
UserId = userId,
SystemUser = systemUser
};
return InsertReturnId(model);
}
}
}