GameArticleRead.php 489 B

12345678910111213141516171819202122232425
  1. <?php
  2. /**
  3. * Created by PhpStorm.
  4. * User: cqingt
  5. * Date: 2019/3/1
  6. * Time: 10:32
  7. */
  8. namespace app\common\model;
  9. class GameArticleRead extends \think\Model
  10. {
  11. protected $pk = 'id';
  12. protected $table = 'nw_game_article_read';
  13. protected $autoWriteTimestamp = true;
  14. /** 删除记录
  15. * @param $article_id 游戏公告id
  16. * @return int
  17. */
  18. public function delRead($article_id)
  19. {
  20. return $this->destroy(['game_article_id' => $article_id]);
  21. }
  22. }