优化扩展功能

This commit is contained in:
2020-04-04 21:53:38 +08:00
parent 98419ca360
commit a8619c61fb
11 changed files with 214 additions and 28 deletions

View File

@@ -0,0 +1,63 @@
<?php
// +----------------------------------------------------------------------
// | SentCMS [ WE CAN DO IT JUST THINK IT ]
// +----------------------------------------------------------------------
// | Copyright (c) 2013 http://www.tensent.cn All rights reserved.
// +----------------------------------------------------------------------
// | Author: molong <molong@tensent.cn> <http://www.tensent.cn>
// +----------------------------------------------------------------------
namespace app\controller\api;
use app\model\Category;
/**
* @title 内容管理
*/
class Content extends Base {
/**
* @title 内容列表
* @method GET
* @param Category $category [description]
* @return [json]
*/
public function lists(Category $category){
}
/**
* @title 内容详情
* @method GET
* @return [json]
*/
public function detail(){
}
/**
* @title 添加内容
* @method POST
* @return [json]
*/
public function add(){
}
/**
* @title 修改内容
* @method POST
* @return [json]
*/
public function edit(){
}
/**
* @title 删除内容
* @method POST
* @return [json]
*/
public function delete(){
}
}