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,56 @@
<?php
namespace wstmart\admin\controller;
use wstmart\admin\model\Express as M;
/**
* ============================================================================
* 快递控制器
*/
class Express extends Base{
public function index(){
return $this->fetch("list");
}
/**
* 获取分页
*/
public function pageQuery(){
$m = new M();
$rs = $m->pageQuery();
return WSTGrid($rs);
}
/*
* 获取数据
*/
public function get(){
$m = new M();
$rs = $m->getById(Input("id/d",0));
return $rs;
}
/**
* 新增
*/
public function add(){
$m = new M();
$rs = $m->add();
return $rs;
}
/**
* 修改
*/
public function edit(){
$m = new M();
$rs = $m->edit();
return $rs;
}
/**
* 删除
*/
public function del(){
$m = new M();
$rs = $m->del();
return $rs;
}
}