mirror of
https://gitee.com/apiadmin/ApiAdmin.git
synced 2025-04-06 03:58:00 +08:00
added 完成接口和接口组的关联操作
This commit is contained in:
parent
a5251bbabd
commit
5ebb79720e
@ -52,6 +52,21 @@ class InterfaceGroup extends Base {
|
|||||||
]);
|
]);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 获取全部有效的接口组
|
||||||
|
* @author zhaoxiang <zhaoxiang051405@gmail.com>
|
||||||
|
* @throws \think\db\exception\DataNotFoundException
|
||||||
|
* @throws \think\db\exception\ModelNotFoundException
|
||||||
|
* @throws \think\exception\DbException
|
||||||
|
*/
|
||||||
|
public function getAll() {
|
||||||
|
$listInfo = (new ApiGroup())->where(['status' => 1])->select();
|
||||||
|
|
||||||
|
return $this->buildSuccess([
|
||||||
|
'list' => $listInfo
|
||||||
|
]);
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 接口组状态编辑
|
* 接口组状态编辑
|
||||||
* @return array
|
* @return array
|
||||||
|
@ -179,6 +179,10 @@ return [
|
|||||||
'admin/InterfaceGroup/del',
|
'admin/InterfaceGroup/del',
|
||||||
['method' => 'get', 'after_behavior' => $afterBehavior]
|
['method' => 'get', 'after_behavior' => $afterBehavior]
|
||||||
],
|
],
|
||||||
|
'InterfaceGroup/getAll' => [
|
||||||
|
'admin/InterfaceGroup/getAll',
|
||||||
|
['method' => 'get', 'after_behavior' => $afterBehavior]
|
||||||
|
],
|
||||||
'InterfaceGroup/changeStatus' => [
|
'InterfaceGroup/changeStatus' => [
|
||||||
'admin/InterfaceGroup/changeStatus',
|
'admin/InterfaceGroup/changeStatus',
|
||||||
['method' => 'get', 'after_behavior' => $afterBehavior]
|
['method' => 'get', 'after_behavior' => $afterBehavior]
|
||||||
|
Loading…
x
Reference in New Issue
Block a user