12345678910111213141516171819 |
- <?php
- namespace app\api\controller\v1;
- use app\api\controller\Base;
- use app\hander\HelpHander;
- use think\Db;
- class UserRoles extends Base
- {
- // 保存角色
- public function addRoles(){
- $roles = input('rolesId','','trim');
- $uid = input('uid/d', 0);
- model('UserRoles')->addRoles($uid,$roles,$this->orgId);
- HelpHander::success([],'操作成功');
- }
- }
|