Browse Source
- 删除了 components.d.ts 中大量未使用的 Element Plus 组件引用 - 移除了 ComponentCustomProperties 接口中的 vLoading属性 - 新增了 app\api\controller\apiController\Common.php 文件,实现了员工详情接口 - 在路由文件中添加了图片上传接口,移除了员工登录和详情接口wangzeyan
2 changed files with 48 additions and 4 deletions
@ -0,0 +1,44 @@ |
|||||
|
<?php |
||||
|
// +---------------------------------------------------------------------- |
||||
|
// | Niucloud-admin 企业快速开发的多应用管理平台 |
||||
|
// +---------------------------------------------------------------------- |
||||
|
// | 官方网址:https://www.niucloud.com |
||||
|
// +---------------------------------------------------------------------- |
||||
|
// | niucloud团队 版权所有 开源版本可自由商用 |
||||
|
// +---------------------------------------------------------------------- |
||||
|
// | Author: Niucloud Team |
||||
|
// +---------------------------------------------------------------------- |
||||
|
|
||||
|
namespace app\api\controller\apiController; |
||||
|
|
||||
|
use app\dict\member\MemberLoginTypeDict; |
||||
|
use app\Request; |
||||
|
use app\service\api\apiService\PersonnelService; |
||||
|
use app\service\api\captcha\CaptchaService; |
||||
|
use app\service\api\login\ConfigService; |
||||
|
use app\service\api\login\LoginService; |
||||
|
use core\base\BaseApiService; |
||||
|
use Exception; |
||||
|
use think\Response; |
||||
|
|
||||
|
/** |
||||
|
* 公共控制器相关接口 |
||||
|
* Class Personnel |
||||
|
* @package app\api\controller\apiController |
||||
|
*/ |
||||
|
class Common extends BaseApiService |
||||
|
{ |
||||
|
|
||||
|
//员工详情 |
||||
|
public function info(Request $request){ |
||||
|
//获取员工信息 |
||||
|
$where = [ |
||||
|
'id'=>$this->member_id, |
||||
|
]; |
||||
|
$res = (new PersonnelService())->info($where); |
||||
|
if(!$res){ |
||||
|
return fail('账户信息有误'); |
||||
|
} |
||||
|
return success($res); |
||||
|
} |
||||
|
} |
||||
Loading…
Reference in new issue