31 lines
665 B
PHP
31 lines
665 B
PHP
<?php
|
|
namespace app\master\controller;
|
|
|
|
use think\Controller;
|
|
use think\Db;
|
|
|
|
/**
|
|
* @title 文章接口
|
|
* @description 文章相关操作
|
|
* @group 文章相关
|
|
*/
|
|
class Article extends Controller {
|
|
//put your code here
|
|
protected $admin_obj = '';
|
|
protected $journal_obj = '';
|
|
protected $journal_topic_obj = '';
|
|
protected $journal_stage_obj = '';
|
|
|
|
public function __construct(\think\Request $request = null) {
|
|
parent::__construct($request);
|
|
$this->admin_obj = Db::name('admin');
|
|
$this->journal_obj = Db::name('journal');
|
|
$this->journal_topic_obj = Db::name('journal_topic');
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
}
|