mirror of
https://gitee.com/koogua/course-tencent-cloud.git
synced 2025-06-26 20:52:44 +08:00
Merge branch 'koogua/v1.4.5' into demo
This commit is contained in:
commit
e5b042560f
@ -5,6 +5,7 @@
|
|||||||
- 调整登录限制(邮箱|手机)为注册限制
|
- 调整登录限制(邮箱|手机)为注册限制
|
||||||
- 调整订单发货为每一分钟执行一次
|
- 调整订单发货为每一分钟执行一次
|
||||||
- 增强课时安全性,无权限时不返回播放地址或内容
|
- 增强课时安全性,无权限时不返回播放地址或内容
|
||||||
|
- 增加删除文章和提问接口
|
||||||
- 增加首页推荐教师接口
|
- 增加首页推荐教师接口
|
||||||
- 增加微信公众号支付处理
|
- 增加微信公众号支付处理
|
||||||
- 增加取消订单功能
|
- 增加取消订单功能
|
||||||
|
@ -82,7 +82,7 @@ class AnswerController extends Controller
|
|||||||
|
|
||||||
$service->handle($id);
|
$service->handle($id);
|
||||||
|
|
||||||
return $this->jsonSuccess(['msg' => '删除回答成功']);
|
return $this->jsonSuccess();
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -7,6 +7,7 @@
|
|||||||
|
|
||||||
namespace App\Http\Api\Controllers;
|
namespace App\Http\Api\Controllers;
|
||||||
|
|
||||||
|
use App\Services\Logic\Article\ArticleDelete as ArticleDeleteService;
|
||||||
use App\Services\Logic\Article\ArticleFavorite as ArticleFavoriteService;
|
use App\Services\Logic\Article\ArticleFavorite as ArticleFavoriteService;
|
||||||
use App\Services\Logic\Article\ArticleInfo as ArticleInfoService;
|
use App\Services\Logic\Article\ArticleInfo as ArticleInfoService;
|
||||||
use App\Services\Logic\Article\ArticleLike as ArticleLikeService;
|
use App\Services\Logic\Article\ArticleLike as ArticleLikeService;
|
||||||
@ -68,6 +69,18 @@ class ArticleController extends Controller
|
|||||||
return $this->jsonPaginate($pager);
|
return $this->jsonPaginate($pager);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @Post("/{id:[0-9]+}/delete", name="api.article.delete")
|
||||||
|
*/
|
||||||
|
public function deleteAction($id)
|
||||||
|
{
|
||||||
|
$service = new ArticleDeleteService();
|
||||||
|
|
||||||
|
$service->handle($id);
|
||||||
|
|
||||||
|
return $this->jsonSuccess();
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @Post("/{id:[0-9]+}/favorite", name="api.article.favorite")
|
* @Post("/{id:[0-9]+}/favorite", name="api.article.favorite")
|
||||||
*/
|
*/
|
||||||
|
@ -85,7 +85,7 @@ class CommentController extends Controller
|
|||||||
|
|
||||||
$service->handle($id);
|
$service->handle($id);
|
||||||
|
|
||||||
return $this->jsonSuccess(['msg' => '删除评论成功']);
|
return $this->jsonSuccess();
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -10,6 +10,7 @@ namespace App\Http\Api\Controllers;
|
|||||||
use App\Services\Logic\Question\AnswerList as AnswerListService;
|
use App\Services\Logic\Question\AnswerList as AnswerListService;
|
||||||
use App\Services\Logic\Question\CategoryList as CategoryListService;
|
use App\Services\Logic\Question\CategoryList as CategoryListService;
|
||||||
use App\Services\Logic\Question\CommentList as CommentListService;
|
use App\Services\Logic\Question\CommentList as CommentListService;
|
||||||
|
use App\Services\Logic\Question\QuestionDelete as QuestionDeleteService;
|
||||||
use App\Services\Logic\Question\QuestionFavorite as QuestionFavoriteService;
|
use App\Services\Logic\Question\QuestionFavorite as QuestionFavoriteService;
|
||||||
use App\Services\Logic\Question\QuestionInfo as QuestionInfoService;
|
use App\Services\Logic\Question\QuestionInfo as QuestionInfoService;
|
||||||
use App\Services\Logic\Question\QuestionLike as QuestionLikeService;
|
use App\Services\Logic\Question\QuestionLike as QuestionLikeService;
|
||||||
@ -81,6 +82,18 @@ class QuestionController extends Controller
|
|||||||
return $this->jsonPaginate($pager);
|
return $this->jsonPaginate($pager);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @Post("/{id:[0-9]+}/delete", name="api.question.delete")
|
||||||
|
*/
|
||||||
|
public function deleteAction($id)
|
||||||
|
{
|
||||||
|
$service = new QuestionDeleteService();
|
||||||
|
|
||||||
|
$service->handle($id);
|
||||||
|
|
||||||
|
return $this->jsonSuccess();
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @Post("/{id:[0-9]+}/favorite", name="api.question.favorite")
|
* @Post("/{id:[0-9]+}/favorite", name="api.question.favorite")
|
||||||
*/
|
*/
|
||||||
|
Loading…
x
Reference in New Issue
Block a user