refactor(out): migrate out controller to app base controller
Made-with: Cursor
This commit is contained in:
@@ -116,3 +116,22 @@
|
||||
- `crmeb/traits/SearchDaoTrait.php` 已移除 `crmeb\basic\BaseAuth` 依赖。
|
||||
- 企业微信 `app/dao/work/*Dao.php` 未修改,保留到最后阶段处理。
|
||||
- 常用列表接口手工回归需要在具备后台 token 的预发或生产验证窗口执行。
|
||||
|
||||
## 阶段 3:自有 AppBaseController 迁移
|
||||
|
||||
### 3.0 基类检查
|
||||
|
||||
| 命令 | 结果 | 备注 |
|
||||
|------|------|------|
|
||||
| `php -l app/common/controller/AppBaseController.php` | 通过 | PHP 提示 `swoole_loader` 已加载,不影响语法检查结果。 |
|
||||
|
||||
### 3.1 `out` 入口
|
||||
|
||||
| 命令 | 结果 | 备注 |
|
||||
|------|------|------|
|
||||
| `php -l app/controller/out/OutAccount.php` | 通过 | PHP 提示 `swoole_loader` 已加载,不影响语法检查结果。 |
|
||||
|
||||
| 阶段 | 接口/命令 | 方法 | 身份 | 关键参数 | HTTP 状态 | 业务 `status` | 关键字段 | 结果 | 备注 |
|
||||
|------|-----------|------|------|----------|-----------|---------------|----------|------|------|
|
||||
| 3.1 | 外部账号登录/获取 token | POST | out | `appid`、`appsecret` | 待预发填写 | 待预发填写 | `token`、`exp_time` | 待测 | 当前本地无外部账号凭证和完整运行环境。 |
|
||||
| 3.1 | 外部账号刷新 token | POST | out | `access_token` | 待预发填写 | 待预发填写 | `access_token`、`exp_time` | 待测 | 当前本地无外部账号凭证和完整运行环境。 |
|
||||
|
||||
@@ -6,9 +6,9 @@
|
||||
namespace app\controller\out;
|
||||
|
||||
|
||||
use app\common\controller\AppBaseController;
|
||||
use app\Request;
|
||||
use app\services\out\OutAccountServices;
|
||||
use crmeb\basic\BaseController;
|
||||
use app\validate\out\LoginValidate;
|
||||
use think\annotation\Inject;
|
||||
|
||||
@@ -16,7 +16,7 @@ use think\annotation\Inject;
|
||||
* Class Login
|
||||
* @package app\kefu\controller
|
||||
*/
|
||||
class OutAccount extends BaseController
|
||||
class OutAccount extends AppBaseController
|
||||
{
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user