feat:furion rbac搭建
This commit is contained in:
@@ -0,0 +1,12 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace Yi.Framework.Infrastructure.Ddd.Services.Abstract
|
||||
{
|
||||
public interface IApplicationService
|
||||
{
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,20 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace Yi.Framework.Infrastructure.Ddd.Services.Abstract
|
||||
{
|
||||
public interface ICreateAppService<TEntityDto>
|
||||
: ICreateAppService<TEntityDto, TEntityDto>
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
public interface ICreateAppService<TGetOutputDto, in TCreateInput>
|
||||
: IApplicationService
|
||||
{
|
||||
Task<TGetOutputDto> CreateAsync(TCreateInput input);
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,27 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace Yi.Framework.Infrastructure.Ddd.Services.Abstract
|
||||
{
|
||||
public interface ICreateUpdateAppService<TEntityDto, in TKey>
|
||||
: ICreateUpdateAppService<TEntityDto, TKey, TEntityDto, TEntityDto>
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
public interface ICreateUpdateAppService<TEntityDto, in TKey, in TCreateUpdateInput>
|
||||
: ICreateUpdateAppService<TEntityDto, TKey, TCreateUpdateInput, TCreateUpdateInput>
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
public interface ICreateUpdateAppService<TGetOutputDto, in TKey, in TCreateUpdateInput, in TUpdateInput>
|
||||
: ICreateAppService<TGetOutputDto, TCreateUpdateInput>,
|
||||
IUpdateAppService<TGetOutputDto, TKey, TUpdateInput>
|
||||
{
|
||||
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,42 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
using Yi.Framework.Infrastructure.Ddd.Dtos;
|
||||
|
||||
namespace Yi.Framework.Infrastructure.Ddd.Services.Abstract
|
||||
{
|
||||
|
||||
public interface ICrudAppService<TEntityDto, in TKey>
|
||||
: ICrudAppService<TEntityDto, TKey, PagedAndSortedResultRequestDto>
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
public interface ICrudAppService<TEntityDto, in TKey, in TGetListInput>
|
||||
: ICrudAppService<TEntityDto, TKey, TGetListInput, TEntityDto>
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
public interface ICrudAppService<TEntityDto, in TKey, in TGetListInput, in TCreateInput>
|
||||
: ICrudAppService<TEntityDto, TKey, TGetListInput, TCreateInput, TCreateInput>
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
public interface ICrudAppService<TEntityDto, in TKey, in TGetListInput, in TCreateInput, in TUpdateInput>
|
||||
: ICrudAppService<TEntityDto, TEntityDto, TKey, TGetListInput, TCreateInput, TUpdateInput>
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
public interface ICrudAppService<TGetOutputDto, TGetListOutputDto, in TKey, in TGetListInput, in TCreateInput, in TUpdateInput>
|
||||
: IReadOnlyAppService<TGetOutputDto, TGetListOutputDto, TKey, TGetListInput>,
|
||||
ICreateUpdateAppService<TGetOutputDto, TKey, TCreateInput, TUpdateInput>,
|
||||
IDeleteAppService<TKey>
|
||||
{
|
||||
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,13 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace Yi.Framework.Infrastructure.Ddd.Services.Abstract
|
||||
{
|
||||
public interface IDeleteAppService<in TKey> : IApplicationService
|
||||
{
|
||||
Task<bool> DeleteAsync(string id);
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,15 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
using Yi.Framework.Infrastructure.Ddd.Dtos.Abstract;
|
||||
|
||||
namespace Yi.Framework.Infrastructure.Ddd.Services.Abstract
|
||||
{
|
||||
public interface IPageTimeResultRequestDto : IPagedAndSortedResultRequestDto
|
||||
{
|
||||
DateTime? StartTime { get; set; }
|
||||
DateTime? EndTime { get; set; }
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,24 @@
|
||||
using Yi.Framework.Infrastructure.Ddd.Dtos;
|
||||
|
||||
namespace Yi.Framework.Infrastructure.Ddd.Services.Abstract
|
||||
{
|
||||
public interface IReadOnlyAppService<TEntityDto, in TKey>
|
||||
: IReadOnlyAppService<TEntityDto, TEntityDto, TKey, PagedAndSortedResultRequestDto>
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
public interface IReadOnlyAppService<TEntityDto, in TKey, in TGetListInput>
|
||||
: IReadOnlyAppService<TEntityDto, TEntityDto, TKey, TGetListInput>
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
public interface IReadOnlyAppService<TGetOutputDto, TGetListOutputDto, in TKey, in TGetListInput>
|
||||
: IApplicationService
|
||||
{
|
||||
Task<TGetOutputDto> GetAsync(TKey id);
|
||||
|
||||
Task<PagedResultDto<TGetListOutputDto>> GetListAsync(TGetListInput input);
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,21 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace Yi.Framework.Infrastructure.Ddd.Services.Abstract
|
||||
{
|
||||
public interface IUpdateAppService<TEntityDto, in TKey>
|
||||
: IUpdateAppService<TEntityDto, TKey, TEntityDto>
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
public interface IUpdateAppService<TGetOutputDto, in TKey, in TUpdateInput>
|
||||
: IApplicationService
|
||||
{
|
||||
Task<TGetOutputDto> UpdateAsync(TKey id, TUpdateInput input);
|
||||
}
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user