12345678910111213141516171819202122232425262728293031323334353637383940414243 |
- <?php
- namespace app\bug\model;
- class Moudel extends Base
- {
- protected $schema = [
- 'id' =>'int',
- 'name' =>'varchar',
- 'pid' =>'int',
- 'level' =>'int',
- 'company_name' =>'varchar',
- 'company_type' =>'varchar',
- 'weight' =>'double',
- 'status' =>'int',
- 'is_del' =>'bigint',
- 'addtime' =>'datetime',
- 'updatetime' =>'datetime',
- ];
-
- protected $updateTime='updatetime';
- protected $createTime='addtime';
-
- public static function GetModelByCid($cid,$type){
- switch ($type){
- case 1:
- $Model = \app\admin\model\AdminMenu::GetMenuBySecod($cid);
- break;
- case 2:
- $Model = \app\cxinv\model\AdminMenu::GetMenuBySecod($cid);
- break;
- case 3:
- $Model = \app\admin\model\AdminMenu::GetMenuBySecod($cid);
- break;
- default:
- $Model=[];
- break;
- }
- return $Model;
- }
- }
|