compare.py 410 B

1234567891011121314151617181920
  1. # coding=utf-8
  2. """
  3. @project: maxkb
  4. @Author:虎
  5. @file: compare.py
  6. @date:2024/6/7 14:37
  7. @desc:
  8. """
  9. from abc import abstractmethod
  10. from typing import List
  11. class Compare:
  12. @abstractmethod
  13. def support(self, node_id, fields: List[str], source_value, compare, target_value):
  14. pass
  15. @abstractmethod
  16. def compare(self, source_value, compare, target_value):
  17. pass