EditController.class.php 659 Bytes
<?php
/**
 * 【后台】编辑培训接口
 * EditController.class.php
 * User: yingcai
 * Date: 2017/8/29
 * Time: 下午5:20
 */

namespace Apicp\Controller\Education;


use Common\Service\EducationService;

class EditController extends \Apicp\Controller\AbstractController
{
    public function Index_post()
    {
        // 初始化
        $result = [];
        $params = I('post.');
        // 添加培训
        $education_service = new EducationService();
        $res = $education_service->edit_education($result, $params);
        if (!$res) {
            return false;
        }

        $this->_result = $result;

        return true;
    }
}