update:微信回复

This commit is contained in:
JaguarJack
2020-09-13 10:05:22 +08:00
parent 5fd218d26a
commit 0da4627217
3 changed files with 67 additions and 3 deletions

View File

@@ -36,6 +36,18 @@ class Reply extends CatchController
return CatchResponse::paginate($this->reply->getList());
}
/**
* 读取
*
* @time 2020年09月13日
* @param $id
* @return \think\response\Json
*/
public function read($id)
{
return CatchResponse::success($this->reply->findBy($id));
}
/**
* 保存
*
@@ -48,6 +60,18 @@ class Reply extends CatchController
return CatchResponse::success($this->reply->storeBy($request->param()));
}
/**
* 更新
*
* @time 2020年09月13日
* @param $id
* @param CatchRequest $request
* @return \think\response\Json
*/
public function update($id, CatchRequest $request)
{
return CatchResponse::success($this->reply->updateBy($id, $request->param()));
}
/**
* 删除
*