12345678910111213141516171819202122232425262728293031323334353637383940 |
- <?php
- namespace app\api\controller\v1;
- use app\api\controller\Base;
- use app\hander\HelpHander;
- use think\Db;
- class UserRetiredSalary extends Base
- {
- // 发放薪水
- public function save(){
- model('UserRetiredSalary')->add();
- HelpHander::success([],'操作成功');
- }
- // 修改工资
- public function update(){
- model('UserRetiredSalary')->add();
- HelpHander::success([],'操作成功');
- }
- // 详情
- public function detail(){
- $id = input('id/d',0);
- $ret = model('UserRetiredSalary')->info($id);
- HelpHander::success($ret);
- }
- // 列表
- public function list(){
- $page = input('page/d',1);
- $size = input('size/d',10);
- $name = input('name','','trim');
- $month = input('month','','trim');
- $ret = model('UserRetiredSalary')->lists($page,$size,$name,$month);
- HelpHander::success($ret);
- }
- }
|