////-------------------------------------------------------------------- //// 此代码由T4模板自动生成 byzhouhang 20210918 //// 生成时间 2022-04-25 09:46:43 //// 对此文件的更改可能会导致不正确的行为,并且如果重新生成代码,这些更改将会丢失。 ////-------------------------------------------------------------------- //using IRaCIS.Core.Domain.Models; //using Microsoft.AspNetCore.Mvc; //using IRaCIS.Core.Application.Interfaces; //using IRaCIS.Core.Application.ViewModel; //namespace IRaCIS.Core.Application.Service //{ // /// // /// SystemNoticeService // /// // [ ApiExplorerSettings(GroupName = "Test")] // public class SystemNoticeService: BaseService, ISystemNoticeService // { // private readonly IRepository _systemNoticeRepository; // public SystemNoticeService(IRepository systemNoticeRepository) // { // _systemNoticeRepository = systemNoticeRepository; // } // public async Task> GetSystemNoticeList(SystemNoticeQuery querySystemNotice) // { // var systemNoticeQueryable = _repository.GetQueryable() // .ProjectTo(_mapper.ConfigurationProvider); // return await systemNoticeQueryable.ToListAsync(); // } // public async Task AddOrUpdateSystemNotice(SystemNoticeAddOrEdit addOrEditSystemNotice) // { // // 在此处拷贝automapper 映射 // //CreateMap(); // // CreateMap< SystemNotice,SystemNoticeAddOrEdit>().ReverseMap(); // var entity = await _repository.InsertOrUpdateAsync(addOrEditSystemNotice, true); // return ResponseOutput.Ok(entity.Id.ToString()); // } // [HttpDelete("{systemNoticeId:guid}")] // public async Task DeleteSystemNotice(Guid systemNoticeId) // { // var success = await _repository.BatchDeleteAsync()(t => t.Id == systemNoticeId); // return ResponseOutput.Result(success); // } // } //}