Neo4jApi.php 644 B

123456789101112131415161718192021
  1. <?php
  2. namespace app\model;
  3. use think\Model;
  4. use app\controller\CommonTwoController;
  5. class Neo4jApi extends Model
  6. {
  7. public static $chMedicine = ['SickNess' , 'CnPatentMedicine' , 'CnMedicinalCrop' , 'TonicDiet' , 'Prescription' , 'ChannelCollateral' , 'Constitution'];
  8. public $westernMedicine = ['SickNess' , 'Disease' , 'MedicineProduction' , 'Inspection' , 'Symptom' , 'Identity'];
  9. const XYZSK = '西医知识库';
  10. const ZYZSK = '中医知识库';
  11. const DOCGUIDE = '文献和指南';
  12. public static function checkLabelBelong($label)
  13. {
  14. return in_array($label, self::$chMedicine) ?? '';
  15. }
  16. }