TemplatePro/BZPT.Domains/IService/ICRUDService.cs

22 lines
636 B
C#
Raw Normal View History

2025-03-02 23:30:03 +08:00

using BZPT.Dto.VO;
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<INPResult> GetAsync(string userId);
}
}