|
...
|
...
|
@@ -82,4 +82,23 @@ class ChatController extends BaseController |
|
|
|
$data = $chat->edit(['status'=>0],['id'=>$this->param['id']]);
|
|
|
|
$this->response('success',Code::SUCCESS,$data);
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @remark :修改标题
|
|
|
|
* @name :saveChat
|
|
|
|
* @author :lyh
|
|
|
|
* @method :post
|
|
|
|
* @time :2025/4/7 11:15
|
|
|
|
*/
|
|
|
|
public function saveChat(Chat $chat){
|
|
|
|
$this->request->validate([
|
|
|
|
'id'=>['required'],
|
|
|
|
'input_content'=>['required'],
|
|
|
|
],[
|
|
|
|
'id.required' => 'id不能为空',
|
|
|
|
'input_content.required' => '标题不能为空',
|
|
|
|
]);
|
|
|
|
$data = $chat->edit(['input_content'=>$this->param['input_content']],['id'=>$this->param['id']]);
|
|
|
|
$this->response('success',Code::SUCCESS,$data);
|
|
|
|
}
|
|
|
|
} |
...
|
...
|
|