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

16 lines
456 B
PHP
Raw Normal View History

2024-01-29 18:05:07 +08:00
<?php
namespace app\api\controller;
2024-01-31 17:44:40 +08:00
use app\common\model\suyuan_operation\AnimalOperateAction;
2024-01-29 18:05:07 +08:00
use think\facade\Db;
class OperationLogController extends BaseApiController
{
public function index()
{
$fenceHouseId = $this->request->param('fence_house_id');
2024-01-31 17:50:52 +08:00
$list = AnimalOperateAction::where('fence_house_id', $fenceHouseId)->order('id desc')->limit(5)->select()->toArray();
2024-01-29 18:05:07 +08:00
return $this->success('成功', $list);
}
}