12345678910111213141516171819202122232425262728293031323334 |
- <?php
- namespace app\api\controller\v1;
- use app\api\controller\Base;
- use app\hander\HelpHander;
- use think\Db;
- class UserBank extends Base
- {
- // 新增/编辑
- public function save(){
- model('UserBank')->add();
- HelpHander::success([],'操作成功');
- }
- // 列表
- public function list(){
- $page = input('page/d',1);
- $size = input('size/d',10);
- $name = input('name','','trim');
- $payType = input('payType/d',-1);
- $companyId = input('companyId/d',0);
- $ret = model('UserBank')->lists($page,$size,$name,$payType,$companyId,$this->orgId);
- HelpHander::success($ret);
- }
- public function export(){
- $id = input('id/d',0);
- $ret = model('UserBank')->export($id);
- HelpHander::success($ret);
- }
- }
|