25 lines
866 B
C#
25 lines
866 B
C#
using BZPT.Domains.Entity.Sys;
|
|
using BZPT.Dto.VO;
|
|
using DevExtreme.AspNet.Data;
|
|
using System;
|
|
using System.Collections.Generic;
|
|
using System.Linq;
|
|
using System.Text;
|
|
using System.Threading.Tasks;
|
|
|
|
namespace BZPT.Domains.IService
|
|
{
|
|
public interface ICRUDService<TEntity,TDto>
|
|
{
|
|
Task<INPResult> Add(TDto addCommand);
|
|
Task<INPResult> Delete(string userId);
|
|
Task<INPResult> Edit(TDto editCommand);
|
|
Task<IListResult<TDto>> GetListAsync(QueryExp exp);
|
|
Task<IListResult<TDto>> GetListAsync(Expression<Func<TEntity, bool>> filter);
|
|
Task<IListResult<TDto>> GetPageAsync(QueryPageExp exp);
|
|
Task<IListResult<TDto>> GetPageAsync(DataSourceLoadOptions loadOptionsexp);
|
|
Task<IListResult<VO>> GetPageAsync<VO>(DataSourceLoadOptions loadOptionsexp);
|
|
Task<INPResult> GetAsync(string userId);
|
|
}
|
|
}
|