| 12345678910111213141516171819202122232425262728293031 |
- <?php
- namespace app\admin\model\dao;
- use app\common\model\UserModel;
- use think\facade\Db;
- class SystemFaq extends BaseDao
- {
- public static $table = "db_system_faq";
- public function __construct()
- {
- }
- public static function getTitleById($parent_id)
- {
- return Db::table(self::$table)->where(['id' => $parent_id])->value('title');
- }
- public static function getTopArrList()
- {
- return Db::table(self::$table)
- ->field('id,title')
- ->where(['parent_id' => 0])
- ->select()
- ->toArray();
- }
- }
|