完善回复功能

This commit is contained in:
JaguarJack
2020-06-29 22:04:40 +08:00
parent 655541210a
commit 57d26f8003
3 changed files with 73 additions and 7 deletions

View File

@@ -34,9 +34,12 @@ $router->group('wechat', function () use ($router){
});
// 微信回复管理
$router->group('official/reply', function () use ($router){
$router->resource('', '\catchAdmin\wechat\controller\Reply');
$router->get('', '\catchAdmin\wechat\controller\Reply@index');
$router->post('', '\catchAdmin\wechat\controller\Reply@save');
$router->delete('<id>', '\catchAdmin\wechat\controller\Reply@delete');
$router->put('enable/<id>', '\catchAdmin\wechat\controller\Reply@disOrEnable');
});
// 微信回复管理
// 微信上传
$router->group('official/upload', function () use ($router){
$router->post('/image', '\catchAdmin\wechat\controller\Upload@image');
$router->post('/file', '\catchAdmin\wechat\controller\Upload@file');