28 lines
559 B
C#
28 lines
559 B
C#
|
|
using System;
|
|||
|
|
using System.Collections.Generic;
|
|||
|
|
using System.Linq;
|
|||
|
|
using System.Text;
|
|||
|
|
using System.Threading.Tasks;
|
|||
|
|
|
|||
|
|
namespace JiShe.CollectBus.EntityFrameworkCore.Entities
|
|||
|
|
{
|
|||
|
|
public interface IDeletionAudited<TUser> : IHasDeleter<TUser>, ISoftDelete, IHasDeletionTime
|
|||
|
|
{
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
public interface ISoftDelete
|
|||
|
|
{
|
|||
|
|
bool IsDeleted { get; set; }
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
public interface IHasDeleter<TUser>
|
|||
|
|
{
|
|||
|
|
TUser DeleterId { get; set; }
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
public interface IHasDeletionTime
|
|||
|
|
{
|
|||
|
|
DateTime? DeletionTime { get; set; }
|
|||
|
|
}
|
|||
|
|
}
|