RoleApi.php 268 B

12345678910111213141516171819
  1. <?php
  2. namespace app\admin\api;
  3. use app\admin\model\Role;
  4. /**
  5. * Description of RoleApi
  6. *
  7. * @author sgq
  8. */
  9. class RoleApi {
  10. public static function getList($where = "") {
  11. $list = Role::where($where)->select()->toArray();
  12. return $list;
  13. }
  14. }