ITbdmCodeService.cs 1.2 KB

123456789101112131415161718192021222324252627
  1. using Ropin.Inspection.Model;
  2. using Ropin.Inspection.Model.Entities;
  3. using Ropin.Inspection.Service.Interface;
  4. using System;
  5. using System.Collections.Generic;
  6. using System.Linq;
  7. using System.Linq.Expressions;
  8. using System.Security.Claims;
  9. using System.Text;
  10. using System.Threading.Tasks;
  11. namespace Ropin.Inspection.Service
  12. {
  13. public interface ITbdmCodeService : IBaseService<TbdmCodeViewModel>, IBaseServiceById<TbdmCodeViewModel, string>
  14. {
  15. Task<List<TbdmCodeViewModel>> GetCodeListTreeAsync();
  16. Task<IEnumerable<TbdmDetailCode>> GetConditionDetailAsync(TbdmCodeSearchModel searchModel);
  17. Task<IEnumerable<TbdmCodeViewModel>> GetConditionAsync(TbdmCodeSearchModel searchModel);
  18. Task<IEnumerable<TbdmCodeViewModel>> GetByConditionAsync(Expression<Func<TbdmCodeViewModel, bool>> expression);
  19. Task CreateDetailAsync(TbdmCodeDetailCreateModel viewModel);
  20. Task DisabledStatusAsync(string id);
  21. Task DisabledDetailStatusAsync(string id);
  22. Task UpdateAsync(string code, TbdmCodeViewModel updateModel);
  23. Task UpdateDetailAsync(string code, TbdmCodeDetailUpdateModel updateModel);
  24. Task DeleteDetailAsync(string id);
  25. }
  26. }