|
|
|
<?php
|
|
|
|
/**
|
|
|
|
* @remark :
|
|
|
|
* @name :V6UpdateLogController.php
|
|
|
|
* @author :lyh
|
|
|
|
* @method :post
|
|
|
|
* @time :2024/5/9 16:04
|
|
|
|
*/
|
|
|
|
|
|
|
|
namespace App\Http\Controllers\Aside\Com;
|
|
|
|
|
|
|
|
use App\Enums\Common\Code;
|
|
|
|
use App\Http\Controllers\Aside\BaseController;
|
|
|
|
use App\Http\Logic\Aside\Com\V6UpdateLogLogic;
|
|
|
|
use App\Models\Com\V6UpdateLog;
|
|
|
|
|
|
|
|
class V6UpdateLogController extends BaseController
|
|
|
|
{
|
|
|
|
/**
|
|
|
|
* @remark :更新日志
|
|
|
|
* @name :lists
|
|
|
|
* @author :lyh
|
|
|
|
* @method :post
|
|
|
|
* @time :2024/5/9 16:05
|
|
|
|
*/
|
|
|
|
public function lists(V6UpdateLog $logModel){
|
|
|
|
$lists = $logModel->lists($this->map,$this->page,$this->row,$this->order);
|
|
|
|
$this->response('success',Code::SUCCESS,$lists);
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @remark :保存数据
|
|
|
|
* @name :save
|
|
|
|
* @author :lyh
|
|
|
|
* @method :post
|
|
|
|
* @time :2024/5/9 16:23
|
|
|
|
*/
|
|
|
|
public function save(V6UpdateLogLogic $logic){
|
|
|
|
$this->request->validate([
|
|
|
|
'version_id' => 'required',
|
|
|
|
'remark' => 'required',
|
|
|
|
'updated_date' => 'required',
|
|
|
|
], [
|
|
|
|
'version_id.required' => '版本号version_id不能为空',
|
|
|
|
'remark.required' => '更新内容不能为空',
|
|
|
|
'updated_date.required' => '更新时间不能为空',
|
|
|
|
]);
|
|
|
|
$data = $logic->saveV6UpdateLog();
|
|
|
|
$this->response('success',Code::SUCCESS,$data);
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @remark :删除数据
|
|
|
|
* @name :del
|
|
|
|
* @author :lyh
|
|
|
|
* @method :post
|
|
|
|
* @time :2024/5/9 16:30
|
|
|
|
*/
|
|
|
|
public function del(V6UpdateLogLogic $logic){
|
|
|
|
$this->request->validate([
|
|
|
|
'id' => 'required',
|
|
|
|
], [
|
|
|
|
'id.required' => 'id不能为空',
|
|
|
|
]);
|
|
|
|
$logic->delV6UpdateLog();
|
|
|
|
$this->response('success');
|
|
|
|
}
|
|
|
|
} |
...
|
...
|
|