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,42 @@
<?php
namespace wstmart\admin\controller;
use wstmart\admin\model\UserScores as M;
/**
* ============================================================================
* 积分日志控制器
*/
class Userscores extends Base{
public function toUserScores(){
$m = new M();
$object = $m->getUserInfo();
$this->assign("object",$object);
return $this->fetch("list");
}
/**
* 获取分页
*/
public function pageQuery(){
$m = new M();
return WSTGrid($m->pageQuery());
}
/**
* 跳去新增界面
*/
public function toAdd(){
$m = new M();
$object = $m->getUserInfo();
$this->assign("object",$object);
return $this->fetch("box");
}
/**
* 新增
*/
public function add(){
$m = new M();
return $m->addByAdmin();
}
}