ShopHotKeywords.php 582 B

1234567891011121314151617181920212223242526272829
  1. <?php
  2. namespace app\common\model;
  3. use app\admin\logic\ShopHotKeywordsLogic;
  4. use app\common\model\TimeModel;
  5. use think\Model;
  6. class ShopHotKeywords extends TimeModel
  7. {
  8. protected $name = "shop_hot_keywords";
  9. protected $deleteTime = false;
  10. public static function onAfterUpdate($model){
  11. ShopHotKeywordsLogic::delCache();
  12. }
  13. public static function onAfterInsert(Model $model): void
  14. {
  15. ShopHotKeywordsLogic::delCache();
  16. }
  17. public static function onAfterDelete(Model $model): void
  18. {
  19. ShopHotKeywordsLogic::delCache();
  20. }
  21. }