| 123456789101112131415161718192021222324252627282930313233343536373839 | 
							- <?php
 
- namespace app\common\controller;
 
- use app\BaseController;
 
- use app\common\middleware\Auth;
 
- use think\facade\Db;
 
- /**
 
-  * 需要权限的公共方法放这
 
-  * Description of Tool
 
-  *
 
-  * @author sgq
 
-  */
 
- class Api extends BaseController {
 
-     protected $middleware = [Auth::class];
 
-     protected $usertype;
 
-     public function __construct(\think\App $app) {
 
-         parent::__construct($app);
 
-         $this->usertype = session("user")["usertype"];
 
-     }
 
-     public function findCommonFileType() {
 
-         $param = $this->request->param();
 
-         $order = $param["order"];
 
-         $project = $param["project"];
 
-         $type = $param["type"];
 
-         $where[] = ["project", "=", $project];
 
-         $where[] = ["type", "=", $type];
 
-         return json(["rows" => Db::table("new_common_filetype")->where($where)->order("sn " . $order)->select()]);
 
-     }
 
-     public function listTalentFile() {
 
-         
 
-     }
 
- }
 
 
  |