| 12345678910111213141516171819202122 |
- <?php
- namespace app\admin\model\dao;
- use app\common\model\UserModel;
- use think\facade\Db;
- class ShopCategory extends BaseDao
- {
- public static $table = "db_shop_category";
- public function __construct()
- {
- }
- public static function getById($id)
- {
- return Db::table(self::$table)->where(['id' => $id])->find();
- }
- }
|