提交
This commit is contained in:
26
api_v1/Appointment.Repository/ApptLogRepo.cs
Normal file
26
api_v1/Appointment.Repository/ApptLogRepo.cs
Normal 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);
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user