爆肝,重构框架,你懂得

This commit is contained in:
chenchun
2023-01-01 23:06:11 +08:00
parent dbe020dc94
commit b9384afd5d
276 changed files with 5205 additions and 3281 deletions

View File

@@ -0,0 +1,34 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Linq.Expressions;
using System.Text;
using System.Threading.Tasks;
namespace Yi.Framework.Interface.Base.Crud
{
public interface IReadOnlyAppService<TListDto, in TKey> : IReadOnlyAppService<TListDto, TListDto, TKey>
{
}
public interface IReadOnlyAppService<TDetail, TListDto, in TKey> : IApplicationService
{
/// <summary>
/// 根据Id获取数据
/// </summary>
/// <param name="id"></param>
/// <returns></returns>
Task<TDetail> GetByIdAsync(TKey id);
/// <summary>
/// 根据url参数查询
/// </summary>
/// <param name="urlParams"></param>
/// <returns></returns>
//Task<PageData<TListDto>> GetByUrl(List<UrlParams> input = null);
}
}