feat: 对接前端,完成通知公告
This commit is contained in:
@@ -0,0 +1,17 @@
|
||||
using Yi.Framework.Rbac.Domain.Shared.Enums;
|
||||
|
||||
namespace Yi.Framework.Rbac.Application.Contracts.Dtos.Notice
|
||||
{
|
||||
/// <summary>
|
||||
/// Notice输入创建对象
|
||||
/// </summary>
|
||||
public class NoticeCreateInput
|
||||
{
|
||||
public string Title { get; set; }
|
||||
public NoticeTypeEnum Type { get; set; }
|
||||
public string Content { get; set; }
|
||||
public int OrderNum { get; set; }
|
||||
public bool State { get; set; }
|
||||
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,14 @@
|
||||
using Yi.Framework.Ddd.Application.Contracts;
|
||||
using Yi.Framework.Rbac.Domain.Shared.Enums;
|
||||
|
||||
namespace Yi.Framework.Rbac.Application.Contracts.Dtos.Notice
|
||||
{
|
||||
/// <summary>
|
||||
/// 查询参数
|
||||
/// </summary>
|
||||
public class NoticeGetListInput : PagedAllResultRequestDto
|
||||
{
|
||||
public string? Title { get; set; }
|
||||
public NoticeTypeEnum? Type { get; set; }
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,20 @@
|
||||
using Volo.Abp.Application.Dtos;
|
||||
using Yi.Framework.Rbac.Domain.Shared.Enums;
|
||||
|
||||
namespace Yi.Framework.Rbac.Application.Contracts.Dtos.Notice
|
||||
{
|
||||
public class NoticeGetListOutputDto : EntityDto<Guid>
|
||||
{
|
||||
public string Title { get; set; }
|
||||
public NoticeTypeEnum Type { get; set; }
|
||||
public string Content { get; set; }
|
||||
public bool IsDeleted { get; set; }
|
||||
public DateTime CreationTime { get; set; }
|
||||
public Guid? CreatorId { get; set; }
|
||||
public Guid? LastModifierId { get; set; }
|
||||
public DateTime? LastModificationTime { get; set; }
|
||||
public int OrderNum { get; set; }
|
||||
public bool State { get; set; }
|
||||
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,20 @@
|
||||
using Volo.Abp.Application.Dtos;
|
||||
using Yi.Framework.Rbac.Domain.Shared.Enums;
|
||||
|
||||
namespace Yi.Framework.Rbac.Application.Contracts.Dtos.Notice
|
||||
{
|
||||
public class NoticeGetOutputDto : EntityDto<Guid>
|
||||
{
|
||||
public string Title { get; set; }
|
||||
public NoticeTypeEnum Type { get; set; }
|
||||
public string Content { get; set; }
|
||||
public bool IsDeleted { get; set; }
|
||||
public DateTime CreationTime { get; set; }
|
||||
public Guid? CreatorId { get; set; }
|
||||
public Guid? LastModifierId { get; set; }
|
||||
public DateTime? LastModificationTime { get; set; }
|
||||
public int OrderNum { get; set; }
|
||||
public bool State { get; set; }
|
||||
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,13 @@
|
||||
using Yi.Framework.Rbac.Domain.Shared.Enums;
|
||||
|
||||
namespace Yi.Framework.Rbac.Application.Contracts.Dtos.Notice
|
||||
{
|
||||
public class NoticeUpdateInput
|
||||
{
|
||||
public string? Title { get; set; }
|
||||
public NoticeTypeEnum? Type { get; set; }
|
||||
public string? Content { get; set; }
|
||||
public int? OrderNum { get; set; }
|
||||
public bool? State { get; set; }
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,13 @@
|
||||
using Yi.Framework.Ddd.Application.Contracts;
|
||||
using Yi.Framework.Rbac.Application.Contracts.Dtos.Notice;
|
||||
|
||||
namespace Yi.Framework.Rbac.Application.Contracts.IServices
|
||||
{
|
||||
/// <summary>
|
||||
/// Notice服务抽象
|
||||
/// </summary>
|
||||
public interface INoticeService : IYiCrudAppService<NoticeGetOutputDto, NoticeGetListOutputDto, Guid, NoticeGetListInput, NoticeCreateInput, NoticeUpdateInput>
|
||||
{
|
||||
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user