<?php /** * 【后台】培训评价删除接口 * DeleteController.class.php * User: caijianhua * Date: 2017/8/29 * Time: 下午5:15 */ namespace Apicp\Controller\Score; use Common\Service\CommentService; class DeleteController extends \Apicp\Controller\AbstractController { /** @var CommentService */ protected $comment_service; public function before_action($action = '') { if (!parent::before_action($action)) { return false; } $this->comment_service = new CommentService(); return true; } /** * 培训评价删除接口 * * @author 蔡建华 */ public function Index_post() { $c_id = I('post.c_id'); if (empty($c_id)) { E('_EMPTY_COMMENT_ID'); } // 删除评价信息 $this->_result = $this->comment_service->delete_comment($c_id); return true; } }