|
...
|
...
|
@@ -78,7 +78,22 @@ class ReplaceHtmlController extends BaseController |
|
|
|
$this->response('success',Code::SUCCESS,$lists);
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @remark :获取替换子记录
|
|
|
|
* @name :replaceTemplateSonLog
|
|
|
|
* @author :lyh
|
|
|
|
* @method :post
|
|
|
|
* @time :2024/5/11 11:09
|
|
|
|
*/
|
|
|
|
public function replaceTemplateSonLog(TemplateReplaceHtmlLog $replaceHtmlLog){
|
|
|
|
$this->request->validate([
|
|
|
|
'replace_id'=>'required',
|
|
|
|
],[
|
|
|
|
'replace_id.required' => '主id不能为空',
|
|
|
|
]);
|
|
|
|
$lists = $replaceHtmlLog->lists($this->map,$this->page,$this->row,$this->order);
|
|
|
|
$this->response('success',Code::SUCCESS,$lists);
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @remark :还原
|
|
...
|
...
|
@@ -96,4 +111,21 @@ class ReplaceHtmlController extends BaseController |
|
|
|
$data = $logic->reductionHtml();
|
|
|
|
$this->response('success',Code::SUCCESS,$data);
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @remark :根据id还原html
|
|
|
|
* @name :rollbackIdHtml
|
|
|
|
* @author :lyh
|
|
|
|
* @method :post
|
|
|
|
* @time :2024/5/11 11:22
|
|
|
|
*/
|
|
|
|
public function rollbackIdHtml(ReplaceHtmlLogic $logic){
|
|
|
|
$this->request->validate([
|
|
|
|
'id'=>'required',
|
|
|
|
],[
|
|
|
|
'id.required' => 'id不能为空',
|
|
|
|
]);
|
|
|
|
$data = $logic->rollbackIdHtml();
|
|
|
|
$this->response('success',Code::SUCCESS,$data);
|
|
|
|
}
|
|
|
|
} |
...
|
...
|
|