<?php
namespace App\Http\Controllers\Web\Content;

use App\Exceptions\ResponseException;
use App\Http\Controllers\Web\WebBaseController;
use Illuminate\Http\Request;
use App\Services\Content\ArticleService;


class KnowallController extends WebBaseController
{
    protected $articleService;

    public function __construct( ArticleService $articleService)
    {
        $this->articleService   = $articleService;

    }


    public function index()
    {
        //获取工作动态、校园招聘、重要通知的数据
        $article_map = array(
            'type_id' => array(13,14,15,16,17,18,19,25,26,27,28,29),
            'limit'    => 16,
            'titlelen' => 25,
            'dot'       => '...'
        );
        $articles = $this->articleService->getArticleCache($article_map, 'home');
        $return_data = array(
            'articles'        => $articles
        );
        return view('app.content.knowall.index',$return_data);
    }


}