33 lines
745 B
PHP
Executable File
33 lines
745 B
PHP
Executable File
<?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));
|
|
}
|
|
|
|
}
|