parent
c8e3334bdb
commit
f9671aa275
@ -0,0 +1,43 @@
|
||||
using SqlSugar;
|
||||
|
||||
namespace Entity.DbModel;
|
||||
/// <summary>
|
||||
/// 业务model 基类
|
||||
/// </summary>
|
||||
public class BaseModel
|
||||
{
|
||||
/// <summary>
|
||||
/// Desc:创建人
|
||||
/// Default:
|
||||
/// Nullable:True
|
||||
/// </summary>
|
||||
[SugarColumn(ColumnName = "created_by")]
|
||||
public string? CreatedBy { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Desc:创建时间
|
||||
/// Default:CURRENT_TIMESTAMP
|
||||
/// Nullable:True
|
||||
/// </summary>
|
||||
/// [SugarColumn(IsPrimaryKey = false, , ColumnDescription = "创建时间")]
|
||||
[SugarColumn(ColumnName = "created_time", InsertServerTime = true)]
|
||||
public DateTime? CreatedTime { get; set; }
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// Desc:更新人
|
||||
/// Default:
|
||||
/// Nullable:True
|
||||
/// </summary>
|
||||
[SugarColumn(ColumnName = "updated_by")]
|
||||
public string? UpdatedBy { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Desc:更新时间
|
||||
/// Default:CURRENT_TIMESTAMP
|
||||
/// Nullable:True
|
||||
/// </summary>
|
||||
[SugarColumn(ColumnName = "updated_time", UpdateServerTime = true)]
|
||||
public DateTime? UpdatedTime { get; set; } = DateTime.Now;
|
||||
|
||||
}
|
@ -1,11 +0,0 @@
|
||||
using Entity.DbModel;
|
||||
using SqlSugar;
|
||||
|
||||
namespace Repository.System;
|
||||
|
||||
public class sysDicDataRepository : BaseRepository<sysDicData>
|
||||
{
|
||||
public sysDicDataRepository(ISqlSugarClient sqlSugar) : base(sqlSugar)
|
||||
{
|
||||
}
|
||||
}
|
@ -1,11 +0,0 @@
|
||||
using Entity.DbModel;
|
||||
using SqlSugar;
|
||||
|
||||
namespace Repository.System;
|
||||
|
||||
public class sysDicTypeRepository : BaseRepository<sysDicType>
|
||||
{
|
||||
public sysDicTypeRepository(ISqlSugarClient sqlSugar) : base(sqlSugar)
|
||||
{
|
||||
}
|
||||
}
|
@ -1,11 +0,0 @@
|
||||
using Entity.DbModel;
|
||||
using SqlSugar;
|
||||
|
||||
namespace Repository.System;
|
||||
|
||||
public class sysMessageRepository : BaseRepository<sysMessage>
|
||||
{
|
||||
public sysMessageRepository(ISqlSugarClient sqlSugar) : base(sqlSugar)
|
||||
{
|
||||
}
|
||||
}
|
@ -1,11 +0,0 @@
|
||||
using Entity.DbModel;
|
||||
using SqlSugar;
|
||||
|
||||
namespace Repository.System;
|
||||
|
||||
public class sysRoleMenuRepository : BaseRepository<sysRoleMenu>
|
||||
{
|
||||
public sysRoleMenuRepository(ISqlSugarClient sqlSugar) : base(sqlSugar)
|
||||
{
|
||||
}
|
||||
}
|
@ -1,11 +0,0 @@
|
||||
using Entity.DbModel;
|
||||
using SqlSugar;
|
||||
|
||||
namespace Repository.System;
|
||||
|
||||
public class sysRoleRepository : BaseRepository<sysRole>
|
||||
{
|
||||
public sysRoleRepository(ISqlSugarClient sqlSugar) : base(sqlSugar)
|
||||
{
|
||||
}
|
||||
}
|
@ -1,11 +0,0 @@
|
||||
using Entity.DbModel;
|
||||
using SqlSugar;
|
||||
|
||||
namespace Repository.System;
|
||||
|
||||
public class sysUserRoleRepository : BaseRepository<sysUserRole>
|
||||
{
|
||||
public sysUserRoleRepository(ISqlSugarClient sqlSugar) : base(sqlSugar)
|
||||
{
|
||||
}
|
||||
}
|
@ -1,18 +0,0 @@
|
||||
using Entity.DbModel;
|
||||
using Repository.System;
|
||||
using Repository.UnitOfWork;
|
||||
|
||||
namespace Service.System;
|
||||
|
||||
public class sysDicDataServices : BaseServices<sysDicData>
|
||||
{
|
||||
private readonly sysDicDataRepository _dal;
|
||||
private readonly UnitOfWork _unitOfWork;
|
||||
|
||||
public sysDicDataServices(UnitOfWork unitOfWork, sysDicDataRepository dal)
|
||||
{
|
||||
_dal = dal;
|
||||
BaseDal = dal;
|
||||
_unitOfWork = unitOfWork;
|
||||
}
|
||||
}
|
@ -1,18 +0,0 @@
|
||||
using Entity.DbModel;
|
||||
using Repository.System;
|
||||
using Repository.UnitOfWork;
|
||||
|
||||
namespace Service.System;
|
||||
|
||||
public class sysDicTypeServices : BaseServices<sysDicType>
|
||||
{
|
||||
private readonly sysDicTypeRepository _dal;
|
||||
private readonly UnitOfWork _unitOfWork;
|
||||
|
||||
public sysDicTypeServices(UnitOfWork unitOfWork, sysDicTypeRepository dal)
|
||||
{
|
||||
_dal = dal;
|
||||
BaseDal = dal;
|
||||
_unitOfWork = unitOfWork;
|
||||
}
|
||||
}
|
@ -1,18 +0,0 @@
|
||||
using Entity.DbModel;
|
||||
using Repository.System;
|
||||
using Repository.UnitOfWork;
|
||||
|
||||
namespace Service.System;
|
||||
|
||||
public class sysMessageServices : BaseServices<sysMessage>
|
||||
{
|
||||
private readonly sysMessageRepository _dal;
|
||||
private readonly UnitOfWork _unitOfWork;
|
||||
|
||||
public sysMessageServices(UnitOfWork unitOfWork, sysMessageRepository dal)
|
||||
{
|
||||
_dal = dal;
|
||||
BaseDal = dal;
|
||||
_unitOfWork = unitOfWork;
|
||||
}
|
||||
}
|
@ -1,18 +0,0 @@
|
||||
using Entity.DbModel;
|
||||
using Repository.System;
|
||||
using Repository.UnitOfWork;
|
||||
|
||||
namespace Service.System;
|
||||
|
||||
public class sysRoleMenuServices : BaseServices<sysRoleMenu>
|
||||
{
|
||||
private readonly sysRoleMenuRepository _dal;
|
||||
private readonly UnitOfWork _unitOfWork;
|
||||
|
||||
public sysRoleMenuServices(UnitOfWork unitOfWork, sysRoleMenuRepository dal)
|
||||
{
|
||||
_dal = dal;
|
||||
BaseDal = dal;
|
||||
_unitOfWork = unitOfWork;
|
||||
}
|
||||
}
|
@ -1,18 +0,0 @@
|
||||
using Entity.DbModel;
|
||||
using Repository.System;
|
||||
using Repository.UnitOfWork;
|
||||
|
||||
namespace Service.System;
|
||||
|
||||
public class sysRoleServices : BaseServices<sysRole>
|
||||
{
|
||||
private readonly sysRoleRepository _dal;
|
||||
private readonly UnitOfWork _unitOfWork;
|
||||
|
||||
public sysRoleServices(UnitOfWork unitOfWork, sysRoleRepository dal)
|
||||
{
|
||||
_dal = dal;
|
||||
BaseDal = dal;
|
||||
_unitOfWork = unitOfWork;
|
||||
}
|
||||
}
|
@ -1,18 +0,0 @@
|
||||
using Entity.DbModel;
|
||||
using Repository.System;
|
||||
using Repository.UnitOfWork;
|
||||
|
||||
namespace Service.System;
|
||||
|
||||
public class sysUserRoleServices : BaseServices<sysUserRole>
|
||||
{
|
||||
private readonly sysUserRoleRepository _dal;
|
||||
private readonly UnitOfWork _unitOfWork;
|
||||
|
||||
public sysUserRoleServices(UnitOfWork unitOfWork, sysUserRoleRepository dal)
|
||||
{
|
||||
_dal = dal;
|
||||
BaseDal = dal;
|
||||
_unitOfWork = unitOfWork;
|
||||
}
|
||||
}
|
Loading…
Reference in new issue