WxappHelp.php 886 B

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. <?php
  2. /**
  3. *
  4. * @copyright ©2020 点小铺
  5. * @author hanj
  6. * @link: https://dyuit.com
  7. * Created by VSCode
  8. */
  9. namespace app\common\model;
  10. /**
  11. * 小程序帮助中心
  12. * Class WxappHelp
  13. * @package app\common\model
  14. */
  15. class WxappHelp extends BaseModel
  16. {
  17. protected $name = 'wxapp_help';
  18. /**
  19. * 获取帮助列表
  20. * @return false|\PDOStatement|string|\think\Collection
  21. * @throws \think\db\exception\DataNotFoundException
  22. * @throws \think\db\exception\ModelNotFoundException
  23. * @throws \think\exception\DbException
  24. */
  25. public function getList()
  26. {
  27. return $this->order(['sort' => 'asc'])->select();
  28. }
  29. /**
  30. * 帮助详情
  31. * @param $help_id
  32. * @return null|static
  33. * @throws \think\exception\DbException
  34. */
  35. public static function detail($help_id)
  36. {
  37. return self::get($help_id);
  38. }
  39. }