1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950 |
- <?php
- namespace app\api\controller\v1;
- use app\api\controller\Base;
- use app\hander\HelpHander;
- use think\Db;
- class Action extends Base
- {
- // 列表
- public function list(){
- $ret = model('Action')->lists();
- HelpHander::success($ret);
- }
- // 列表
- public function selectActionLog(){
- $page = input('page/d',1);
- $size = input('size/d',10);
- $name = input('name','','trim');
- $code = input('code','','trim');
- $startTime = input('startTime','','trim');
- $endTime = input('endTime','','trim');
- $actionId = input('actionId/d',0);
- $ret = model('Action')->selectActionLog($page,$size,$name,$code,$actionId,$startTime,$endTime);
- HelpHander::success($ret);
- }
- // 导出接口列表
- public function selectOperationLog(){
- $name = input('name','','trim');
- $code = input('code','','trim');
- $startTime = input('startTime','','trim');
- $endTime = input('endTime','','trim');
- $actionId = input('actionId/d',0);
- $ret = model('Action')->selectOperationLog($name,$code,$actionId,$startTime,$endTime);
- HelpHander::success($ret);
- }
- // 日志详情
- public function logInfo(){
- $id = input('id/d',0);
- $ret = model('Action')->logInfo($id);
- HelpHander::success($ret);
- }
- }
|