Init Repo

This commit is contained in:
root
2019-09-06 23:53:10 +08:00
commit f0ef89dfbb
7905 changed files with 914138 additions and 0 deletions

View 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));
}
}