IRecordRepository.cs 1.1 KB

12345678910111213141516171819202122232425262728
  1. using SWRIS.Dtos;
  2. using System;
  3. using System.Collections.Generic;
  4. namespace SWRIS.Repository
  5. {
  6. internal interface IRecordRepository
  7. {
  8. int? CreateRecord(RecordDto record);
  9. bool UpdateRecord(RecordDto record);
  10. bool DeleteRecord(int id);
  11. int DeleteRecords(int[] ids);
  12. RecordDto GetRecord(int id);
  13. List<RecordDto> GetRecords(int? ropeNumber,
  14. DateTime? startTime = null,
  15. DateTime? endTime = null,
  16. int? riskLevel = null,
  17. int? limit = null,
  18. int? offset = null,
  19. bool hasDamages = false);
  20. bool DeleteDamage(int id);
  21. bool UpdateDamage(DamageDto damage);
  22. bool UpdateRecordDamageCount(int id, int damageCount);
  23. List<RecordDto> GetLastRecords(int lastCount = 10, bool hasDamages = false);
  24. bool AddRecordExportCount(int id);
  25. (int, List<string>) DeleteRecords(DateTime endTime);
  26. }
  27. }