12345678910111213141516171819202122232425262728293031323334 |
- <?php
- /*
- * @Descripttion:
- * @version:
- * @Author: likang
- * @Date: 2022-06-09 13:50:20
- * @LastEditors: sueRimn
- * @LastEditTime: 2022-06-09 14:33:46
- */
- namespace catchAdmin\api\controller;
- use catchAdmin\permissions\controller\User;
- use catchAdmin\permissions\model\Roles;
- use catchAdmin\permissions\model\Users as ModelUsers;
- use catcher\base\CatchRequest as Request;
- use catcher\CatchResponse;
- use catcher\base\CatchController;
- use think\Db;
- class Users extends CatchController
- {
- /**
- * 获取所有用户信息
- */
- public function getAllUsers()
- {
-
- $users_id = Roles::getUserIdByRoleIdentify('operator');
- $ids = implode(',',$users_id);
- $users = ModelUsers::where('id',$ids)->field("username,password")->select();
- }
- }
|