suyuan-breed/app/api/controller/OperationLogController.php

16 lines
456 B
PHP

<?php
namespace app\api\controller;
use app\common\model\suyuan_operation\AnimalOperateAction;
use think\facade\Db;
class OperationLogController extends BaseApiController
{
public function index()
{
$fenceHouseId = $this->request->param('fence_house_id');
$list = AnimalOperateAction::where('fence_house_id', $fenceHouseId)->order('id desc')->limit(5)->select()->toArray();
return $this->success('成功', $list);
}
}