宝体数据调用接口
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

37 lines
803 B

<?php
namespace app\common\model;
/**
* 小程序帮助中心
* Class WxappHelp
* @package app\common\model
*/
class WxappHelp extends BaseModel
{
protected $name = 'wxapp_help';
/**
* 获取帮助列表
* @return false|\PDOStatement|string|\think\Collection
* @throws \think\db\exception\DataNotFoundException
* @throws \think\db\exception\ModelNotFoundException
* @throws \think\exception\DbException
*/
public function getList()
{
return $this->order(['sort' => 'asc', $this->getPk() => 'desc'])->select();
}
/**
* 帮助详情
* @param $help_id
* @return null|static
* @throws \think\exception\DbException
*/
public static function detail($help_id)
{
return self::get($help_id);
}
}