You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
29 lines
894 B
29 lines
894 B
namespace Tiobon.Core.Services;
|
|
|
|
/// <summary>
|
|
/// 开班管理 (服务)
|
|
/// </summary>
|
|
public class Ghre_OpenClassServices : BaseServices<Ghre_OpenClass, Ghre_OpenClassDto, InsertGhre_OpenClassInput, EditGhre_OpenClassInput>, IGhre_OpenClassServices
|
|
{
|
|
private readonly IBaseRepository<Ghre_OpenClass> _dal;
|
|
public Ghre_OpenClassServices(ICaching caching, IBaseRepository<Ghre_OpenClass> dal)
|
|
{
|
|
this._dal = dal;
|
|
base.BaseDal = dal;
|
|
base._caching = caching;
|
|
}
|
|
|
|
public override async Task<long> Add(InsertGhre_OpenClassInput entity)
|
|
{
|
|
var result = await base.Add(entity);
|
|
entity.Status = "Temporary";
|
|
return result;
|
|
}
|
|
|
|
public override async Task<bool> Update(long Id, EditGhre_OpenClassInput editModel)
|
|
{
|
|
|
|
var result = await base.Update(Id, editModel, null, ["Status"]);
|
|
return result;
|
|
}
|
|
} |