first commit
This commit is contained in:
16
pgserver/application/admin/controller/Communal.php
Normal file
16
pgserver/application/admin/controller/Communal.php
Normal file
@@ -0,0 +1,16 @@
|
||||
<?php
|
||||
|
||||
namespace app\admin\controller;
|
||||
|
||||
use app\model\Bank as bankModel;
|
||||
|
||||
class Communal extends Base
|
||||
{
|
||||
public function getBankList()
|
||||
{
|
||||
$type = input('type');
|
||||
if(empty($type))return $this->buildFailed('type不能为空');
|
||||
return $this->buildSuccess(bankModel::getAll(['type' => $type] ,'id,name'));
|
||||
}
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user