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.
38 lines
1.2 KiB
38 lines
1.2 KiB
<?php
|
|
// +----------------------------------------------------------------------
|
|
// | Niucloud-admin 企业快速开发的多应用管理平台
|
|
// +----------------------------------------------------------------------
|
|
// | 官方网址:https://www.niucloud.com
|
|
// +----------------------------------------------------------------------
|
|
// | niucloud团队 版权所有 开源版本可自由商用
|
|
// +----------------------------------------------------------------------
|
|
// | Author: Niucloud Team
|
|
// +----------------------------------------------------------------------
|
|
|
|
namespace app\api\controller\apiController;
|
|
|
|
use app\Request;
|
|
use app\service\api\apiService\CommonService;
|
|
use core\base\BaseApiService;
|
|
|
|
/**
|
|
* 公共控制器相关接口
|
|
* Class Personnel
|
|
* @package app\api\controller\apiController
|
|
*/
|
|
class Common extends BaseApiService
|
|
{
|
|
|
|
//获取字典
|
|
public function getDictionary(Request $request){
|
|
//获取员工信息
|
|
$where = [
|
|
'key'=>$request->param('key','')
|
|
];
|
|
$res = (new CommonService())->getDictionary($where);
|
|
if(!$res){
|
|
return fail('账户信息有误');
|
|
}
|
|
return success($res);
|
|
}
|
|
}
|
|
|