审计添加

This commit is contained in:
2022-04-25 09:59:38 +08:00
parent e4590c3bdf
commit 5b422f575e
11 changed files with 390 additions and 2 deletions
@@ -509,6 +509,24 @@
<member name="T:IRaCIS.Core.Application.ViewModel.SystemAnonymizationAddOrEdit">
<summary> SystemAnonymizationAddOrEdit 列表查询参数模型</summary>
</member>
<member name="T:IRaCIS.Core.Application.ViewModel.SystemNoticeView">
<summary> SystemNoticeView 列表视图模型 </summary>
</member>
<member name="T:IRaCIS.Core.Application.ViewModel.SystemNoticeQuery">
<summary>SystemNoticeQuery 列表查询参数模型</summary>
</member>
<member name="P:IRaCIS.Core.Application.ViewModel.SystemNoticeQuery.NoticeContent">
<summary> NoticeContent</summary>
</member>
<member name="P:IRaCIS.Core.Application.ViewModel.SystemNoticeQuery.FileName">
<summary> FileName</summary>
</member>
<member name="P:IRaCIS.Core.Application.ViewModel.SystemNoticeQuery.Path">
<summary> Path</summary>
</member>
<member name="T:IRaCIS.Core.Application.ViewModel.SystemNoticeAddOrEdit">
<summary> SystemNoticeAddOrEdit 列表查询参数模型</summary>
</member>
<member name="T:IRaCIS.Core.Application.ViewModel.TrialExternalUserView">
<summary> TrialExternalUserView 列表视图模型 </summary>
</member>
@@ -1002,6 +1020,11 @@
ISystemAnonymizationService
</summary>
</member>
<member name="T:IRaCIS.Core.Application.Interfaces.ISystemNoticeService">
<summary>
ISystemNoticeService
</summary>
</member>
<member name="T:IRaCIS.Core.Application.Interfaces.ITrialExternalUserService">
<summary>
ITrialExternalUserService
@@ -0,0 +1,75 @@
//--------------------------------------------------------------------
// 此代码由T4模板自动生成 byzhouhang 20210918
// 生成时间 2022-04-25 09:46:34
// 对此文件的更改可能会导致不正确的行为,并且如果重新生成代码,这些更改将会丢失。
//--------------------------------------------------------------------
using System;
using IRaCIS.Core.Domain.Share;
using System.Collections.Generic;
namespace IRaCIS.Core.Application.ViewModel
{
/// <summary> SystemNoticeView 列表视图模型 </summary>
public class SystemNoticeView
{
public Guid Id { get; set; }
public int NoticeLevelEnum { get; set; }
public string NoticeContent { get; set; }
public DateTime CreateTime { get; set; }
public Guid CreateUserId { get; set; }
public DateTime UpdateTime { get; set; }
public Guid UpdateUserId { get; set; }
public int ApplicableProjectEnum { get; set; }
public int NoticeMode { get; set; }
public int NoticeStateEnum { get; set; }
public DateTime? StartDate { get; set; }
public DateTime? EndDate { get; set; }
public string FileName { get; set; }
public string Path { get; set; }
}
///<summary>SystemNoticeQuery 列表查询参数模型</summary>
public class SystemNoticeQuery
{
///<summary> NoticeContent</summary>
public string NoticeContent { get; set; }
///<summary> FileName</summary>
public string FileName { get; set; }
///<summary> Path</summary>
public string Path { get; set; }
}
///<summary> SystemNoticeAddOrEdit 列表查询参数模型</summary>
public class SystemNoticeAddOrEdit
{
public Guid Id { get; set; }
public int NoticeLevelEnum { get; set; }
public string NoticeContent { get; set; }
public DateTime CreateTime { get; set; }
public Guid CreateUserId { get; set; }
public DateTime UpdateTime { get; set; }
public Guid UpdateUserId { get; set; }
public int ApplicableProjectEnum { get; set; }
public int NoticeMode { get; set; }
public int NoticeStateEnum { get; set; }
public DateTime? StartDate { get; set; }
public DateTime? EndDate { get; set; }
public string FileName { get; set; }
public string Path { get; set; }
}
public class SystemNoticeUserTypeView
{
public Guid Id { get; set; }
public Guid SystemNoticeId { get; set; }
public DateTime CreateTime { get; set; }
public Guid CreateUserId { get; set; }
public Guid UserTypeId { get; set; }
}
}
@@ -0,0 +1,25 @@
//--------------------------------------------------------------------
// 此代码由T4模板自动生成 byzhouhang 20210918
// 生成时间 2022-04-25 09:46:39
// 对此文件的更改可能会导致不正确的行为,并且如果重新生成代码,这些更改将会丢失。
//--------------------------------------------------------------------
using IRaCIS.Core.Application.ViewModel;
namespace IRaCIS.Core.Application.Interfaces
{
/// <summary>
/// ISystemNoticeService
/// </summary>
public interface ISystemNoticeService
{
Task<List<SystemNoticeView>> GetSystemNoticeList(SystemNoticeQuery querySystemNotice);
Task<IResponseOutput> AddOrUpdateSystemNotice(SystemNoticeAddOrEdit addOrEditSystemNotice);
Task<IResponseOutput> DeleteSystemNotice(Guid systemNoticeId);
}
}
@@ -0,0 +1,64 @@
////--------------------------------------------------------------------
//// 此代码由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
//{
// /// <summary>
// /// SystemNoticeService
// /// </summary>
// [ ApiExplorerSettings(GroupName = "Test")]
// public class SystemNoticeService: BaseService, ISystemNoticeService
// {
// private readonly IRepository<SystemNotice> _systemNoticeRepository;
// public SystemNoticeService(IRepository<SystemNotice> systemNoticeRepository)
// {
// _systemNoticeRepository = systemNoticeRepository;
// }
// public async Task<List<SystemNoticeView>> GetSystemNoticeList(SystemNoticeQuery querySystemNotice)
// {
// var systemNoticeQueryable = _repository.GetQueryable<SystemNotice>()
// .ProjectTo<SystemNoticeView>(_mapper.ConfigurationProvider);
// return await systemNoticeQueryable.ToListAsync();
// }
// public async Task<IResponseOutput> AddOrUpdateSystemNotice(SystemNoticeAddOrEdit addOrEditSystemNotice)
// {
// // 在此处拷贝automapper 映射
// //CreateMap<SystemNotice, SystemNoticeView>();
// // CreateMap< SystemNotice,SystemNoticeAddOrEdit>().ReverseMap();
// var entity = await _repository.InsertOrUpdateAsync<SystemNotice, SystemNoticeAddOrEdit>(addOrEditSystemNotice, true);
// return ResponseOutput.Ok(entity.Id.ToString());
// }
// [HttpDelete("{systemNoticeId:guid}")]
// public async Task<IResponseOutput> DeleteSystemNotice(Guid systemNoticeId)
// {
// var success = await _repository.BatchDeleteAsync<SystemNotice>()(t => t.Id == systemNoticeId);
// return ResponseOutput.Result(success);
// }
// }
//}