You've already forked qlg.tsgz.moe
Init Repo
This commit is contained in:
32
hyhproject/app/controller/Goodscats.php
Executable file
32
hyhproject/app/controller/Goodscats.php
Executable file
@ -0,0 +1,32 @@
|
||||
<?php
|
||||
namespace wstmart\app\controller;
|
||||
use wstmart\app\model\GoodsCats as M;
|
||||
/**
|
||||
* ============================================================================
|
||||
* 商品分类控制器
|
||||
*/
|
||||
class GoodsCats extends Base{
|
||||
/**
|
||||
* 列表
|
||||
*/
|
||||
public function index(){
|
||||
$m = new M();
|
||||
$goodsCatList = $m->getGoodsCats();
|
||||
exit(jsonReturn('',1,$goodsCatList));
|
||||
}
|
||||
public function getGoodsCat(){
|
||||
$m = new M();
|
||||
$goodsCatList = $m->getGoodsCat();
|
||||
exit(jsonReturn('',1,$goodsCatList));
|
||||
}
|
||||
/**
|
||||
* 获取分类名
|
||||
* @return [type] [description]
|
||||
*/
|
||||
public function getCatName(){
|
||||
$m = new M();
|
||||
$rs = $m->getCatName();
|
||||
exit(jsonReturn('',1,$rs));
|
||||
}
|
||||
|
||||
}
|
Reference in New Issue
Block a user