You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
pdd-order-api/app/libs/controller/front/class.HelpController.php

32 lines
803 B
PHTML

11 months ago
<?php
use Service\Common\FeedbackService;
class HelpController extends AbstractApiController {
private $feedbackService;
public function __construct($route){
parent::__construct($route);
$this->feedbackService = FeedbackService::instance();
}
/**
* @api POST 获取帮助中心列表
* @param int page 页码
* @param int pageSize 页数
*/
public function getArticleList() {
$data = $this->feedbackService->searchHelpArticle($_GET);
return $this->renderSuccess($data);
}
/**
* @api GET 根据ID获取内容
* @param int articleId * ID
*/
public function getArticleDetail() {
$article = $this->feedbackService->getArticleDetail($_GET['articleId']);
return $this->renderSuccess(['article' => $article]);
}
}